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 l3-interface vlan-interface address prefix-length command in L2/L3 configuration mode. To remove an L3 interface, use the delete form of the command.

Command Syntax

set l3-interface vlan-interface <interface-name> address <address> prefix-length <number>
delete l3-interface vlan-interface <interface-name>

Parameters

ParameterDescription
vlan-interface <interface-name>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 l3-interface vlan-interface vlan10 address 192.168.1.1 prefix-length 24
admin@Switch# commit
admin@Switch# delete l3-interface vlan-interface vlan10
  • The following example configures the IPv6 address for the vlan20 L3 interface and then removes the L3 interface:
admin@Switch# set l3-interface vlan-interface vlan20 address 2001:1:1::1 prefix-length 64
admin@Switch# commit
admin@Switch# delete l3-interface vlan-interface vlan20
  • No labels