Interface Vlan - Digitalchina Networks DCS-3950 series Manual

Table of Contents

Advertisement

25.1.2.2 Layer 3 Interface Command List

25.1.2.2.1 interface vlan

Command: interface vlan <vlan-id>
no interface vlan <vlan-id>
Function: Create a VLAN interface (a Layer 3 interface); the 'no interface vlan
<vlan-id>' command deletes the Layer 3 interface specified.
Parameters: <vlan-id> is the VLAN ID of the established VLAN.
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 interface mode.
Example: Create a VLAN interface (layer 3 interface).
Switch (Config)#interface vlan 1
25.1.2.2.2 ip route
Command: ip route 0.0.0.0 0.0.0.0 <gateway>
no ip route 0.0.0.0 0.0.0.0 <gateway>
Function: To configure the default route for the switch. If no is put in front of the command,
If no is put in front of the command, the default route will be removed.
Parameters: <gateway> is the gateway for the default route, which is presented in dotted
decimal.
Command mode: Global Mode
Default: Default route is not configured by default.
Usage Guide: For Layer 3 interfaces, the gateway for the default route must be in the
same subnet with the Layer 3 interface of the switch. For Layer 2 interfaces, only the
gateway for 0/0 can be configured.
Example: For a Layer 3 interface with 2.2.2.2 as its IP address, and 255.255.255.0 as its
net mask, to configure the 2.2.2.1 as the gateway's IP address for the default route.
Switch(Config)#ip route 0.0.0.0 0.0.0.0 2.2.2.1
25.1.2.3 Layer 3 Interface debugging Command list
DCS-3950 series Ethernet switch manual
delete the default gateway address.
378

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents