© Copyright Lenovo 2018 Chapter 22: Internet Protocol Version 6 331
IPv6 Interfaces
EachIPv6interfacesupportsmultipleIPv6addresses.Youcanmanuallyconfigure
uptotwoIPv6addressesforeachinterface,oryoucanallowtheswitchtouse
statelessautoconfiguration.Bydefault,theswitchaut o matically configuresthe
IPv6addressofitsmanagementinterface.
YoucanmanuallyconfiguretwoIPv6addressesforeach
interface,asfollows:
InitialIPv6addressisaglobalunicastoranycastaddress.
Notethatyoucannotconfigurebothaddressesasanycast.Ifyouconfigurean
anycastaddressontheinterfaceyoumustalsoconfigureaglobalunicast
addressonthatinterface.
SecondIPv6addresscanbeaunicastoranycastaddress.
YoucannotconfigureanIPv4addressonanIPv6managementinterface.Each
interfacecanbeconfiguredwithonlyoneaddresstype:eitherIPv4orIPv6,butnot
both.WhenchangingbetweenIPv4andIPv6addressformats,theprioraddress
settings
fortheinterfacearediscarded.
EachIPv6interfacecanbelongtoonlyoneVLAN.EachVLANcansupportonly
oneIPv6interface.EachVLANcansupportmultipleIPv4interfaces.
Interface125/126isreservedforIPv6hostsupport.Thisinterfaceisincludedin
managementVLAN4095.Usethefollowingcommandstoconfigure
theIPv6
gateway:
IPv6gateway1isreservedforIPv6datainterfaces.IPv6gateway3and4arethe
defaultIPv6managementgateways.
NE2552E(config)# interface ip <interfacenumber>
NE2552E(config-ip-if)# ipv6 address <IPv6address>
NE2552E(config-ip-if)# ipv6 secaddr6 <IPv6address>
NE2552E(config-ip-if)# exit
NE2552E(config)# ip gateway6 1 address <IPv6address>
NE2552E(config)# ip gateway6 1 enable