ROUTING STATIC METODE EXIT INTERFACE ROUTER CISCO
Pasang IP dengan ketentuan berikut:
PC-0=192.168.10.10 255.255.255.0
PC-1=192.168.20.10 255.255.255.0
PC-2=192.168.30.10 255.255.255.0
Router-0:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) hostname Router-0
Router-0(config)#int g0/0
Router-0(config-if)#ip add 192.168.100.1 255.255.255.0
Router-0(config-if)#no sh
Router-0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Router-0(config-if)#int g0/1
Router-0(config-if)#ip add 192.168.10.1 255.255.255.0
Router-0(config-if)#no sh
Router-0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router-0(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1, sourced by 0040.0BA9.5B01
Router-0(config-if)#ip route 192.168.20.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-0(config)#ip route 192.168.200.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-0(config)#ip route 192.168.30.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router(config)#hostname Router-0
Router-0(config)#do sh 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 not set
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1
S 192.168.20.0/24 is directly connected, GigabitEthernet0/0
S 192.168.30.0/24 is directly connected, GigabitEthernet0/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 192.168.200.0/24 is directly connected, GigabitEthernet0/0
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) hostname Router-0
Router-0(config)#int g0/0
Router-0(config-if)#ip add 192.168.100.1 255.255.255.0
Router-0(config-if)#no sh
Router-0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Router-0(config-if)#int g0/1
Router-0(config-if)#ip add 192.168.10.1 255.255.255.0
Router-0(config-if)#no sh
Router-0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router-0(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1, sourced by 0040.0BA9.5B01
Router-0(config-if)#ip route 192.168.20.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-0(config)#ip route 192.168.200.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-0(config)#ip route 192.168.30.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router(config)#hostname Router-0
Router-0(config)#do sh 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 not set
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1
S 192.168.20.0/24 is directly connected, GigabitEthernet0/0
S 192.168.30.0/24 is directly connected, GigabitEthernet0/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 192.168.200.0/24 is directly connected, GigabitEthernet0/0
Router-1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router-1(config)hostname Router-1
Router-1(config)#int g0/0
Router-1(config-if)#ip add 192.168.100.2 255.255.255.0
Router-1(config-if)#no sh
Router-1(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-1(config-if)#int g0/1
Router-1(config-if)#ip add 192.168.200.1 255.255.255.0
Router-1(config-if)#no sh
Router-1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Router-1(config-if)#int g0/2
Router-1(config-if)#ip add 192.168.20.1 255.255.255.0
Router-1(config-if)#no sh
Router-1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up
Router-1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
%IP-4-DUPADDR: Duplicate address 192.168.20.1 on GigabitEthernet0/2, sourced by 0009.7C9B.45B1
Router-1(config-if)#ip route 192.168.10.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-1(config)#ip route 192.168.30.0 255.255.255.0 gig0/1
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-1(config)#do sh 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 not set
S 192.168.10.0/24 is directly connected, GigabitEthernet0/0
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/2
L 192.168.20.1/32 is directly connected, GigabitEthernet0/2
S 192.168.30.0/24 is directly connected, GigabitEthernet0/1
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.2/32 is directly connected, GigabitEthernet0/0
192.168.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.200.0/24 is directly connected, GigabitEthernet0/1
L 192.168.200.1/32 is directly connected, GigabitEthernet0/1
Router-2:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router-2
Router-2(config)#int g0/0
Router-2(config-if)#ip add 192.168.200.2 255.255.255.0
Router-2(config-if)#no sh
Router-2(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-2(config-if)#int g0/1
Router-2(config-if)#ip add 192.168.30.1 255.255.255.0
Router-2(config-if)#no sh
Router-2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router-2(config)#ip route 192.168.100.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-2(config)# ip route 192.168.10.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-2(config)#ip route 192.168.20.0 255.255.255.0 gig0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
Router-2(config)#do sh 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 not set
S 192.168.10.0/24 is directly connected, GigabitEthernet0/0
S 192.168.20.0/24 is directly connected, GigabitEthernet0/0
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet0/1
L 192.168.30.1/32 is directly connected, GigabitEthernet0/1
S 192.168.100.0/24 is directly connected, GigabitEthernet0/0
192.168.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.200.0/24 is directly connected, GigabitEthernet0/0
L 192.168.200.2/32 is directly connected, GigabitEthernet0/0
