Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

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-nameInterface name.
vif-nameL3 interface name.
addressIPv4 or IPv6 address.
numberThe 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
  • No labels