Configuring Layer 3 Features > > Support for IPv4 and IPv6 on a vRouter Interface
Was this helpful?
Support for IPv4 and IPv6 on a vRouter Interface
You can now add IPv4 and IPv6 addresses to a vRouter interface. If you enable or disable the interface, both IPv4 and IPv6 are affected. Routing protocols can be enabled or configured independently using the IP address.
When you add a vRouter interface, you can configure it with two IP addresses, IPv4 and IPv6:
CLI network-admin@Leaf1 > vrouter-interface-add vrouter-name name-string vlan vlan-id ip ip-address netmask netmask assigment none|dhcp ip2 ip-address netmask2 netmask assigment none|dhcp|dchpv6
You can display the IP addresses:
CLI network-admin@Leaf1 > vrouter-interface-show vrouter-name name-string vlan vlan-id ip ip-address netmask netmask assignment none|dhcp|dchpv6 ip2 ip-address netmask2 netmask assignment none|dhcp|dchpv6
To migrate the interface from a single stack to a dual stack, use the following commands:
CLI network-admin@Leaf1 > vrouter-interface-ip-add
vrouter-name name-string
Specify the name of the vRouter.
nic nic-string
Specify the virtual NIC assigned to the interface.
ip ip-address
Specify the IP address assigned to the interface.
netmask netmask
Specify the netmask of the IP address.
Specify any of the following options
vnet vnet-name
Specify the vNET assigned to the vRouter.
l2-net l2-net name
Specify the Layer 2 interface.
CLI network-admin@Leaf1 > vrouter-interface-ip-remove
vrouter-name name-string
Specify the name of the vRouter.
nic nic-string
Specify the virtual NIC assigned to the interface.
ip ip-address
Specify the IP address assigned to the interface.
CLI network-admin@Leaf1 > vrouter-interface-ip-show
vrouter-name name-string
Specify the name of the vRouter.
nic nic-string
Specify the virtual NIC assigned to the interface.
ip ip-address
Specify the IP address assigned to the interface.
netmask netmask
Specify the netmask of the IP address.
Specify any of the following options
vnet vnet-name
Specify the vNET assigned to the vRouter.
l2-net l2-net name
Specify the Layer 2 interface.