VLAN涓嶵runk閾捐矾

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VLAN涓嶵runk閾捐矾相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/VLAN%e4%b8%8eTrunk%e9%93%be%e8%b7%af' title='VLAN涓嶵runk閾捐矾'>VLAN涓嶵runk閾捐矾

VLAN鍒涘缓姝ラ
1锛夊垱寤篤LAN

-

Switch(config)# vlan vlan-id
2锛夊姞绔彛锛屽皢鎸囧畾绔彛鍔犳寚瀹歏LAN

-
Switch(config)# int range fx/x - x //杩炵画杩涘叆澶氫釜绔彛
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan vlan-id
3锛夐獙璇?/p>

-
Switch# show vlan b //鏌ョ湅VLAN閰嶇疆
娉細涓€鑸竴涓儴闂ㄤ竴涓綉娈点€佷竴涓猇LAN
Trunk
1銆乀runk浣滅敤 锛氫笉鍚屼氦鎹㈡満鍚屼竴涓猇LAN閫氫俊
2銆乀runk鏍囪
1锛塈SL锛圕isco绉佹湁鏍囪锛夛紝涔嬪彧鑳界敤浜庢€濈璁惧锛屾€诲叡鍗犳湁涓夊崄瀛楄妭
2锛塈EEE 802.1q锛堝叕鏈夋爣璁帮級锛屼娇鐢ㄤ簬鎵€鏈夎澶囷紝鎬诲叡鍗犳湁4瀛楄妭

trunk锛氫腑缁ч摼璺紝鐢ㄤ簬鎵胯浇澶氫釜VLAN锛岀敤浜庝氦鎹㈡満涓庝氦鎹㈡満涔嬮棿
access锛氭帴鍏ラ摼璺紝鐢ㄤ簬鎵胯浇涓€涓猇LAN锛岀敤浜庝氦鎹㈡満鍜岀數鑴戜箣闂?
3.Trunk閰嶇疆

-
Switch(config-if)# switchport trunk encapsulation dot1q //妯℃嫙鍣ㄤ笉闇€杈撳叆

-

Switch(config-if)# switchport mode trunk

-

鏁呴殰瑙e喅锛?/p>

-
Switch>conf
Translating "conf"...domain server (255.255.255.255) % Name lookup aborted

-
1)Ctrl+Shift+6

-
2)Route# sh ip int b //鏌ョ湅璺敱鍣↖P閰嶇疆

-
3)Switch# w //淇濆瓨褰撳墠浜ゆ崲鏈洪厤缃?/p>

以上是关于VLAN涓嶵runk閾捐矾的主要内容,如果未能解决你的问题,请参考以下文章

鍏充簬姊害鐨勪竴浜涚煡璇嗙偣

鍏充簬javascript涓殑dataset

HTTP涓嶵CP鐨勫尯鍒拰鑱旂郴

閾捐〃--鍒嗛殧閾捐〃锛坙eetcode86

閾捐〃鐨勯€嗙疆

java LinkedList(閾捐〃)