CCNP(BSCI)實驗:手動IPv6 Tunnel(隧道)實驗

CCNP(BSCI)實驗:手動IPv6 Tunnel(隧道)實驗
手動IPv6 Tunnel(隧道)實驗,適用於IPv4裏跑IPv6
預配置:
第一步:配置IP地址ide

R1(config)#int s2/1
R1(config-if)#ip add 12.0.0.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int lo0
R1(config-if)#ipv6 add 1::1/64測試

R3(config)#int lo0
R3(config-if)#ipv6 add 3::1/64
R3(config-if)#int s2/1
R3(config-if)#ip add 23.0.0.3 255.255.255.0
R3(config-if)#no shdebug

R2(config)#int s2/1
R2(config-if)#ip add 12.0.0.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int s2/2
R2(config-if)#ip ad 23.0.0.2 255.255.255.0
R2(config-if)#no sh
第二步:配置IPv4路由調試

R1(config)#router eigrp 123
R1(config-router)#no au
R1(config-router)#net 12.0.0.0code

R3(config)#router ei 123
R3(config-router)#net 23.0.0.3
R3(config-router)#no aurouter

R2(config)#router ei 123
R2(config-router)#no au
R2(config-router)#net 12.0.0.2
R2(config-router)#net 23.0.0.2
R2(config-router)#end
第三步:查看IPv4路由blog

R1#sh ip rou
Codes: 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
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
o - ODR, P - periodic downloaded static routeip

Gateway of last resort is not set路由

23.0.0.0/24 is subnetted, 1 subnets
D 23.0.0.0 [90/2681856] via 12.0.0.2, 00:00:42, Serial2/1
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial2/1it

R2#sh ip rou
Codes: 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
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
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

23.0.0.0/24 is subnetted, 1 subnets

C 23.0.0.0 is directly connected, Serial2/2
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial2/1

R3#sh ip rou
Codes: 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
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
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

23.0.0.0/24 is subnetted, 1 subnets
C 23.0.0.0 is directly connected, Serial2/1
12.0.0.0/24 is subnetted, 1 subnets
D 12.0.0.0 [90/2681856] via 23.0.0.2, 00:01:34, Serial2/1
實驗過程:

第一步:配置隧道
R1(config)#int tunnel 0
R1(config-if)#tunnel source s2/1
R1(config-if)#tunnel destination 23.0.0.3
R1(config-if)#ipv6 add 13::1/64
R1(config-if)#tunnel mode ipv6ip

R3(config)#int tunnel 0
R3(config-if)#tunnel source s2/1
R3(config-if)#tunnel destination 12.0.0.1
R3(config-if)#ipv add 13::3/64
R3(config-if)#tunnel mode ipv6ip
第二步:測試隧道

R1#ping 13::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/8 ms
第三步:配置iPv6路由

R1(config)#ipv6 route 3::/64 tunnel 0
R3(config)#ipv6 route 1::/64 tunnel 0
第四步:調試過程

R1#debug ipv6 packet
IPv6 unicast packet debugging is on
R1#ping 3::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::1, timeout is 2 seconds:
! !!!!
Dec 2 13:08:19.527: IPv6: SAS picked source 13::1 for 3::1 (Tunnel0)
Dec 2 13:08:19.531: IPV6: source 13::1 (local)
Dec 2 13:08:19.535: dest 3::1 (Tunnel0)
Dec 2 13:08:19.535: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
Dec 2 13:08:19.535: IPv6: Sending on Tunnel0
Dec 2 13:08:19.639: IPV6: source 3::1 (Tunnel0)
Dec 2 13:08:19.639: dest 13::1
Dec 2 13:08:19.643: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp
Dec 2 13:08:19.647: IPv6: SAS picked source 13::1 for 3::1 (Tunnel0)
Dec 2 13:08:19.647: IPV6: source 13::1 (local)
Dec 2 13:08:19.647: dest 3::1 (Tunnel0)
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/106/200 ms
R1#
Dec 2 13:08:19.651: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
Dec 2 13:08:19.651: IPv6: Sending on Tunnel0
Dec 2 13:08:19.843: IPV6: source 3::1 (Tunnel0)
Dec 2 13:08:19.843: dest 13::1
Dec 2 13:08:19.847: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp
Dec 2 13:08:19.851: IPv6: SAS picked source 13::1 for 3::1 (Tunnel0)
Dec 2 13:08:19.851: IPV6: source 13::1 (local)
Dec 2 13:08:19.851: dest 3::1 (Tunnel0)
Dec 2 13:08:19.855: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
Dec 2 13:08:19.855: IPv6: Sending on Tunnel0
Dec 2 13:08:19.935: IPV6: source 3::1 (Tunnel0)
Dec 2 13:08:19.939: dest 13::1
Dec 2 13:08:19.939: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp
Dec 2 13:08:19.943: IPv6: SAS picked source 13::1 for 3::1 (Tunnel0)
Dec 2 13:08:19.943: IPV6: source 13::1 (local)
Dec 2 13:08:19.943: de
R1#st 3::1 (Tunnel0)
Dec 2 13:08:19.947: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
Dec 2 13:08:19.947: IPv6: Sending on Tunnel0
Dec 2 13:08:20.015: IPV6: source 3::1 (Tunnel0)
Dec 2 13:08:20.015: dest 13::1
Dec 2 13:08:20.019: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp
Dec 2 13:08:20.023: IPv6: SAS picked source 13::1 for 3::1 (Tunnel0)
Dec 2 13:08:20.023: IPV6: source 13::1 (local)
Dec 2 13:08:20.023: dest 3::1 (Tunnel0)
Dec 2 13:08:20.027: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating
Dec 2 13:08:20.027: IPv6: Sending on Tunnel0
Dec 2 13:08:20.075: IPV6: source 3::1 (Tunnel0)
Dec 2 13:08:20.075: dest 13::1
Dec 2 13:08:20.079: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp

R1#debug ip packet
R1#ping 3::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::1, timeout is 2 seconds:
!!! !!
Dec 2 13:10:56.531: IP: s=12.0.0.1 (Tunnel0), d=23.0.0.3 (Serial2/1), len 120, sending
Dec 2 13:10:56.635: IP: tableid=0, s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), routed via RIB
Dec 2 13:10:56.639: IP: s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), len 120, rcvd 3
Dec 2 13:10:56.643: IP: s=12.0.0.1 (Tunnel0), d=23.0.0.3 (Serial2/1), len 120, sending
Dec 2 13:10:56.759: IP: tableid=0, s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), routed via RIB
Dec 2 13:10:56.759: IP: s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), len 120, rcvd 3
Dec 2 13:10:56.767: IP: s=12.0.0.1 (Tunnel0), d=23.0.0.3 (Serial2/1), len 120, sending
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/100/124 ms
Dec 2 13:10:56.835: IP: tableid=0, s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), routed via RIB
Dec 2 13:10:56.835: IP: s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), len 120, rcvd 3
Dec 2 13:10:56.843: IP: s=12.0.0.1 (Tunnel0), d=23.0.0.3 (Serial2/1), len 120, sending
Dec 2 13:10:56.963: IP: tableid=0, s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), routed via RIBDec 2 13:10:56.963: IP: s=23.0.0.3 (Serial2/1), d=12.0.0.1 (Serial2/1), len 120, rcvd 3*Dec 2 13:10:56.971: IP: s=12.0.0.1 (Tunnel0), d=23.0.0.3 (Serial2/1), len 120, sending

相關文章
相關標籤/搜索