admin 发表于 2015-12-8 14:01; Q% h [0 U P, t, ^9 ]
有个小问题 那如果两边native vlan不一致报的那个错 就没啥意义了? 只是提示 但是实际还是都能正常工作?* ?: T# _5 y9 n+ p
...
$ x- T8 K6 ]2 F. X& `& b这是思科官网文档 , 我觉得主要看真实应用环境吧。* z% w- g8 E4 [4 |: t. B
Understanding the Native VLAN ID for Trunk Ports3 q! ~& }* L3 l4 y
# ]; I& s8 P* ~% y! c+ K6 T) }$ z2 ~
Note Native VLAN ID numbers must match on both ends of the trunk.7 Q5 t2 @5 B% ~
A trunk port can carry untagged packets simultaneously with the 802.1Q tagged packets. 1 w! f& n W1 ]
When you assign a default port VLAN ID to the trunk port, all untagged traffic travels on the default port VLAN ID for the trunk port, and all untagged traffic is assumed to belong to this VLAN. This VLAN is referred to as the native VLAN ID for a trunk port./ N7 W& z7 F1 L! g$ V
The native VLAN ID is the VLAN that carries untagged traffic on trunk ports.6 a" e! y# \. j& u' x( a+ n8 P9 O
/ b+ h& ~6 S) U, R# B
The trunk port sends an egressing packet with a VLAN that is equal to the default port VLAN ID as untagged; all the other egressing packets are tagged by the trunk port. If you do not configure a native VLAN ID, the trunk port uses the default VLAN.
这个在对对vlan的理解。vlan是用来隔离广播包的,只有发送给trunk口的时候需要打标签,发到access口要祛除标签。% M/ O( [+ o3 V4 k' Y
所以关键点在于: + R3 p9 e n' r' ~& f1.两台机器所属接口为access口6 F5 T0 Y, V; _( M5 b C
2.两台机器IP在同一个地址段里 & x& J- o. i m" @. K/ U |; J0 d0 n2 g
这个和是否是native vlan或者vlan id是否一样都没有关系,因为最后会除掉标签。 5 O7 B3 T$ A0 ]/ E! O; |: y所以是可以通信的。 * i; F7 Q) V+ I. I