When we want to access a system or network which is laying on router 3. so we will access it statically as
- Router# conf terminal
- Router(config)# int e0
- Router(config_if)# ip add 192.168.10.10 255.255.255.0
- Router(config_if)# no shut
- Router(config_if)# exit
- Router(config)# int s0
- Router(config_if)# ip add 1.1.1.1 255.0.0.0
- Router(config_if)# no shut
- Router(config_if)# clock rate 64000
- Router(config_if)# exit
- Router(config)# ip route 192.168.20.10 255.255.255.0 1.1.1.2
- Router(config)# ip route 192.168.30.10 255.255.255.0 1.1.1.2
- Router(config)# exit
- Now on router 2 (Karachi)
- Router# conf terminal
- Router(config)# int e0
- Router(config_if)# ip add 192.168.20.10 255.255.255.0
- Router(config_if)# no shut
- Router(config_if)# exit
- Router(config)# int s0
- Router(config_if)# ip add 1.1.1.2 255.0.0.0
- Router(config_if)# no shut
- Router(config_if)# clock rate 64000
- Router(config_if)# exit
- Router(config)# int s1
- Router(config_if)# ip add 2.1.1.1 255.0.0.0
- Router(config_if)# no shut
- Router(config_if)# clock rate 64000
- Router(config_if)# exit
- Router(config)# ip route 192.168.10.0 255.255.255.0 1.1.1.1
- Router(config)# ip route 192.168.30.0 255.255.255.0 2.1.1.2
- Router(config)# exit
Now do the following configurations on router 3 (Lahore)
- Router# conf terminal
- Router(config)# int e0
- Router(config_if)# ip add 192.168.30.10 255.255.255.0
- Router(config_if)# no shut
- Router(config_if)# exit
- Router(config)# int s0
- Router(config_if)# ip add 192.168.30.10 255.255.255.0
- Router(config_if)# no shut
- Router(config_if)# exit
- Router(config)# int s1
- Router(config_if)# ip add 2.1.1.2 255.0.0.0
- Router(config_if)# no shut
- Router(config_if)# clock rate 64000
- Router(config_if)# exit
- Router(config)# ip route 192.168.20.0 255.255.255.0 2.1.1.1
- Router(config)# ip route 192.168.10.0 255.255.255.0 2.1.1.1
- Router(config)# exit
MORE:
- Default Routing
- Static Routing
- How to access a system on router 3
- RIP (routing information protocol) configuration
- IGRP (Interior Gateway Routing Protocol)
- EIGRP (Enhanced Interior Gateway Routing Protocol)
- OSPF (Open Shortest Path First)