hapus dulu konfigurasi dari virtual-link :
R1:
conf t
router ospf 1
no area 1 virtual-link 2.2.2.2
!
R2 :
conf t
router ospf 2
no area 1 virtual-link 1.1.1.1
no area 2 virtual-link 3.3.3.3
!
R3 :
conf t
router ospf 3
no area 2 virtual-link 2.2.2.2
saatnya kita mainkan GRE tunnelnya, saya buat GRE tunnel di R1 :
conf t
int tun 1
ip add 102.102.102.1 255.255.255.0
tunnel source 12.12.12.1
tunnel destination 12.12.12.2
router ospf 1
network 102.102.102.1 0.0.0.0 area 0
buat GRE tunnel di R2 :
conf t
int tun 1
ip add 102.102.102.2 255.255.255.0
tunnel source 12.12.12.2
tunnel destination 12.12.12.1
router ospf 2
network 102.102.102.2 0.0.0.0 area 0
sekarang buat tunnel dari R2 ke R3 :
R2:
conf t
int tun 2
ip add 203.203.203.2 255.255.255.0
tunnel source 23.23.23.2
tunnel destination 23.23.23.3
router ospf 2
network 203.203.203.2 0.0.0.0 area 0
R3:
conf t
int tun 2
ip add 203.203.203.3 255.255.255.0
tunnel source 23.23.23.3
tunnel destination 23.23.23.2
router ospf 3
network 203.203.203.3 0.0.0.0 area 0
verifikasi :
R1#sh ip route
102.0.0.0/24 is subnetted, 1 subnets
C 102.102.102.0 is directly connected, Tunnel1
O 203.203.203.0/24 [110/22222] via 102.102.102.2, 00:01:43, Tunnel1
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 12.12.12.2, 01:55:40, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/22223] via 102.102.102.2, 00:01:33, Tunnel1
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/11175] via 102.102.102.2, 00:58:53, Tunnel1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1#
R2#sh ip route
102.0.0.0/24 is subnetted, 1 subnets
C 102.102.102.0 is directly connected, Tunnel1
C 203.203.203.0/24 is directly connected, Tunnel2
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11112] via 102.102.102.1, 00:59:37, Tunnel1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/11112] via 203.203.203.3, 00:02:18, Tunnel2
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R2#
R3#sh ip route
102.0.0.0/24 is subnetted, 1 subnets
O 102.102.102.0 [110/22222] via 203.203.203.2, 00:02:39, Tunnel2
C 203.203.203.0/24 is directly connected, Tunnel2
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/22223] via 203.203.203.2, 00:02:39, Tunnel2
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/11112] via 203.203.203.2, 00:02:39, Tunnel2
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/11121] via 203.203.203.2, 00:02:41, Tunnel2
R3#
No comments:
Post a Comment