Command
Function
Switch(config)#
no vlan
vlan-id
Input a
VLAN ID and delete it
。
Command
Function
Switch(config-if-GigabitEthernet-0/1)#
switch
mode access
Identiy the member type of the VLAN 2
layers ACCESs
)
Switch(config-if-GigabitEthernet-0/1)#
switch
access vlan
vlan-id
Assign this port to a VLAN.
6.2.4.
Remove a VLAN
Default VLAN
(
VLAN 1
)
is not allowed to delete
。
Delete an existed VLAN in the global
configuration mode
:
6.2.5.
Assign access port to VLAN
Assign a port to a VLAN in the interface configuration mode.
:
Below is the example to take GigabitEthernet 0/1 as Access port to join VLAN20
:
Switch# configure terminal
Switch(config)# interface gigabitEthernet 0/1
Switch(config-if-GigabitEthernet-0/1)#
switch mode access
Switch(config-if-GigabitEthernet-0/1)#
switch access vlan
20
Switch(config-if-GigabitEthernet-0/1)#
end
Below is the example to show how to check if the configuration information is right or not .
:
Switch#show vlan 20
1 20 VLAN0020
----[Untag Port]----
Gi 0/1
----[Tag Port]----
6.3. Configure Trunk VlAN
6.3.1.
Trunking Summarize.
A Trunk is a point-to-point link which connect one or more ethernet exchange port with other network
equipment (Router or Switch)
,
A Trunk link can transmit more than one VLAN flow.
Ruijie’s Trunk take 802.1Q standard to seal
。
Below picture shows a network uses Trunk
connection
。