/
vlan-interface interface vif address prefix-length
vlan-interface interface vif address prefix-length
To configure an IPv4 or IPv6 address for an L3 interface, use the set vlan-interface interface vif address prefix-length command in L2/L3 configuration mode. To remove an L3 interface, use the delete form of the command.
Command Syntax
set vlan-interface interface interface-name vif vif-name address address prefix-length number
delete vlan-interface interface interface-name
Parameters
interface-name | Interface name. |
vif-name | L3 interface name. |
address | IPv4 or IPv6 address. |
number | The network prefix length. The range is 4-32 for IPv4 addresses, and 1-128 for IPv6 addresses. |
Example
The following example configures the IPv4 address for the vlan10 L3 interface and then removes the L3 interface:
admin@Switch# set vlan-interface interface vlan10 vif vlan10 address 192.168.1.1 prefix-length 24 admin@Switch# commit admin@Switch# delete vlan-interface interface vlan10
The following example configures the IPv6 address for the vlan20 L3 interface and then removes the L3 interface:
admin@Switch# set vlan-interface interface vlan20 vif vlan20 address 2001:1:1::1 prefix-length 64 admin@Switch# commit admin@Switch# delete vlan-interface interface vlan20
Copyright © 2025 Pica8 Inc. All Rights Reserved.