VLAN配置命令列表
生活随笔
收集整理的這篇文章主要介紹了
VLAN配置命令列表
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
| 命令<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> | 命令功能 |
| configure terminal | 進入全局配置模式 |
| vlan vlan-id | 創建VLAN命令 |
| name vlan-name | 給創建的VLAN添加名稱 |
| end | 結束配置,退回特權模式 |
| show vlan {name vlan-name | id vlan-id} | 查看配置完成的結果 |
| copy running-config startup config | 將配置信息保存 |
| no vlan vlan-id | 刪除已存在的VLAN |
| interface interface-id | 進入指定接口 |
| shutdown | 關閉指定接口 |
| no shutdown | 開啟指定接口 |
| switchport mode access | 將接口的模式設為訪問模式 |
| switchport access vlan vlan-id | 將接口加入指定的VLAN中 |
| switchport mode dynamic desirable | 將接口設置為動態主動自適應模式 |
| switchport mode dynamic auto | 將接口設置為動態被動自適應模式 |
| switchport mode trunk | 將接口設置為干道模式 |
| switchport nonegotiate | 將接口設置為不協商模式,關閉DTP協議 |
| switchport trunk encapsulation dot1q | 設置接口的干道協議 |
| switchport trunk encapsulation isl | 設置接口的干道協議 |
| switchport trunk native vlan vlan-id | 設置本征VLAN |
| vtp mode mode | 設置VTP的工作模式 |
| vtp domain domain-name | 設置VTP工作的域名 |
| vtp password password | 設置VTP的密碼 |
| vtp version version-number | 設置VTP工作版本,有1和2兩個版本 |
| vtp pruning | 配置VTP裁剪功能 |
| show vtp status | 查看VTP信息 |
| private-vlan primary | 設置PVLAN為主VLAN |
| private-vlan isolated | 設置PVLAN為隔離VLAN |
| private-vlan community | 設置PVLAN為共同體VLAN |
| private-vlan association vlan-id | 設置和主VLAN關聯的次VLAN信息 |
| switchport private-vlan host-association vlan-id | 設置接口和主VLAN和次VLAN的關聯 |
| private-vlan mapping vlan-id vlan-id vlan-id… | 設置接口和VLAN的映射關聯 |
轉載于:https://blog.51cto.com/chennan/68051
總結
以上是生活随笔為你收集整理的VLAN配置命令列表的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: BBS的无敌杀手
- 下一篇: 开启Linux下Telnet服务