交换机基础设置之vtp管理vlan设置
拓撲圖如下
?
? ? ? ?我們要將,將switch0設置為server,將switch1設置為transparent,將switch2和switch3設置為client
交換機0做設置
? ? ? ?enable 進入特權模式
? ? ? ?configure terminal 進入全局配置模式
? ? ? ?vtp domain ruan ? ? ? ? ?(自行設置的vtp域的名稱)
? ? ? ?vtp mode server ? ? ?設置成server模式
? ? ? ?vlan 10 創建vlan10
? ? ? ?vlan 20 ? ? ??創建vlan20
? ? ? ?vlan 30 ? ? ? 創建vlan30
? ? ? ?interface f0/1 進入f0/1接口
? ? ? ?switchport mode trunk 配置trunk接口
交換機1做配置
? ? ?enable 進入特權模式
? ? ?configure terminal 進入全局配置模式
? ? ?vtp domain abc 加入到abc域中
? ? ?vtp mode transparent 設置為透明模式
? ? ?interface f0/2
? ? ?switchport mode trunk 配置trunk接口
交換機2做配置
? ? ? enable
? ? ? onfigure terminal
? ? ? vtp domain abc 加入abc域
? ? ? vtp mode client 設置為client模式
? ? ? interface f0/3
? ? ? switchport mode trunk 配置trunk接口
交換機3做配置
? ? ? enable
? ? ? configure terminal
? ? ? vtp domain abc
? ? ? vtp mode client
配置完成
轉載于:https://www.cnblogs.com/ruanjie/p/9197268.html
總結
以上是生活随笔為你收集整理的交换机基础设置之vtp管理vlan设置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在Golang开发中使用Redis
- 下一篇: SpringBoot 中常用注解@Pat