Configuration Guide
184
Configuring 802.1Q VLAN
802.1Q VLAN Configuration
Vlan Name Egress-rule
---- ----------- ---------------
1 System-VLAN Tagged
Switch(config-if)#end
Switch#copy running-config startup-config
2.2.3 Adding the Port to the Specified VLAN
Follow these steps to add the port to the specified VLAN:
Step 1
configure
Enter global configuration mode.
Step 2
interface {
fastEthernet
port
| range fastEthernet
port-list
| gigabitEthernet
port
| range
gigabitEthernet
port-list
}
Enter interface configuration mode.
port| port-list
: The number or the list of the Ethernet port that you want to configure.
Step 3
switchport access vlan
vlan-id
switchport trunk allowed vlan
vlan-list
switchport general allowed vlan
vlan-list
{
tagged
|
untagged
}
Add Access/Trunk/General port to the specified VLAN.
vlan-id | vlan-list:
Specify the ID or ID list of the VLAN(s) that the port will be added to. The ID
ranges from 1 to 4094.
tagged
|
untagged
: Egress rule for the port.
Step 4
show interface switchport
[gigabitEthernet
port
]
Verify the information of the port.
port
: Specify the ID of the port to show information.
Step 5
end
Return to privileged EXEC mode.
Step 6
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to add the General port 1/0/5 to VLAN 2, and specify its
egress rule as tagged:
Switch#configure
Switch(config)#interface gigabitEthernet
1/0/5
Switch(config-if)#switchport general allowed vlan
2 tagged
Switch(config-if)#show interface switchport gigabitEthernet
1/0/5
Port Gi1/0/5:
Содержание T2500G-10MPS
Страница 1: ...User Guide T2500G 10MPS 1910012405 REV1 0 1 April 2018...
Страница 24: ...Using the CLI 767 Appendix Default Parameters 773...
Страница 27: ...Part 1 Accessing the Switch CHAPTERS 1 Overview 2 Web Interface Access 3 Command Line Interface Access...
Страница 129: ...Part 4 Configuring LAG CHAPTERS 1 LAG 2 LAG Configuration 3 Configuration Example 4 Appendix Default Parameters...
Страница 145: ...Part 5 Monitoring Traffic CHAPTERS 1 Traffic Monitor 2 Appendix Default Parameters...
Страница 172: ...Part 7 Configuring DDM CHAPTERS 1 Overview 2 DDM Configuration 3 Appendix Default Parameters...
Страница 190: ...Part 8 Configuring L2PT CHAPTERS 1 Overview 2 L2PT Configuration 3 Configuration Example 4 Appendix Default Parameters...
Страница 274: ...Part 13 Configuring GVRP CHAPTERS 1 Overview 2 GVRP Configuration 3 Configuration Example 4 Appendix Default Parameters...
Страница 800: ...Configuration Guide 776 Configuring SNMP RMON Appendix Default Parameters Parameter Default Setting Status Disable...
Страница 803: ...BSMI Notice Pb Cd Hg CrVI PBB PBDE PCB 1 2...