天天看點

配置cisco switch vtp

配置cisco switch vtp

拓撲圖

使用的是Boson 6模拟器

需要破解版的朋友可以聯系我

具體配置:

sw1

Switch>en

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#host sw1

sw1(config)#int f0/12

sw1(config-if)#switchport mode trunk

sw1(config-if)#switchport trunk encapsulation dot1q

sw1(config-if)#end

sw1#vlan data

sw1(vlan)#vlan 2 name vlan2

VLAN 2 added:

    Name:vlan2

sw1(vlan)#vlan 3 name vlan3

VLAN 3 added:

    Name:vlan3

sw1(vlan)#vtp server

sw1(vlan)#vtp domain cisco

VTP domain cisco modified

sw1(vlan)#vtp password cisco

sw1(vlan)#end

sw1#sh vlan

VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4

                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8

                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12

                                                Fa0/13, Fa0/14

2    vlan2                            active   

3    vlan3                            active   

1002 fddi-default                     active

1003 token-ring-default               active

1004 fddinet-default                  active

1005 trnet-default                    active

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1    enet  100001     1500  -      -      -        -    -        0      0

2    enet  100002     1500  -      -      -        -    -        0      0

3    enet  100003     1500  -      -      -        -    -        0      0

1002 fddi  101002     1500  -      -      -        -    -        0      0

1003 tr    101003     1500  -      -      -        -    -        0      0

1004 fdnet 101004     1500  -      -      -        ieee -        0      0

sw1#

sw1#show vtp status

VTP Version                     : 2

Configuration Revision          : 2

Maximum VLANs supported locally : 64

Number of existing VLANs        : 7

VTP Operating Mode              : Server

VTP Domain Name                 : cisco

VTP Pruning Mode                : Disabled

VTP V2 Mode                     : Disabled

VTP Traps Generation            : Disabled

MD5 digest                      : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF

Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57

Local updater ID is 0.0.0.0 (no valid interface found)

sw2

Switch(config)#host sw2

sw2(config)#int f0/12

sw2(config-if)#switchport mode trunk

sw2(config-if)#switchport trunk encapsulation dot1q

sw2(config-if)#end

sw2#vlan data

sw2(vlan)#vtp client

sw2(vlan)#vtp domain cisco

sw2(vlan)#vtp password cisco

sw2(vlan)#end

sw2#sh vlan

1005 trnet 101005     1500  -      -      -        ibm  -        0      0

sw2#sh vtp status

VTP Operating Mode              : Client

至此,配置已經完成也比較順利,下面将SW1的F0/1端口劃到VLAN2中

sw1#conf t

sw1(config)#int f0/1

sw1(config-if)#switchport access vlan 2

1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5

                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9

                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13

                                                Fa0/14

2    vlan2                            active    Fa0/1    fa0/1已經加入到vlan2中

下面在看SW2,問題就出來了:

sw2#show vlan

2    vlan2                            active    Fa0/1   sw1的F0/1也被加入到vlan2中了

被這個問題捆繞了一整天,反複做了幾次實驗,都是這個結果,最後在一個視訊教程中聽到一句話:boson在做VTP實驗時,會将端口資訊一起學習過去的.原來是模拟器本身的問題,不是我配置的有問題.

看來不能過分相信這些模拟軟體!

繼續閱讀