New York Router Configurations: Router>enable Router#configure terminal Router(Config)#hostname NewYork NewYork(Config)#line console 0 NewYork(Config-line)#password acst NewYork(Config-line)#login NewYork(Config-line)#exit NewYork(Config)#line aux 0 NewYork(Config-line)#password acst NewYork(Config-line)#login NewYork(Config-line)#exit NewYork(Config)#line vty 0 4 NewYork(Config-line)#password acst NewYork(Config-line)#login NewYork(Config-line)#exit NewYork(Config)#enable secret acst NewYork(Config)#service password-encryption NewYork(Config)#banner motd # Warning: Authorized Access Only # NewYork(Config)#interface fa0/0 NewYork(Config-if)#ip address 10.10.1.1 255.255.255.0 NewYork(Config-if)#no shutdown NewYork(Config-if)#description connected to switch NewYork(Config-if)#exit
NewYork(Config)#interface s0/0 NewYork(Config-if)#ip address 10.10.5.1 255.255.255.252 NewYork(Config-if)#no shutdown NewYork(Config-if)#description connected to London Router NewYork(Config-if)#exit NewYork(Config)#ip route 10.10.2.0 255.255.255.0 10.10.5.2 NewYork(Config)#ip route 10.10.3.0 255.255.255.0 10.10.5.2 NewYork(Config)#ip route 10.10.4.0 255.255.255.0 10.10.5.2 NewYork(Config)#ip route 10.10.5.4 255.255.255.252 10.10.5.2 NewYork(Config)#ip route 10.10.5.8 255.255.255.252 10.10.5.2 NewYork(Config)#ip route 0.0.0.0 0.0.0.0 10.10.5.2 NewYork(Config)#ip dhcp pool acst NewYork(Config-dhcp)#network 10.10.1.0 255.255.255.0 NewYork(Config-dhcp)#default-router 10.10.1.1 NewYork(Config-dhcp)#dns-server 10.10.1.20 NewYork(Config-dhcp)#exit NewYork(Config)#ip dhcp excluded-address 10.10.1.50 10.10.1.100 NewYork(Config)#exit NewYork#copy running-config startup-config NewYork#copy flash tftp NewYork#copy running-config tftp NewYork#show running-config NewYork#show startup-config NewYork#show interfaces NewYork#show interface s0/0
NewYork#show controllers s0/0 NewYork#show ip interface brief NewYork#show cdp NewYork#show cdp neighbors NewYork#show cdp neighbors detail NewYork#show version NewYork#show flash
Switch Configuration: Switch>enable Switch#configure terminal Switch(config)#interface vlan 1 Switch(config-if)#ip address 10.10.1.2 255.255.255.0 Switch(config-if)#no shutdown Switch(config-if)#exit Switch(config)#ip default-gateway 10.10.1.1 Switch(config)#exit Switch#ping 10.10.1.1 Switch#telnet 10.10.1.1
Computer Configuration: IP Address: 10.10.1.3 Subnet Mask: 255.255.255.0 Default Gateway: 10.10.1.1