R1(config)#interface fa0/0R1(config-if)#ip address 10.10.10.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface se0/0/0R1(config-if)#ip address 10.22.33.1 255.255.255.252R1(config-if)#no shutdown
R2(config)#interface se0/0/0R2(config-if)#ip address 10.22.33.2 255.255.255.252R2(config-if)#no shutdownR2(config-if)#interface fa0/0R2(config-if)#ip address 10.20.20.1 255.255.255.0R2(config-if)#no shutdownR2(config-if)#interface se0/0/1R2(config-if)#ip address 10.22.33.5 255.255.255.252R2(config-if)#no shutdown
PC0ip : 10.10.10.2netmask : 255.255.255.0gateway : 10.10.10.1PC1ip : 10.20.20.2netmask : 255.255.255.0gateway : 10.20.20.1
Dari topologi diatas, coba ping antara PC0 ke PC 1, apakah bisa?
Router(config)#ip route <network tujuan> <subnetmask network tujuan> <ip router next-hop>
R1(config)#ip route 10.20.20.0 255.255.255.0 10.22.33.2R1(config)#ip route 10.22.33.4 255.255.255.252 10.22.33.2R1(config)#ip route 10.30.30.0 255.255.255.0 10.22.33.2
R2(config)#ip route 10.10.10.0 255.255.255.0 10.22.33.1R2(config)#ip route 10.30.30.0 255.255.255.0 10.22.33.6
R1(config)#do show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set10.0.0.0/8 is variably subnetted, 5 subnets, 2 masksC 10.10.10.0/24 is directly connected, FastEthernet0/0S 10.20.20.0/24 [1/0] via 10.22.33.2C 10.22.33.0/30 is directly connected, Serial0/0/0S 10.22.33.4/30 [1/0] via 10.22.33.2S 10.30.30.0/24 [1/0] via 10.22.33.2R1(config)#
R2(config)#do show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set10.0.0.0/8 is variably subnetted, 5 subnets, 2 masksS 10.10.10.0/24 [1/0] via 10.22.33.1C 10.20.20.0/24 is directly connected, FastEthernet0/0C 10.22.33.0/30 is directly connected, Serial0/0/0C 10.22.33.4/30 is directly connected, Serial0/0/1S 10.30.30.0/24 [1/0] via 10.22.33.6R2(config)#










