Chapter 6 Interfaces

Table 22 Command Summary: VLAN Interface Profile (continued)

COMMAND

DESCRIPTION

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.

6.7.1 VLAN Interface Examples

This example creates a VLAN interface called ‘vlan0’..

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)#

This example changes VLAN interface ‘vlan0’ to use DHCP..

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)#

64

 

NXC CLI Reference Guide