Configuration of default static route
When there is no route defines the routing table for the destination network then only default static router are used. First connect two routers with a serial cable. Here one side of cable on router1 is acts as a DCE and the other side of cable on router 2 acts as a DTE.For making DCE we have to give clock rate and bandwidth.
Configuring the default route in two router and two PC are shown in the example:
Add two routers and two PC with the following configuration:
Router 1-
IP address on the serial port S0 is -20.0.0.1
Subnet mask-255.0.0.0
IP address on the Ethernet port E0- 192.168.0.1
Subnet mask-255.255.255.0
Router 2-
IP address on the serial port S0- 20.0.0.2
Subnet mask- 255.0.0.0
IP address on the Ethernet port E0-10.0.0.1
Subnet mask-255.0.0.0
Configuration on PC1-
IP address of the PC1-192.168.0.2
Subnet mask-255.255.255.0
Default gateway- 192.168.0.1
Configuration on PC2-
IP address of the PC2-10.0.0.2
Subnet mask-255.0.0.0
Default gateway-10.0.0.1
On the router1console-
Router >enable
Router#config terminal
Router (config) #hostname R1
R1 (config) #interface fa0/1
R1 (config-if) #ip address 192.168.0.1 255.255.255.0
R1 (config-if) # no shutdown
R1 (config) # ctrl + Z
R1 # config terminal
R1 (comfit) # int S0/2/0
R1 (config-if) # ip address 20.0.0.1 255.0.0.0
R1 (config-if) # no shutdown
R1 (config-if) # clock rate 64000
R1 (config-if) # bandwidth 64
R1 (config-if) #exit
R1 (config) # ip route 0.0.0.0 0.0.0.0 20.0.0.2
R1 (config) # ctrl + Z
R1 # copy run start
On the PC1-
IP address- 192.168.0.2
Subnet mask-255.255.255.0
Default gateway- 192.168.0.1
On router 2 console-
Router>enable
Router# config terminal
Router (config) #hostname R2
R2 (config) # interface fa0/1
R2 (config-if) # ip address 10.0.0.1 255.0.0.0
R2 (config-if) # no shutdown
R2 (config-if) # ctrl + Z
R2#config terminal
R2 (config) # int S0/2/0
R2 (config-if) # ip address 20.0.0.2 255.0.0.0
R2 (config-if) # no shutdown
R2 (config-if) #exit
R2 (config) #ip route 0.0.0.0 0.0.0.0 20.0.0.1
R2 (config) #ctrl + Z
R2 # copy run start
On PC2-
IP address-10.0.0.2
Subnet mask- 255.0.0.0
Default gateway-10.0.0.1
Now both the router and PCs will ping each other on each and every interface. For checking the connectivity of the router write the ping and any interface on both the router console and it will show that both are pinging.
No related posts.