
Chapter 6 | CLI – Layer 3 |
|
|
Interface Mode
ip address Command
Use the ip address command to assign an IP address and mask to an interface.
The syntax for this command is:
ip address
ip address | The IP address assigned to the interface. |
mask | Mask for the associated IP subnet |
The administration status – either Up or Down |
Example:
To assign the IP address 192.168.22.33 with mask 255.255.255.0 to the interface “marketing”:
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".
153 |