IPv6简单配置

 AR1配置

interface GigabitEthernet0/0/0
 ipv6 enable 
 ipv6 address 2001::1/64 
#
interface GigabitEthernet0/0/1
 ipv6 enable 
 ipv6 address 2003::1/64 
ipv6 route-static :: 0 2001::2 #默认路由

AR2配置

interface GigabitEthernet0/0/0
 ipv6 enable 
 ipv6 address 2001::2/64 
#
interface GigabitEthernet0/0/1
 ipv6 enable 
 ipv6 address 2002::2/64 
ipv6 route-static :: 0 2001::1   #默认路由。
 

PC1和PC2

PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:feb1:3da2
IPv6 address......................: 2003::2 / 64
IPv6 gateway......................: 2003::1
IPv4 address......................: 0.0.0.0
Subnet mask.......................: 0.0.0.0
Gateway...........................: 0.0.0.0
Physical address..................: 54-89-98-B1-3D-A2
DNS server........................:
PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe93:3f95
IPv6 address......................: 2002::10 / 64
IPv6 gateway......................: 2002::2
IPv4 address......................: 0.0.0.0
Subnet mask.......................: 0.0.0.0
Gateway...........................: 0.0.0.0
Physical address..................: 54-89-98-93-3F-95
DNS server........................:
PC>ping 2001::2

Ping 2001::2: 32 data bytes, Press Ctrl_C to break
From 2001::2: bytes=32 seq=1 hop limit=63 time=32 ms
From 2001::2: bytes=32 seq=2 hop limit=63 time=16 ms
From 2001::2: bytes=32 seq=3 hop limit=63 time<1 ms
From 2001::2: bytes=32 seq=4 hop limit=63 time=16 ms
From 2001::2: bytes=32 seq=5 hop limit=63 time<1 ms

--- 2001::2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 0/12/32 ms

PC>

猜你喜欢

转载自www.cnblogs.com/liujunjun/p/12980701.html