|
今天在NOC群里面看到有老师问关于比威交换机配置的问题,突然想到自己学校也发送来了2台比威交换机,一直没有用,通过以前发的2台交换机就发现比威的东西真怪,自己的东西还没有一个通用的配置界面标准,估计O别人的东西,没有太彻底,所以配置方式总是和原来的产品类似。
找到那台万兆上联,全千兆的交换机后,发现型号是Bitstream6832T,把机器扔到一台服务器后边,接上通用Console线,打开mincom,居然乱码,来回折腾了几次都这样,简直见鬼了,最后只好找到Bitway自己带的Console线,结果好使了,看来线序还是不太一样的。
比威发东西也真是的,就发一个交换机、Console线、电源线、交换机的耳朵,其他东西都没有了,连电子版本的配置手册都没有。
这个交换机的配置还真是怪异,以前从来没有这么费劲的配置一台交换机,以下是经过N次试验总结出来的一点点经验,希望对大家有用:)
1、为什么用Console连接不上? 用比威自带的Console线试试,或许就OK了,串口配置使用默认的就OK了,9600 8N1。
2、交换机的默认用户是什么? 在没有任何配置前,系统默认用户是admin,密码也是admin。
3、为什么我配置用户密码,系统提示错误呢? Console(config)#user test password 0 1234567 Console(config)#user test password 0 12345678 Console(config)#user test password 0 1234567890 ^ % Invalid input detected at '^' marker.
其实,大家应该看出来了,问题就是密码不能太长,不能超过8位
4、如何配置和删除vlan? 先进入配置模式,然后进入vlan配置,然后配置vlan。 Console#configure Console(config)#vlan database Console(config-vlan)#vlan 2 name Testvlan media ethernet state active Console(config-vlan)#no vlan 2 Console(config-vlan)#exit Console(config)#exit
5、如何修改access端口的vlan ID? 拿ethernet 1/2来说明吧 ! interface ethernet 1/2 switchport allowed vlan add 1 untagged switchport native vlan 1 ! 默认是vlan 1的端口,改成vlan 11。
Console#configure Console(config)#interface ethernet 1/2 Console(config-if)#switchport native vlan 11 Failed to set PVID on ethernet 1/2 Console(config-if)#switchport allowed vlan add 11 untagged Console(config-if)#switchport native vlan 11 Console(config-if)# Console#sh running-config ! interface ethernet 1/2 switchport allowed vlan add 1,11 untagged switchport native vlan 11 ! Console#configure Console(config)#interface ethernet 1/2 Console(config-if)#switchport allowed vlan remove 1 Console(config-if)#
麻烦吧,注意:一定要先让这个端口允许某个vlan ID untagged,然后才能把native vlan改成这个vlan ID,否则提示很不人性化,就说失败了。当然了,最后把不必要的vlan 去掉。
6、如何配置trunk? ! interface ethernet 1/3 switchport allowed vlan add 1 untagged switchport native vlan 1 ! Console#configure Console(config)#interface ethernet 1/3 Console(config-if)#switchport mode trunk Console(config-if)#switchport allowed vlan add 11? <1-4093> The list of the value, by using hyphen and comma Console(config-if)#switchport allowed vlan add 11 tagged Console(config-if)#switchport allowed vlan add 17 tagged Console(config-if)# ! interface ethernet 1/3 switchport allowed vlan add 1 untagged switchport native vlan 1 switchport mode trunk switchport allowed vlan add 1,11,17 tagged !
7、如何修改trunk口的PVID? Console#configure Console(config)#interface ethernet 1/2 Console(config-if)#switchport native vlan 11 Console(config-if)# 哈哈,没这么简单,如果这就搞定了,那就不是比威了,呵呵,虽然没有任何错误提示,但是结果还是不对的。 sh run看看 ! interface ethernet 1/3 switchport allowed vlan add 1 untagged switchport native vlan 1 switchport mode trunk switchport allowed vlan add 1,11,17 tagged ! 结果还是一样的。 真正的修改方法: Console#configure Console(config)#interface ethernet 1/3 Console(config-if)#switchport allowed vlan add 11 untagged Failed to join untaged list on ethernet 1/3 Console(config-if)#no switchport mode tr ^ % Invalid input detected at '^' marker. Console(config-if)#no switchport mode Console(config-if)#switchport allowed vlan add 11 untagged Console(config-if)#switchport native vlan 11 Console(config-if)#switchport allowed vlan remove 1 Console(config-if)#switchport mode trunk Console(config-if)# 哈哈,搞定了 ! interface ethernet 1/3 switchport allowed vlan add 11 untagged switchport native vlan 11 switchport allowed vlan remove 1 switchport mode trunk switchport allowed vlan add 11,17 tagged !
呵呵,目前就用了这些功能,基本算搞定了,经过测试,trunk和access这么配置都没有问题。
配置有感: 以后建议学校多买比威的设备,要求厂商不要提供说明书和培训,这样可以锻炼全能的网管,对网管的脑力、智力、智商、情商、体力、耐力等全方位发展都有积极的促进作用,感谢比威、感谢CCTV、感谢Channel[V]...
|