Configuration Guide
IPv6 Service Configuration Guide
8 min
introduction introduction internet protocol version 6 (ipv6), also called ip next generation (ipng), is a second generation network layer protocol and an upgraded version of internet protocol version 4 (ipv4) it is designed by the internet engineering task force (ietf) configure the ipv6 address of the interface configure the ipv6 address of the interface table 1 configure ipv6 address of the interface table 1 configure ipv6 address of the interface true 163,221 5,221 5left #4283c7 unhandled content type left #4283c7 unhandled content type left #4283c7 unhandled content type left unhandled content type left unhandled content type left unhandled content type left #d8e5f5 unhandled content type left #d8e5f5 unhandled content type left #d8e5f5 unhandled content type left unhandled content type left unhandled content type left unhandled content type note for the ethernet ports, lagifs and vlanifs, the ipv6 use link local attribute will be enabled automatically after configuring an ipv6 address, that is, the ipv6 link local address will be generated automatically enable auto generation of ipv6 link local address for interfaces enable auto generation of ipv6 link local address for interfaces ipv6 link local addresses are commonly used for neighbor discovery protocols and stateless autoconfiguration there are two ways to generate auto generation the device automatically generates a link local address for an interface based on the link local address prefix (fe80 /10) and the link layer address of the interface manual assignment users manually configure the ipv6 link local address via the method described in docid\ i967vuair8wnnecpvkicf it is recommended to use the auto generation method to avoid link local address conflicts table 2 enable auto generation of ipv6 link local address for interfaces table 2 enable auto generation of ipv6 link local address for interfaces true 167,316 0616735514611,122 93832644853887left #4283c7 unhandled content type left #4283c7 unhandled content type left #4283c7 unhandled content type left unhandled content type left unhandled content type left unhandled content type left #d8e5f5 unhandled content type left #d8e5f5 unhandled content type left #d8e5f5 unhandled content type left unhandled content type left unhandled content type left unhandled content type display and maintenance display and maintenance table 3 ipv6 display and maintenance table 3 ipv6 display and maintenance true 308,180 92993630573247,117 07006369426753left #4283c7 unhandled content type left #4283c7 unhandled content type left #4283c7 unhandled content type left unhandled content type left unhandled content type left unhandled content type typical configuration example typical configuration example configure slaac configure slaac networking requirements multiple hosts are connected to device a it is expected to configure an ipv6 address on the interface of device a, and notify to the hosts to obtain the ipv6 address in a stateful manner as well as other related configuration information topology procedure \#create a vlan, configure an ipv6 address, and add vlan member sonic# configure terminal sonic(config)# vlan 10 sonic(config vlan 10)# exit sonic(config)# interface vlan 10 sonic(config vlanif 10)# ip address 2001 1/64 sonic(config)# interface ethernet 0/0 sonic(config if 0/0)# switchport access vlan 10 \#enable ra advertisement, advertise ipv6 address prefixes, and set the m and o flag to 1 sonic(config)# radv enable please enter 'radv commit' to take effect sonic(config)# radv commit sonic(config)# interface vlan 10 sonic(config vlanif 10)# radv prefix 2001 /64 please enter 'radv commit' to take effect sonic(config vlanif 10)# radv managed flag please enter 'radv commit' to take effect sonic(config vlanif 10)# radv other config flag please enter 'radv commit' to take effect sonic(config vlanif 10)# radv commit verification \#display radv configuration on device a sonic# show radv enabled true global unicast only false + + + + + + + + + + + + \| interface | prefix | managed flag | otherconfig flag | offlink | no autonomous | link mtu | rdnss | route | preference | maxrtradvinterval | minrtradvinterval | +=============+===========+================+====================+===========+=================+============+=========+======================+=====================+=====================+ \| vlan10 | 2001 /64 | on | on | | | | | | | | + + + + + + + + + + + + \#the hosts can ping the gateway \#check nd neighbors on device a sonic# show ndp 2001 /64 address macaddress iface vlan status \ 2001 210 94ff\ fe00 1 00 10 94 00 00 01 0/4 10 reachable 2001 210 94ff\ fe00 2 00 10 94 00 00 02 0/4 10 reachable 2001 210 94ff\ fe00 3 00 10 94 00 00 03 0/4 10 reachable 2001 210 94ff\ fe00 4 00 10 94 00 00 04 0/4 10 reachable 2001 210 94ff\ fe00 5 00 10 94 00 00 05 0/4 10 reachable 2001 210 94ff\ fe00 6 00 10 94 00 00 06 0/4 10 reachable 2001 210 94ff\ fe00 7 00 10 94 00 00 07 0/4 10 reachable 2001 210 94ff\ fe00 8 00 10 94 00 00 08 0/4 10 reachable 2001 210 94ff\ fe00 9 00 10 94 00 00 09 0/4 10 reachable 2001 210 94ff\ fe00\ a 00 10 94 00 00 0a 0/4 10 reachable total number of entries 10
