Chinaunix首页 | 论坛 | 博客
  • 博客访问: 428632
  • 博文数量: 132
  • 博客积分: 2511
  • 博客等级: 大尉
  • 技术积分: 1385
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-11 15:10
文章分类

全部博文(132)

文章存档

2012年(18)

2011年(35)

2010年(60)

2009年(19)

分类: 系统运维

2011-05-03 17:32:30

下午在配置一个接口为trunk时,发现cisco 6509不能使用switchport trunk encapsulation dot1q命令,如下:
Cisco6509(config-if)#switchport trunk ?
  allowed  Set allowed VLAN characteristics when interface is in trunking mode
  native   Set trunking native characteristics when interface is in trunking mode
  pruning  Set pruning VLAN characteristics when interface is in trunking mode
 
 这个以前也碰到过,忘了怎么解决的了,查了一下,找到下面的帖子:
 
 
 大致意思是6509的接口配置为trunk后,默认就是进行dot1q封装的,也可能跟ios版本有关。
 那默认如果是进行dot1q封装,如果想不封装,只能用native了?

 
 所以下面的配置就达到我的目的了:
 Cisco6509#show run int g4/24
Building configuration...

Current configuration : 107 bytes
!
interface GigabitEthernet4/24
 switchport
 switchport trunk allowed vlan 3,6
 switchport mode trunk
end

记一下吧,免得下次又不知道咋办了。
阅读(8666) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~