User's Manual

Chapter 6 Interfaces
NXC CLI Reference Guide
64
6.7.1 VLAN Interface Examples
This example creates a VLAN interface called ‘vlan0’..
This example changes VLAN interface ‘vlan0’ to use DHCP..
description description Sets the description of this interface. It is not used
elsewhere. You can use alphanumeric and ()+/
:=?!*#@$_%- characters, and it can be up to 60
characters long.
no description Removes the VLAN description.
[no] shutdown Exits this sub-command mode, saving all changes but
without enabling the VLAN.
[no] ip dhcp-pool profile_name Sets the DHCP server pool. The no command removes
the specified DHCP pool.
[no] ip helper-address ip_address Sets the IP helper address. The no command removes
the IP address.
exit Exits configuration mode for this interface.
Table 22 Command Summary: VLAN Interface Profile (continued)
COMMAND DESCRIPTION
Router(config)# interface vlan0
Router(config-if-vlan)# vlanid 100
Router(config-if-vlan)# join ge2 untag
Router(config-if-vlan)# ip address 1.2.3.4 255.255.255.0
Router(config-if-vlan)# ip gateway 2.2.2.2 metric 11
Router(config-if-vlan)# mtu 598
Router(config-if-vlan)# upstream 345
Router(config-if-vlan)# downstream 123
Router(config-if-vlan)# description I am vlan0
Router(config-if-vlan)# exit
Router(config)#
Router(config)# interface vlan0
Router(config-if-vlan)# vlanid 100
Router(config-if-vlan)# join ge1 untag
Router(config-if-vlan)# ip address dhcp metric 4
Router(config-if-vlan)# exit
Router(config)#