Home      Affiliated Colleges      Course content      First Sem     Second Sem     Third Sem     Fourth Sem     Fifth Sem     Sixth Sem     Seventh Sem     Eighth Sem     Lab report 4th sem     Contact    

Wednesday, January 26, 2011

Computer Networks: Packet tracer code for Static Routing

======================================ROUTER0============================================
Router>enable
Router#conf
Router#conf terminal
Router(config)#hostname router0
router0(config)#interface fa
router0(config)#interface fastEthernet 0/0
router0(config-if)#ip address 192.168.1.1 255.255.255.0
router0(config-if)#no shutdown
router0(config-if)#exit
router0(config)#interface serial 2/0
router0(config-if)#ip address 202.201.1.1 255.255.255.252
router0(config-if)#clock rate 64000
router0(config-if)#no shutdown
router0(config-if)#exit
router0(config)#exit
router0#write
router0#conf terminal
router0(config)#ip route 192.168.2.0 255.255.255.0 202.201.1.2
router0(config)#exit
router0#write
router0(config)#ip route 202.201.2.0 255.255.255.252 202.201.1.2
router0(config)#ip route 192.168.3.0 255.255.255.0 202.201.1.2
router0(config)#exit
router0#write
====================================ROUTER1==============================================
Router>enable
Router#conf t
Router#conf terminal
Router(config)#hostname router1
router1(config)#interface fa
router1(config)#interface fastEthernet 0/0
router1(config-if)#ip address 192.168.2.1 255.255.255.0
router1(config-if)#no shutdown
router1(config-if)#interface serial 2/0
router1(config-if)#ip address 202.201.1.2 255.255.255.252
router1(config-if)#no shutdown
router1(config-if)#exit
router1(config)#exit
router1#write
router1#conf terminal
router1(config)#interface serial 3/0
router1(config-if)#ip address 202.201.2.1 255.255.255.252
router1(config-if)#clock rate 64000
router1(config-if)#no shutdown
router1(config-if)#exit 
router1(config)#ip route 192.168.3.0 255.255.255.0 202.201.2.2
router1(config)#exit
router1#write
=================================ROUTER2===============================================
Router>enable
Router#conf t
Router#conf terminal
Router(config)#hostname router2
router2(config)#interface fastethernet 0/0
router2(config-if)#ip address 192.168.3.1 255.255.255.0
router2(config-if)#no shutdown
router2(config)#interface serial 3/0
router2(config-if)#ip address 202.201.2.2 255.255.255.252
router2(config-if)#no shutdown
router2(config-if)#exit
router2(config)#exit
router2#write
router2#conf terminal
router2(config)#ip route 202.201.1.0 255.255.255.252 202.201.2.1
router2(config)#ip route 192.168.1.0 255.255.255.0 202.201.2.1
router2(config)#exit
router2#write
======================================================================================

No comments:

Post a Comment

^ Scroll to Top Related Posts with Thumbnails ^ Go to Top