- 论坛徽章:
- 0
|
以前没接触过cisco,都是作别的厂商。现在改作cisco了,以前做的其他厂商,都是untag/tag来配vlan.\r\n做了个针对native vlan的实验.\r\nshare一下\r\nS1-port24-------------------port24-S2\r\n\r\nS1#sho running-config \r\n!\r\nhostname S1\r\nvtp mode transparent\r\nip routing\r\n\r\n!\r\nvlan 100,200-201 \r\ninterface FastEthernet1/0/24\r\n switchport trunk encapsulation dot1q\r\n switchport trunk native vlan 100\r\n switchport mode trunk\r\n!\r\ninterface Vlan1\r\n ip address 1.1.1.1 255.255.255.0\r\ninterface Vlan100\r\n ip address 100.1.1.1 255.255.255.0\r\ninterface Vlan200\r\n ip address 200.1.1.1 255.255.255.0\r\ninterface Vlan201\r\n ip address 201.1.1.1 255.255.255.0\r\nS1#\r\n\r\nS2#sho running-config \r\n!\r\nhostname S2\r\nvtp mode transparent\r\nip routing\r\n!\r\n!\r\nvlan 100,200-201 \r\n\r\ninterface GigabitEthernet1/0/24\r\n switchport trunk encapsulation dot1q\r\n switchport trunk native vlan 100\r\n switchport mode trunk\r\n!\r\ninterface Vlan1\r\n ip address 1.1.1.2 255.255.255.0\r\n!\r\ninterface Vlan100\r\n ip address 100.1.1.2 255.255.255.0\r\n!\r\ninterface Vlan200\r\n ip address 200.1.1.2 255.255.255.0\r\n!\r\ninterface Vlan201\r\n ip address 201.1.1.2 255.255.255.0\r\n\r\nS2#\r\n此时:\r\n分别PING对端vlan互连地址,都能通.\r\n\r\n\r\n我的理解:\r\nnative vlan其实就是untag端口\r\nvlan 1也可以打标签通过trunk端口(好像使用untag/tag命令行的厂商,做不到这点)\r\nswitchport trunk native vlan ?\r\n <1-4094> VLAN ID of the native VLAN when this port is in trunking mode\r\n呵呵,命令的解释说明native vlan只存在于trunk(untag时换名字了叫access 端口)\r\n\r\n大家平常用native vlan吗?我觉得还是有用处的,比如你要骨干(用三层)是环的话,骨干之间要用trunk.这样vlan 1就存在环了,必须起stp. 而修改native vlan,就不存在环路,这样就可以不用stp.\r\n当然你不在乎stp的收敛时间也无所谓.\r\n另,大家平常用vtp吗?我觉得用处不大,无非就是让你在其他交换机上少配给个vlan xxx.而且这样还限制了vlan id只能在1-1000,但这样就把客户引导到cisco上来了,改用其它厂商的,客户可能就觉得不方便.\r\n\r\n另,大家平常用pvst吗?我觉得简直就是个垃圾,相当于把用户绑架到cisco,别的厂商没法跟他互通(能的话,这个厂商当心知识产权).\r\n我觉得如果cisco用stp,还是用mstp吧,你觉得呢\r\n\r\n随便说说,刚开始做cisco |
|