10G Core Routing Switch User Manual
陈泽科技有限公司
- - 25 - -
www.stephen-tele.com
Step 3
switchport mode trunk
Configure the interface as a Layer 2 trunk (required
only if the interface
is a Layer 2 access port to specify the trunking mode).
Step 4
switchport trunk vlan
vlan_id
Specify the VLAN for 802.1Q trunks.
Valid VLAN IDs are 1 to 4094.
Step 5
end
Return to privileged EXEC mode.
Step 6
show Interface vlan
vlan_id
Verify your entries.
Step 7
Copy
running-config
startup-config
(Optional) Save your entries in the configuration file.
To reset all trunking characteristics of a trunking interface to the defaults, use the
no switchport trunk
interface
configuration command. To disable trunking, use the
switchport
mode access
interface configuration command to configure the port as a static-access port.
This example shows how to configure a port as an 802.1Q trunk. The example assumes that the neighbor interface is
configured to support 802.1Q trunking.
Switch#
configure terminal
Switch(config)#
interface gigabitethernet 1/2
Switch(config-if)#
switchport mode trunk
Switch(config-if)#
switchport trunk vlan 2
6.3.
Assigning IP Address for a VLAN
6.3.1.
IP Address Overview
IP Address Classification and Indications
IP address is a 32-bit address allocated to the devices which access into the Internet. It consists of two fields: net-id
field and host-id field. There are five types of IP address. See the following figure.
Figure
Five classes of IP address