interfaces dataplane <interface-name> vif <vif-id> address
Assigns an IP address and a network prefix to a vif.
- interface-name
- The name of a data plane interface. For more information about the supported interface name formats, refer to Data Plane Interface.
- vif-id
- Multinode. The ID of a vif. The ID ranges from 1 through 4094.
- ipv4
- An IPv4 address and a network prefix for this vif. The format is ip-address/prefix (for example, 192.168.1.77/24).
You can define multiple IP addresses for a vif by creating multiple address configuration nodes.
- ipv6
- An IPv6 address and a network prefix for this vif. The format is ipv6-address/prefix (for example, 2001:db8:1234::/48).
You can define multiple IPv6 addresses for a vif by creating multiple address configuration nodes.
- dhcp
- Defines the interface as a DHCP client, which obtains its address and prefix from a DHCP server.
- dhcpv6
- Defines the interface as a DHCP for IPv6 client, which obtains its address and prefix from a DHCPv6 server.
Configuration mode
interfaces {
dataplane interface-name {
vif vif-id {
address [ipv4 | ipv6 | dhcp | dhcpv6]
}
}
}
Use this command to assign an IP address and a network prefix to a vif.
Use the set form of this command to assign an IP address and a network prefix to a vif.
Use the delete form of this command to delete an IP address and a network prefix on a vif.
Use the show form of this command to display an IP address and a network prefix for a vif.