$ 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.
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
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
t2-router1#ping 137.158.218.6
Also try pinging the router from the PC
Same as step 3, but use the correct interface, address and netmask
t2-router1#ping 137.158.218.130 t2-router1#ping 137.158.218.131 etc
t2-router1#write mem
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)
$ ping 137.158.218.9 $ traceroute -n 137.158.218.9
If it can't see them yet - why not?
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