RT1(config)#interface ethernet0/0
RT1(config-if)#ip address 10.1.1.1 255.255.255.0
RT1(config-if)#no shutdown
RT1(config-if)#exit
RT1(config)#ip route 0.0.0.0 0.0.0.0 ethernet0/0 10.1.1.2
RT2(config)#interface ethernet0/0
RT2(config-if)#ip address 10.1.1.2 255.255.255.0
RT2(config-if)#no shutdown
RT2(config-if)#exit
RT2(config)#interface ethernet0/1
RT2(config-if)#ip address 10.1.2.2 255.255.255.0
RT2(config-if)#no shutdown
RT2(config-if)#exit
RT2(config)#interface loopback 0
RT2(config-if)#ip address 192.0.2.2 255.255.255.255
RT2(config-if)#exit
RT2(config)#ip route 203.0.113.3 255.255.255.255 ethernet0/1 10.1.2.3
RT3(config)#interface ethernet0/0
RT3(config-if)#ip address 10.1.2.3 255.255.255.0
RT3(config-if)#no shutdown
RT3(config-if)#exit
RT3(config)#interface loopback 0
RT3(config-if)#ip address 203.0.113.3 255.255.255.255
RT3(config-if)#exit
RT3(config)#ip route 10.1.1.0 255.255.255.0 ethernet0/0 10.1.2.2
構成図に基づき IP address を設定する際、Loopback interface を新規に定義する必要があります。
Loopback interface とはルータに設定できる仮想的な interface となっており、物理 interface と紐づかず、明示的に shutdown しない限りは常に status が up となります。
今回は構成図に Lo0 と記載があるため、loopback 0 を明示的に作成し ip address を付与します。
次に static route を各機器に設定しますが、問題文に以下の制約があります。
これを満たすため、RT1 には default route を設定します。
ネットワーク機器は routing を行う際、自身の routing table を確認し、送信先の IP address と最も一致する経路を転送に使用します。この動作を Longest match と呼びます。
default route (0.0.0.0/0) はすべての送信先に一致する経路であり、より詳細な経路がない場合は default route に従い転送されます。
そのため、default route を設定することにより問題文の要件を満たすことができます。
RT1#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, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected
Gateway of last resort is 10.1.1.2 to network 0.0.0.0
[[red:S* 0.0.0.0/0 [1/0] via 10.1.1.2, Ethernet0/0]]
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Ethernet0/0
L 10.1.1.1/32 is directly connected, Ethernet0/0
ログインすると、進捗を保存できます。
← default route の設定(問題) に戻る