Exercise: Cisco config and static routes

  1. Login to Unix PC as "t2". Erase your Cisco and do basic configuration
    $ tip cisco
    [Hit enter]
    Would you like to enter the initial configuration dialog? no
    Press RETURN to get started!
    [Hit enter; wait a few seconds]
    Router>enable
    Router#write erase
    Router#reload
    

    (If you can't get this far, then you need to follow the Cisco password recovery procedure)

    ...
    Router>enable
    Router#conf t
    Router(config)#hostname t2-router1
    t2-router1(config)#enable secret t2@afnog
    t2-router1(config)#service password-encryption
    t2-router1(config)#no ip domain-lookup
    t2-router1(config)#line vty 0 4
    t2-router1(config-line)#login
    t2-router1(config-line)#password t2@afnog
    t2-router1(config-line)#  [Hit ctrl-Z]
    t2-router1#show run
    ...
    t2-router1#write mem
    

    You can leave tip running on this screen and switch to another screen with Alt-F2, Alt-F3 etc. If you want to exit tip, type [Enter] ~ .

    Note: you would normally use DIFFERENT passwords for enable and login, so you can give login access to your NOC staff without letting them change configurations.

  2. Configure your PC for IP
    login as 'root'
    # ifconfig ed0 137.158.218.1 netmask 255.255.255.248
    # route add default 137.158.218.6
    
    Check your config is running by using:
    # ifconfig -a
    # netstat -rn
    
  3. Configure your Cisco E0 (or E0/0) interface
    t2-router1#conf t
    t2-router1(config)#int e0 [2500] or  int e0/0 [2600]
    t2-router1(config-if)#ip address 137.158.218.1 255.255.255.248
    t2-router1(config-if)#no ip proxy-arp
    t2-router1(config-if)#no ip redirects
    t2-router1(config-if)#no shutdown
    t2-router1(config-if)#  [Hit ctrl-Z]
    t2-router1#show int e0
    
  4. Connect PC and Cisco to hub. Check PC and Cisco can ping each other
    t2-router1#ping 137.158.218.6
    

    Also try pinging the router from the PC

  5. Configure your Cisco E1 (or E0/1) interface

    Same as step 3, but use the correct interface, address and netmask

  6. Check your Cisco can ping other Ciscos on the backbone
    t2-router1#ping 137.158.218.130
    t2-router1#ping 137.158.218.131   etc
    
  7. Save your config at this point
    t2-router1#write mem
    
  8. Add static routes to reach other desks' networks
    t2-router1#conf t
    t2-router1(config)#ip route 137.158.218.8 255.255.255.248 137.158.218.130
    ...add routes for other desks...
    t2-router1(config)#  [Hit ctrl-Z]
    t2-router1#show ip route
    

    Notice how some routes are labelled C (directly Connected) and others are labelled S (Static routes)

    NOTE: DON'T SAVE YOUR CONFIG! (This is to make it easier to remove all those static routes later on)

  9. Check your PC can reach other PCs on your row and in the rest of the class
    $ ping 137.158.218.9
    
    $ traceroute -n 137.158.218.9
    

    If it can't see them yet - why not?

  10. Make your PC's IP configuration permanent
    login as 'root'
    # vi /etc/rc.conf and uncomment these lines:
    ifconfig_ed1="inet 137.158.218.1 netmask 255.255.255.248"
    defaultrouter="137.158.218.6"
    

    Reboot your PC, login again, and check your config is running by using:

    # ifconfig -a
    # netstat -rn
    

Last updated 2000-04-29