[CCNA] Static and Default Route
In this lab, you have to config the routers both HQ and BR-1 to make the connection throughout the network and with the Internet.
- Enable and set IP address on LAN interface of each router to be the last assignable IP of each subnet.
- Enable serial interface on each router and set IP address on each interface as:
- s0/0/0 on BR-1: last IP of 52.7.9.220/30
- s0/0/0 on HQ: first IP of 52.7.9.220/30
- s0/1/0 on HQ: last IP of 77.7.7.252/30
- Set static route of each LAN on each router to let PC-1 connect to PC-2. (Use destination interface instead of IP next hop.)
- Set default route on each router to let both PC-1 and PC-2 be able to connect to the Server (72.76.5.3) in the internet.
- On HQ:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| HQ>en HQ#conf t Enter configuration commands, one per line. End with CNTL/Z. HQ(config)#interface fastEthernet 0/0 HQ(config-if)#ip address 52.7.9.206 255.255.255.240 HQ(config-if)#no shutdown HQ(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up HQ(config-if)# HQ(config-if)#int serial 0/0/0 HQ(config-if)#ip address 52.7.9.221 255.255.255.252 HQ(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down HQ(config-if)# HQ(config-if)#int serial 0/1/0 HQ(config-if)#ip address 77.7.7.254 255.255.255.252 HQ(config-if)#no shutdown HQ(config-if)# %LINK-5-CHANGED: Interface Serial0/1/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up HQ(config-if)# |
- On BR1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| BR1>en BR1#conf t Enter configuration commands, one per line. End with CNTL/Z. BR1(config)#interface fastEthernet 0/0 BR1(config-if)#ip address 52.7.9.214 255.255.255.248 BR1(config-if)#no shutdown BR1(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up BR1(config-if)#int serial 0/0/0 BR1(config-if)#clock rate 64000 BR1(config-if)#ip address 52.7.9.222 255.255.255.252 BR1(config-if)#no shutdown BR1(config-if)# %LINK-5-CHANGED: Interface Serial0/0/0, changed state to up BR1(config-if)# |
To configure the static route and default route also:
- Static route: allows you to educate the router to new places.
- Default route: acts as “Catch-All”
- On HQ :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| HQ(config)#ip route 52.7.9.208 255.255.255.248 serial 0/0/0 HQ(config)#ip route 0.0.0.0 0.0.0.0 serial 0/1/0 HQ(config)#^Z HQ# %SYS-5-CONFIG_I: Configured from console by console HQ#show ip route Codes: C - connected, S - static, I - IGRP, 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 0.0.0.0 to network 0.0.0.0 52.0.0.0/28 is subnetted, 1 subnets C 52.7.9.192 is directly connected, FastEthernet0/0 77.0.0.0/30 is subnetted, 1 subnets C 77.7.7.252 is directly connected, Serial0/1/0 S* 0.0.0.0/0 is directly connected, Serial0/1/0 HQ# |
- On BR-1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| BR1(config)#ip route 52.7.9.192 255.255.255.240 serial 0/0/0 BR1(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0 BR1(config)#do show ip route Codes: C - connected, S - static, I - IGRP, 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 0.0.0.0 to network 0.0.0.0 52.0.0.0/8 is variably subnetted, 3 subnets, 3 masks S 52.7.9.192/28 is directly connected, Serial0/0/0 C 52.7.9.208/29 is directly connected, FastEthernet0/0 C 52.7.9.220/30 is directly connected, Serial0/0/0 S* 0.0.0.0/0 is directly connected, Serial0/0/0 BR1(config)# |