Chapter 6 CLI – Layer 3
P332G-ML User’s Guide 153
Interface Mode
ip address Command
Use the ip address command to assign an IP address and mask to an interf ace.
The syntax for this command is:
ip address <ip-address> <mask> [<admin-state>]
Example:
To assign the IP address 192.168.22.33 with mask 255.255.255.0 to the interface
“marketing”:
Router-N(config-if:marketing)# ip address 192.168.22.33
255.255.255.0
ip vlan/ip vlan name Commands
Use these commands to specify the VLAN on which an IP interface resides. You
can specify either the VLAN ID using the ip vlan command or the VLAN name
using the ip vlan name command. The no form of the command restores the IP
interface to the default VLAN.
The syntax for this command is:
[no] ip vlan <vlan-id>
or
ip vlan name <vlan-Name>
Example:
To specify VLAN developmental as the VLAN used by interface “products”:
Router-N(config-if:marketing)# ip vlan name development
Note: If you wish to define a name which includes spaces, you must enclose the
entire name in quotation marks, e.g. "new york".
ip address The IP address assigned to the interface.
mask Mask for the associated IP subnet
admin-state The administration status – either Up or Down