0% found this document useful (0 votes)
19 views

Default Routing

The document describes configuring default routing on three routers. It provides the configuration steps to set the IP addresses on each router's interfaces and establish default routes. Connectivity is then verified between two PCs on the network.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Default Routing

The document describes configuring default routing on three routers. It provides the configuration steps to set the IP addresses on each router's interfaces and establish default routes. Connectivity is then verified between two PCs on the network.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Default routing

• Default routing in three routers topology


1)
1. Create a network topology like below.

2. IP configuration of serial interface 0/3/0 in router 0.


➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface serial0/3/0
➢ Router(config-if)#ip address 10.0.0.1 255.0.0.0
➢ Router(config-if)#no shutdown

➢ %LINK-5-CHANGED: Interface Serial0/3/0, changed state to


down
➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
3. IP configuration of interface gigabitethernet 0/0 in router 0.
➢ Router(config-if)#exit
➢ Router(config)#interface gigabitethernet0/0
➢ Router(config-if)#ip address 192.168.1.1 255.255.255.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed
state to up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


GigabitEthernet0/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
4. IP configuration of serial interface 0/3/0 in router 1.
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface serial0/3/0
➢ Router(config-if)#ip address 10.0.0.2 255.0.0.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface Serial0/3/0, changed state to
up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


Serial0/3/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
5. IP configuration of serial interface 0/3/1 in router 1.
➢ Router(config-if)#exit
➢ Router(config)#interface serial0/3/1
➢ Router(config-if)#ip address 11.0.0.1 255.0.0.0
➢ Router(config-if)#no shutdown

➢ %LINK-5-CHANGED: Interface Serial0/3/1, changed state to


down
➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
6. IP configuration of serial interface 0/3/0 in router 2.
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface serial0/3/0
➢ Router(config-if)#ip address 11.0.0.2 255.0.0.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface Serial0/3/0, changed state to
up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


Serial0/3/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
7. IP configuration of interface gigabitethernet 0/0 in router 2.
➢ Router(config-if)#exit
➢ Router(config)#interface gigabitethernet0/0
➢ Router(config-if)#ip address 192.168.100.1 255.255.255.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed
state to up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface
GigabitEthernet0/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#

➢ Router(config-if)#

8. IP configuration of PC0

9. IP configuration of PC1
10. IP configuration of PC2

11. IP configuration of PC3


12. Default routing entries in router 0
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with CNTL/Z.
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.2
➢ Router(config)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config)#
13. Default routing entries in router 1
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with CNTL/Z.
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.1
➢ %Invalid next hop address (it's this router)
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
➢ %Invalid next hop address (it's this router)
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.2
➢ Router(config)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config)#
14. Default routing entries in router 2
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.2
➢ %Invalid next hop address (it's this router)
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.1
➢ Router(config)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config)#
15. Router 0
➢ Router(config)#do 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

➢ Gateway of last resort is 10.0.0.2 to network 0.0.0.0

➢ 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


➢ C 10.0.0.0/8 is directly connected, Serial0/3/0
➢ L 10.0.0.1/32 is directly connected, Serial0/3/0
➢ 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
➢ C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
➢ L 192.168.1.1/32 is directly connected, GigabitEthernet0/0
➢ S* 0.0.0.0/0 [1/0] via 10.0.0.2

➢ Router(config)#

16. Router 1
➢ Router(config)#do 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

➢ Gateway of last resort is 10.0.0.1 to network 0.0.0.0

➢ 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


➢ C 10.0.0.0/8 is directly connected, Serial0/3/0
➢ L 10.0.0.2/32 is directly connected, Serial0/3/0
➢ 11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
➢ C 11.0.0.0/8 is directly connected, Serial0/3/1
➢ L 11.0.0.1/32 is directly connected, Serial0/3/1
➢ S* 0.0.0.0/0 [1/0] via 10.0.0.1
➢ [1/0] via 11.0.0.2

➢ Router(config)#

17. Router 2
➢ Router(config)#do 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

➢ Gateway of last resort is 11.0.0.1 to network 0.0.0.0

➢ 11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


➢ C 11.0.0.0/8 is directly connected, Serial0/3/0
➢ L 11.0.0.2/32 is directly connected, Serial0/3/0
➢ 192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
➢ C 192.168.100.0/24 is directly connected, GigabitEthernet0/0
➢ L 192.168.100.1/32 is directly connected, GigabitEthernet0/0
➢ S* 0.0.0.0/0 [1/0] via 11.0.0.1

➢ Router(config)#

18. Now transfer a simple packet between PC 0 to PC 2 in the


topology to verify.

2)
1. Create a network topology like the following.
2. IP configuration of serial interface 0/3/0 in router 0.
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface serial0/3/0
➢ Router(config-if)#ip address 10.0.0.1 255.0.0.0
➢ Router(config-if)#no shutdown

➢ %LINK-5-CHANGED: Interface Serial0/3/0, changed state to


down
➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#

3. IP configuration of interface gigabitethernet 0/0 in router 0.


➢ Router(config-if)#interface gigabitethernet0/0
➢ Router(config-if)#ip address 192.168.1.1 255.255.255.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed
state to up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface
GigabitEthernet0/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
4. IP configuration of serial interface 0/3/0 in router 1.
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface serial0/3/0
➢ Router(config-if)#ip address 10.0.0.2 255.0.0.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface Serial0/3/0, changed state to
up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


Serial0/3/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#

5. IP configuration of serial interface 0/3/1 in router 1.


➢ Router(config-if)#interface serial0/3/1
➢ Router(config-if)#ip address 11.0.0.1 255.0.0.0
➢ Router(config-if)#no shutdown

➢ %LINK-5-CHANGED: Interface Serial0/3/1, changed state to


down
➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
6. IP configuration of serial interface 0/3/0 in router 2.
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface serial0/3/0
➢ Router(config-if)#ip address 11.0.0.2 255.0.0.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface Serial0/3/0, changed state to
up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


Serial0/3/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
7. IP configuration of PC0
8. IP configuration of PC1

9. Default routing entries in router 0


➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.2
➢ Router(config)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config)#
10. Default routing entries in router 1
➢ Router(config-if)#end
➢ Router#
➢ %SYS-5-CONFIG_I: Configured from console by console

➢ Router#config
➢ Configuring from terminal, memory, or network [terminal]?
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
➢ %Invalid next hop address (it's this router)
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.1
➢ %Invalid next hop address (it's this router)
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.2
➢ Router(config)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config)#
11. Default routing entries in router 2
➢ Router(config-if)#end
➢ Router#
➢ %SYS-5-CONFIG_I: Configured from console by console

➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#ip route 0.0.0
➢^
➢ % Invalid input detected at '^' marker.
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.1
➢ Router(config)#ip route 0.0.0.0 0.0.0.0 11.0.0.2
➢ %Invalid next hop address (it's this router)
➢ Router(config)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config)#
12. Router 0
➢ Router(config)#do 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

➢ Gateway of last resort is 10.0.0.2 to network 0.0.0.0

➢ 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


➢ C 10.0.0.0/8 is directly connected, Serial0/3/0
➢ L 10.0.0.1/32 is directly connected, Serial0/3/0
➢ 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
➢ C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
➢ L 192.168.1.1/32 is directly connected, GigabitEthernet0/0
➢ S* 0.0.0.0/0 [1/0] via 10.0.0.2

➢ Router(config)#

13. Router 1
➢ Router(config)#do 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

➢ Gateway of last resort is 10.0.0.1 to network 0.0.0.0

➢ 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


➢ C 10.0.0.0/8 is directly connected, Serial0/3/0
➢ L 10.0.0.2/32 is directly connected, Serial0/3/0
➢ 11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
➢ C 11.0.0.0/8 is directly connected, Serial0/3/1
➢ L 11.0.0.1/32 is directly connected, Serial0/3/1
➢ S* 0.0.0.0/0 [1/0] via 10.0.0.1
➢ [1/0] via 11.0.0.2

➢ Router(config)#

14. Router 2
➢ Router(config)#do 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
➢ Gateway of last resort is 11.0.0.1 to network 0.0.0.0

➢ 11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


➢ C 11.0.0.0/8 is directly connected, Serial0/3/0
➢ L 11.0.0.2/32 is directly connected, Serial0/3/0
➢ S* 0.0.0.0/0 [1/0] via 11.0.0.1

➢ Router(config)#

15. Now transfer a simple packet between PC 0 to Router 2 in


the topology to verify.

You might also like