Related Commands

show vlan (4-130)

4.3.12.3interface vlan

Use this command to enter interface configuration mode for VLANs, and configure a physical interface.

Syntax

interface vlan vlan-id

vlan-id– The ID of the configured VLAN. (Range: 1-4094, no leading zeroes)

Default Setting

None

Command Mode

Global Configuration

Example

The following example shows how to set the interface configuration mode to VLAN 1, and then assign an IP address to the VLAN:

Console(config)#interface vlan 1

Console(config-if)#ip address 192.168.1.254 255.255.255.0

Console(config-if)#

Related Commands

shutdown (4-91)

4.3.12.4switchport mode

Use this command to configure the VLAN membership mode for a port. Use the no form to restore the default.

Chapter 4 Command-Line Reference 4-123

Page 321
Image 321
Sunfire B1600 manual Interface vlan, Switchport mode, Consoleconfig-if#ip address 192.168.1.254