神州数码DCRS-5960_VLAN和MAC地址操作.word - 百度文库 ر

VLANMACַ 1 VLAN no name

3.ΪVLAN佻˿ VLANģʽ switchport interface no switchport interface

4.ý˿ ˿ģʽ switchport mode {trunk | access | hybrid}

5.Trunk˿ ˿ģʽ switchport trunk allowed vlan {WORD | all | add WORD | except WORD | remove WORD} no switchport trunk allowed vlan switchport trunk native vlan no switchport trunk native vlan

6.Access˿ ˿ģʽ switchport access vlan no switchport access vlan

7. Hybrid˿ ˿ģʽ ǰ˿ڼ/˳ָVLAN /ɾTrunk˿ͨVLAN /ɾTrunk˿ڵPVID õǰ˿ΪTrunkAccess˿ڻHybrid˿ڡ ΪVLAN佻˿ڡ

1-3

VLANMACַ 1 VLAN switchport hybrid allowed vlan {WORD | all | add WORD | except WORD | remove WORD} /ɾHybrid˿{tag | untag} no switchport hybrid allowed vlan switchport hybrid native vlan no switchport hybrid native vlan

8. 򿪻رVLANڹ ˿ģʽ vlan ingress enable no vlan ingress enable

9. Private VLAN VLANģʽ private-vlan {primary | isolated | community} no private-vlan

10. Private VLANİ󶨲 VLANģʽ private-vlan association no private-vlan association

11. ָڲVLAN ID ȫģʽ vlan <2-4094> internal

ָڲVLANIDš /ɾPrivate VLANİ󶨹ϵ ǰVLANΪPrivate VLAN 򿪼رVLANڹ /ɾ˿ڵPVID taguntagʽͨVLAN 1.1.3 VLANӦ

1-4

VLANMACַ 1 VLAN

VLAN100 VLAN2 PC PC Switch A Trunk Link

Switch B

Workstation Workstation PC VLAN200 PC PC VLAN2 PC Workstation VLAN100 Workstation

ͼ 1-2 VLANӦͼ

PC PC VLAN200

ھȫӦõҪҪеΪ3VLANVLAN2VLAN100VLAN200ҪVLANԽABֱһ̨VLANֻҪڽ䴫䣬ͿҪ Ŀ VLAN2 VLAN100 VLAN200 Trunk port

̨Trunk portΪTrunk linkڳؿ罻vlan豸ӵĸVLANĶ˿ϣ͹ӦVLAN֮С

ڱУ1ź12Ŷ˿ڿУΪ˿ڻ;

ò£ A:

Switch (config)#vlan 2

Switch (Config-Vlan2)#switchport interface ethernet 1/0/2-4 Switch (Config-Vlan2)#exit

˵ AءBؽ24˿ AءBؽ57˿ AءBؽ810˿ AءBؽ11˿ 1-5

VLANMACַ 1 VLAN Switch (config)#vlan 100

Switch (Config-Vlan100)#switchport interface ethernet 1/0/5-7 Switch (Config-Vlan100)#exit Switch (config)#vlan 200

Switch (Config-Vlan200)#switchport interface ethernet 1/0/8-10 Switch (Config-Vlan200)#exit

Switch (config)#interface ethernet 1/0/11

Switch (Config-If-Ethernet1/0/11)#switchport mode trunk Switch (Config-If-Ethernet1/0/11)#exit Switch (config)# B:

Switch (config)#vlan 2

Switch (Config-Vlan2)#switchport interface ethernet 1/0/2-4 Switch (Config-Vlan2)#exit Switch (config)#vlan 100

Switch (Config-Vlan100)#switchport interface ethernet 1/0/5-7 Switch (Config-Vlan100)#exit Switch (config)#vlan 200

Switch (Config-Vlan200)#switchport interface ethernet 1/0/8-10 Switch (Config-Vlan200)#exit

Switch (config)#interface ethernet 1/0/11

Switch (Config-If-Ethernet1/0/11)#switchport mode trunk Switch (Config-If-Ethernet1/0/11)#exit

1.1.4 Hybrid˿ڵĵӦ

1-6