Static routing between two routers

Cisco 3640 series router is used in this example.

Basic set up

set hostname
Router# configure terminal
Router(config)# hostname R1
Set telnet password
R1(config)# line vty 0 4
R1(config-line)# password $PASSWORD
R1(config-line)# login
R1(config-line)# exit
Set root password
R1(config)# line console 0
R1(config-line)# password $PASSWORD
R1(config-line)# login
R1(config-line)# exit
Delete root password
R1(config)# line console 0
R1(config-line)# no password
R1(config-line)# exit
Set config password
R1(config)# enable secret $PASSWORD

Basic typology

basic-typology

On router R1

R1#configure terminal
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#exit
R1#write

On router R2

R2#configure terminal
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#exit
R2#write
Ping test

On router R1

ping 192.168.12.2

On router R2

ping 192.168.12.1
Check startup-config
show startup-config
Check running-config
show running-config
Show routing table
show ip route
Show interface information
show ip interface brief
Show Comments