在TRUNK上Native VLAN的數(shù)據(jù)是無標(biāo)記的(Untagged),所以即使沒有在TRUNKING,Native Vlan上仍能正常通訊。show cdp nei detail可以檢查Native VLAN不匹配的情況。沒有特別的需要,Native VLAN最好使用默認(rèn)的VLAN 1。3500交換機上如果更改了TRUNK的Native VLAN,管理端口也要相應(yīng)地更改,如VLAN2: interface VLAN 2 , ip address ... , management。
在外接路由器如2620做router-on-a-stick的時候,也有一點小竅門:首先要有FastEthernet端口; 其次標(biāo)準(zhǔn)的IP軟件不支持TRUNK,只有IP Plus以上的才支持。最后如果您使用的IOS不支持encapsulation dot1q 1 native這個“native”關(guān)鍵字的話,將Native Vlan的網(wǎng)關(guān)地址配置在主端口上,形式如:
interface fastethernet 0/0
ip address 10.1.1.254 255.255.255.0
speed auto
duplex auto
!
interface fastethernet 0/0.2
encapsulation dot1q 2
ip address 10.1.2.254 255.255.255.0
如果支持“native”關(guān)鍵字,則是:
interface fastethernet 0/0
no ip address
speed auto
duplex auto
!
interface fastethernet 0/0.1
encapsulation dot1q 1 native
ip address 10.1.1.254 255.255.255.0
!
interface fastethernet 0/0.2
encapsulation dot1q 2
ip address 10.1.2.254 255.255.255.0
最近在7609路由器上觀察到一個奇怪的問題。7609由6509交換機改進而成,絕大多數(shù)硬件都跟6509一樣,包括引擎,軟件(CatOS+IOS),我想這個問題6500上也會有。現(xiàn)象是這樣的,這臺機器配了兩個引擎,如果MSFC15配置如下:
interface vlan 1
ip address 10.1.1.254 255.255.255.0
!
interface vlan 2
ip address 10.1.2.254 255.255.255.0
而MSFC16只配置了VLAN2及默認(rèn)路由:
interface vlan 2
ip address 10.1.2.253 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 10.1.2.254
則在VLAN 1內(nèi)如地址為10.1.1.1的主機 ping不通 10.1.2.253,但能ping 通10.1.1.254及10.1.2.254。例外的是7609交換引擎在VLAN1內(nèi)的管理地址,它能ping 通上述所有的地址。我想這個問題可能跟多層交換/CEF有關(guān),哪位高手已經(jīng)解決了這個問題?