Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure the IPv6 Address of the Interface

Network Requirements

  • Two devices are connected via the Ethernet port, configure the IPv6 global unicast address for the interface, and verify the connectivity between them.

Network Topology

Networking for configuring the Ipv6 address of the interface

Figure 5-1 Networking for configuring the Ipv6 address of the interface

Configuration Steps

Step 1: Enable the IPv6 forwarding capability of the device.

#Configure Device1.

Device1#configure terminal
Device1(config)#ipv6 unicast-routing

#Configure Device2.

Device2#configure terminal
Device2(config)#ipv6 unicast-routing

Step 2: Configure the global unicast address of the interface.

#Configure the global unicast address of Device1 interface gigabitethernet0/0/1 as 2001:1::1/64.

Device1(config)#interface gigabitethernet0/0/1
Device1(config-if-gigabitethernet0/0/1)#ipv6 address 2001:1::1/64
Device1(config-if-gigabitethernet0/0/1)#exit

#Configure the global unicast address of Device2 interface gigabitethernet0/0/1 as 2001:1::2/64.

Device2(config)# interface gigabitethernet0/0/1
Device2(config-if-gigabitethernet0/0/1)#ipv6 address 2001:1::2/64
Device2(config-if-gigabitethernet0/0/1)#exit

Step 3: Check the result.

#View the Device1 interface information.

Device1#show ipv6 interface gigabitethernet0/0/1
gigabitethernet0/0/1 is up 
  VRF: global 
  IPv6 is enable, link-local address is fe80::0201:7aff:fe46:a64d 
  Global unicast address(es): 
    2001:0001::0001, subnet is 2001:0001::/64 
  Joined group address(es): 
    ff02::0001:ff00:0001 
    ff02::0001:ff00:0 
    ff02::0002 
    ff02::0001 
    ff02::0001:ff46:a64d 
  ND control flags: 0x1 
  MTU is 1500 bytes 
  ICMP redirects are enabled 
  ICMP unreachables are enabled 
  ND DAD is enabled, number of DAD attempts: 1 
  ND reachable time is 30000 milliseconds 
  ND advertised reachable time is 0 (unspecified) 
  ND advertised retransmit interval is 0 (unspecified) 

After configuring the IPv6 address, enable the IPv6 protocol function on the interface automatically, generate the local address of the link automatically, and add into the corresponding multicast group.

#View the interface information of Device2.

Device2#show ipv6 interface gigabitethernet0/0/1
gigabitethernet0/0/1 is up 
  VRF: global 
  IPv6 is enable, link-local address is fe80::0201:7aff:fe22:e222 
  Global unicast address(es): 
    2001:0001::0002, subnet is 2001:0001::/64 
  Joined group address(es): 
    ff02::0001:ff00:0002 
    ff02::0001:ff00:0 
    ff02::0002 
    ff02::0001 
    ff02::0001:ff22:e222 
  ND control flags: 0x1 
  MTU is 1500 bytes 
  ICMP redirects are enabled 
  ICMP unreachables are enabled 
  ND DAD is enabled, number of DAD attempts: 1 
  ND reachable time is 30000 milliseconds 
  ND advertised reachable time is 0 (unspecified) 
  ND advertised retransmit interval is 0 (unspecified)

#Ping the link local address of Device2 fe80::0201:7aff:fe22:e222 on Device1.

Device1#ping fe80::0201:7aff:fe22:e222 
 
Press key (ctrl + shift + 6) interrupt it. 
Sending 5, 76-byte ICMP Echos to fe80::201:7aff:fe22:e222 , timeout is 2 seconds: 
 
Output Interface: gigabitethernet0/0/1 
!!!!! 
Success rate is 100% (5/5). Round-trip min/avg/max = 0/96/483 ms. 

note


  • When pinging the link local address, it is necessary to specify the egress interface, which is the interface on the same link of the ping link local address.

     

#On Device1, ping the global unicast address of Device2 2001:1::2.

Device1#ping 2001:1::2 
 
Press key (ctrl + shift + 6) interrupt it. 
Sending 5, 76-byte ICMP Echos to 2001:1::2 , timeout is 2 seconds: 
!!!!! 
Success rate is 100% (5/5). Round-trip min/avg/max = 0/36/183 ms. 

Device1 and Device2 can ping each other.