beautypg.com

2 interface vlan, 3 show ip route, 3 show ip route -1 – PLANET WGSW-52040 User Manual

Page 390

background image

23-1

23.1.2 interface vlan

Command:

interface vlan

no interface vlan

Function:

Create a VLAN interface (a Layer 3 interface); the “no interface vlan ” command deletes the Layer 3

interface specified.

Parameters:

<vlan-id> is the VLAN ID of the established VLAN, ranging from 1 to 4094.

Default:

No Layer 3 interface is configured upon switch shipment.

Command mode:

Global Mode

Usage Guide:

When creating a VLAN interface (Layer 3 interface), VLANs should be configured first, for details, see the VLAN

chapters. When VLAN interface (Layer 3 interface) is created with this command, the VLAN interface (Layer 3

interface) configuration mode will be entered. After the creation of the VLAN interface (Layer 3 interface), interface

vlan command can still be used to enter Layer 3 Port Mode. Configure 16 interface vlan to manage device that is

supported by layer 2 switch, but layer 3 forward is not supported.

Example:

Create a VLAN interface (layer 3 interface).

Switch(config)#interface vlan 1

Switch(Config-if-Vlan1)#

23.1.3 show ip route

Command:

show ip route [ database ]

Function: