87
Switch(config)# vlan port-based MKT_Office
Create a port-based VLAN
“MKT_Office”.
Switch(config)# vlan management-vlan 1
management-port 1-3 mode access
Set VLAN 1 to management VLAN
(untagged) and port 1~3 to
management ports.
2. Use
“Interface” command to configure a group of ports’ VLAN settings.
VLAN & Interface command
Parameter Description
Switch(config)# interface [port_list] [port_list]
Enter several discontinuous port
numbers separated by commas or a
range of ports with a hyphen. For
example:1,3 or 2-4
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan access-vlan [1-
4094]
[1-4094]
Specify the selected port
s‟ VLAN ID
(PVID).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode access
Set the selected ports that belong to
the specified VLAN to access mode
(untagged).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode dot1q-tunnel
Enable Q-in-Q function in the selected
interfaces.
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode trunk
Set the selected ports to trunk mode
(tagged).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode trunk native
Enable native VLAN for untagged
traffic.
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan trunk-vlan [1-4094]
[1-4094]
Specify a VID to trunk VLAN.
Switch(config-if-PORT-PORT)#
vlan port-based [name]
[name]
Set the selected ports to a specified
port-based VLAN.
No command
Switch(config-if-PORT-PORT)# no
vlan dot1q-vlan access-vlan
Set the selected ports
‟ PVID to the
default setting.
Switch(config-if-PORT-PORT)# no
vlan dot1q-vlan mode
Remove VLAN dot1q mode.
Switch(config-if-PORT-PORT)# no
vlan dot1q-vlan mode trunk native
Disable native VLAN for untagged
traffic.
Switch(config-if-PORT-PORT)# no
vlan dot1q-vlan trunk-vlan [1-4094]
[1-4094]
Remove the selected ports
‟ from the
specified trunk VLAN.
Switch(config-if-PORT-PORT)# no
vlan port-based [name]
[name]
Delete the selected ports from the
specified port-based VLAN.
VLAN & interface command example
Switch(config)# interface 1-3
Enter port 1 to port
3‟s interface mode.
Switch(config-if-1-3)# vlan dot1q-vlan access-
vlan 10
Set port 1 to port 3
‟s VLAN ID (PVID)
to 10.
Switch(config-if-1-3)# vlan dot1q-vlan mode
access
Set the selected ports to access mode
(untagged).
Switch(config-if-1-3)# vlan dot1q-vlan mode
dot1q-tunnel
Enable Q-in-Q function in the selected
interfaces.
Содержание FOS-3124 SERIES
Страница 202: ...202 Restart DHCP service ...