ipv6 6to4 tunnel config

来源:互联网 发布:besiege mac 下载 编辑:程序博客网 时间:2024/04/30 08:59
R4----46.1.1.0/24---(e0/0)---R6---(e0/1)---56.1.1.0/24-----R6

hostname r4

ip cef

ipv6 unicast-routing

interface Tunnel0
no ip address
no ip redirects
ipv6 address 2002:2E01:104::4/128
tunnel source Ethernet0/0
tunnel mode ipv6ip 6to4

interface Ethernet0/0
ip address 46.1.1.4 255.255.255.0

router ospf 1
network 46.1.1.0 0.0.0.255 area 0

ipv6 route 2002::/16 Tunnel0
ipv6 route ::/0 2002:3801:105::5
============================================

hostname r5

ipv6 unicast-routing

interface Tunnel0
no ip address
no ip redirects
ipv6 address 2002:3801:105::5/128
tunnel source FastEthernet0/0
tunnel mode ipv6ip 6to4
!
interface FastEthernet0/0
ip address 56.1.1.5 255.255.255.0

router ospf 1
network 56.1.1.0 0.0.0.255 area 0

ipv6 route 2002::/16 Tunnel0
ipv6 route ::/0 2002:2E01:104::4
==========================================
hostname r6
!
interface Ethernet0/0
ip address 46.1.1.6 255.255.255.0

interface Ethernet0/1
ip address 56.1.1.6 255.255.255.0

router ospf 1
log-adjacency-changes
network 46.1.1.0 0.0.0.255 area 0
network 56.1.1.0 0.0.0.255 area 0
==========================================
r4(config)#do sh ip route
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

56.0.0.0/24 is subnetted, 1 subnets
O 56.1.1.0 [110/20] via 46.1.1.6, 00:39:52, Ethernet0/0
46.0.0.0/24 is subnetted, 1 subnets
C 46.1.1.0 is directly connected, Ethernet0/0
================================================== ==============================
r5#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

56.0.0.0/24 is subnetted, 1 subnets
C 56.1.1.0 is directly connected, FastEthernet0/0
46.0.0.0/24 is subnetted, 1 subnets
O 46.1.1.0 [110/11] via 56.1.1.6, 00:40:43, FastEthernet0/0
===========================================
r6(config-line)#do sh ip route
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

56.0.0.0/24 is subnetted, 1 subnets
C 56.1.1.0 is directly connected, Ethernet0/1
46.0.0.0/24 is subnetted, 1 subnets
C 46.1.1.0 is directly connected, Ethernet0/0
================================================== ======
r4(config)#do sh ipv6 route
IPv6 Routing Table - 5 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
S ::/0 [1/0]
via 2002:3801:105::5
S 2002::/16 [1/0]
via ::, Tunnel0
LC 2002:2E01:104::4/128 [0/0]
via ::, Tunnel0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
================================================== =========================
r4(config)#do ping 2002:3801:0105::5

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:3801:105::5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
================================================== =======
r5#sh ipv6 route
IPv6 Routing Table - 5 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
Timers: Uptime/Expires

LC 2002:3801:105::5/128 [0/0]
via ::, Tunnel0, 00:13:01/never
S 2002::/16 [1/0]
via ::, Tunnel0, 00:20:15/never
L FE80::/10 [0/0]
via ::, Null0, 00:13:01/never
L FF00::/8 [0/0]
via ::, Null0, 00:13:01/never
S ::/0 [1/0]
via 2002:2E01:104::4, Null, 00:19:19/never
================================================== =====================
r5#ping 2002:2e01:0104::4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:2E01:104::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

r5#sh int tu0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
MTU 1514 bytes, BW 9 Kbit, DLY 500000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 56.1.1.5 (FastEthernet0/0), destination 0.0.0.0
Tunnel protocol/transport IPv6 6to4, key disabled, sequencing disabled
Checksumming of packets disabled
Last input 00:39:33, output 00:39:33, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
15 packets input, 1800 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
20 packets output, 2400 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
r5#sh ipv6 int tu0
Tunnel0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::3801:105
Global unicast address(es):
2002:3801:105::5, subnet is 2002:3801:105::5/128
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF01:105
FF02::1:FF00:5
MTU is 1480 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is not supported
ND reachable time is 30000 milliseconds
Hosts use stateless autoconfig for addresses. 
原创粉丝点击