Friday 1 April 2016

Static Routing

 Configuration  a static routing:


Router 1:
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.165.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Serial0/1/0
Router(config-if)#ip address 20.1.1.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
Router(config-if)#exit

 Configure a static route:
Router(config)# ip route [destination network] [subnet mask] [next hope IP]
Router(config)#ip route 172.16.0.0 255.255.0.0 20.1.1.2

Router 2:
Router>enable
Router#configure terminal
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 172.16.1.1 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Serial0/1/0
Router(config-if)#ip address 20.1.1.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit

 Configure a static route:
Router(config)# ip route [destination network] [subnet mask] [next hope IP / exitinterface ]
Router(config)#ip route 192.165.10.0 255.255.255.0 20.1.1.1

NOTE :
• Next hope IP is the IP address of the directly connected router which the packet will
be send, after it leaves the Router1.
• Exit interface is the interface of Router1 which the packet leaving




No comments:

Post a Comment