1 Basic Router Configuration

Follow these instructions to configure each router:

  1. Name the Router substitute with an actual name like r42

    enable
    config terminal
    hostname <NAME>
  2. Configure Authentication with username and passwords.

    aaa new-model
    aaa authentication login default local
    username nsrc secret nsrc
    enable secret nsrc
    service password-encryption
    line vty 0 4
     transport preferred none
    line console 0
     transport preferred none
  3. Disable DNS resolution

    no ip domain-lookup
  4. Exit configuration mode and save

    end
    copy run start
  5. Disconnect and test that you can log into the router with the username nsrc and password nsrc

    exit

2 IP Address Configuration

  1. Assign each Router a different IP address as follows: Substitute X with your group number

    int fe 0/1
      ip address 192.168.0.X 255.255.255.0
      no shutdown
    end
  2. Connect a cable to the ethernet port labelled fastEthernet 0/1 and the switch in the middle of the room

  3. Exit configuration mode and see that you can ping other routers in the class. repeat the ping command for each of the other IPs replacing Y with (1 - 5)

    end
    copy run start
    ping 192.168.0.Y

3 LAN connection and default gateway

  1. Add a default gateway to the router so the router knows how to reach the Internet.

    ip route 0.0.0.0 0.0.0.0 192.168.0.254
  2. Exit global configuration mode, save the configuration and try pinging 8.8.8.8

    ping 8.8.8.8
  3. Assign an IP address to the LAN. Remeber as usual to enter privileged exec mode and then global configuration mode as usual. Replace Y with your group number. Note that we've added a description to make identifying this network easier.

    Do not forget the no shutdown command to bring the interface up.

    int fe 0/0
      description LAN
      ip address 172.16.Y.1 255.255.255.0
      no shut
  4. On your computer, disable the wireless and give yourself an IP address 172.16.Y.50 the default gateway is 172.16.Y.1 and DNS is 8.8.8.8. Connect your cable to the LAN interface of your router. If you have other computers plugged into a switch behind the Router assign them ip addresses 172.16.Y.51, 172.16.Y.52, etc

  5. From your computer try pinging 8.8.8.8

  6. From your computer try pinging someone else in another group?

  7. Did the above two work? Explain.

  8. After the presentation on routing and switching, try fixing part 6.

  9. How should the operator of the default gateway fix part 5?