Professional Documents
Culture Documents
Topology:
Cabling:
PCs IP address:
PC0: PC2:
IP Address: 192.168.1.1 IP Address: 192.168.2.1
Subnet mask: 255.255.255.0 Subnet mask: 255.255.255.0
Default Gateway: 192.168.1.3 Default Gateway: 192.168.2.3
PC1: PC3:
IP Address: 192.168.1.2 IP Address: 192.168.2.2
Subnet mask: 255.255.255.0 Subnet mask: 255.255.255.0
Default Gateway: 192.168.1.3 Default Gateway: 192.168.2.3
First assign IP addresses to the interfaces Gigabit Ethernet 0/0 and Gigabit
Ethernet 0/1 of Router 0 from CLI. (All coding is done at the
Configuration mode).
Router>enable
Router# conf t
Router(config-if)#no shutdown
Router(config-if)#exit
Gigabit Ethernet 0/1
Router(config)#interface g0/1
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router 0:
Ensure That you are at the configuration mode.
If you are not at the configuration mode. You must first enter to the
configuration mode.
Router>enable
Router# conf t
Router(config)#ip route <Network Address ><Default Subnet Mask>
<Next Hope>
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2
Router1:
Ensure That you are at the configuration mode.
If you are not at the configuration mode. You must first enter to the
configuration mode.
Router>enable
Router# conf t
Router(config)#ip route <Network Address ><Default Subnet Mask>
<Next Hope>
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
Displaying Routing Table:
Router>enable
Router# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
After enabling static routing at the both routers, we can now test for
connectivity of different networks, because before enabling static routing at
the routers PC s at the different networks cannot communicate or pinging is
time out. But after configure of static routing so the PCs at the different
networks can communicate and sending data successfully.
Pinging from PC 0 (192.168.1.1) which means that is Network
1(192.168.1.0) PC to the PC2(192.168.2.1) at the Network 2(192.168.2.0)