天天看點

實驗7:VTP實驗

實驗要求:配置SW1為VTP Server

配置SW0為VTP Transparent

配置SW2為VTP Client

實驗7:VTP實驗
  1. 配置SW1
    Switch> en     
    Switch# configure terminal
    Switch(config)# vtp mode server   //把交換機配置為VTP服務端,該配置可以建立vlan,使在其同一個vtp下的用戶端共享這個vlan
    Switch(config)# domain cisco     //給這個vtp起名字
    Switch(config)# vtp password 123456   //給這個vtp設定密碼
               
  2. 配置SW0
    Switch> en     
    Switch# configure terminal
    Switch(config)# vtp mode transparent   //把交換機配置為VTP傳遞端,該配置可以建立vlan,但不參與到vtp中,可以轉發vtp封包
    Switch(config)# domain cisco     //給這個vtp起名字
    Switch(config)# vtp password 123456   //給這個vtp設定密碼
               
  3. 配置SW1
    Switch> en     
    Switch# configure terminal
    Switch(config)# vtp mode client   //把交換機配置為VTP用戶端,該配置不可以建立vlan,但可以接收來自VTP服務端的封包,共享vtp服務端建立的vlan
    Switch(config)# domain cisco     //給這個vtp起名字
    Switch(config)# vtp password 123456   //給這個vtp設定密碼
               
  4. 實驗驗證

    在三個交換機上分别建立vlan、show vlan

繼續閱讀