烽火交换机配置命令集
中兴,华为,烽火交换机常用配置命令教程

中兴,华为,烽火交换机常用配置命令教程交换机工作于OSI参考模型的第二层,即数据链路层。
交换机内部的CPU会在每个端口成功连接时,通过将MAC地址和端口对应,形成一张MAC表,不同品牌交换机配置可能有所不同,本文将详细介绍中兴,华为,烽火交换机常用配置参数,需要的朋友可以参考下ZXDSL8210常用命令查看板卡类型和软硬件版本号 showcard进入DSL模式 dsl查看端口状态 showinfo查看ADSL速率摸板 showprof更改端口应用的速率摸板 linecfg查看ADSL端口的线路质量 showperf打开ADSL端口 enable关闭ADSL端口 disable重启ADSL端口 resetport进入atm atm在atm下查看PVC showvcx allZXDSL8220常用命令查看板卡类型和软硬件版本号 sh card查看ADSL端口状态 show adsl status查看ADSL速率摸板 show adsl profile查看速率摸板D3M具体信息 show adsl profile d3m更新端口的流量信息 update adsl-perf card_list/port_list关闭ADSL端口 shutdown interface打开ADSL端口 no shutdown interfaceZXDSL9210设备常用命令查看板卡配置和版本号 show card查看设备版本号 show version查看ADSL端口状态 show interface查看一块板卡端口状态 show adsl status slot 1查看ADSL端口线路质量 show adsl physical查看ADSL线路摸板种类 show adsl profile查看D3M摸板的配置 show adsl profile d3m进入ADSL端口 int adsl-mpvc card/port关闭ADSL端口 shutdown打开ADSL端口 no shutdown中兴SU3查看板卡状态 show card all查看端口状态 show port查看速率摸板 show adsl lineprofile all查看线路质量 show adsl port端口号 option physical 开端口 port 端口号 enable关端口 port 端口号 disable华为MA5100&MA5103常用命令保存系统配制数据到FLASH内存 save查看单板状态 show board阻塞端口 block解除阻塞端口 no block激活端口 activate去激活端口 deactivate套片复位 chipset reset 0MA5300常用命令保存系统配置3 write查看单板状态 show board 0查看adsl端口状态 show adsl port state查看vdsl端口状态 show vdsl port state查看告警 show alarm history all查看板卡类型和运行状态 show board查看vlan show vlan all配制摸板 adsl line-profile add 3激活端口 adsl activate adsl 端口 3MA5600常用命令保存系统配制数据到FLASH内存 save查看单板状态 display board 0查看所有配制信息 disp running -config查看ADSL端口状态 display adsl port state查看vdsl端口状态 display vdsl port state查看xdsl 配置摸板 display adsl line-profile all查看vlan display vlan all查看告警 displayalarm history all查看上行板卡端口状态 display port state查看某个vlan所绑定下行端口 display vlan VLAN号查看上行板卡端口所绑定的vlan display port vlan配制摸板 adsl line-profile adddisplay interface adsl 0/1/1中兴交换机配置个人心得:命令的使用要注意各种用户模式。
烽火汇聚交换机常用配置

一.缺省用户名和密码admin12345二.创建VLANconfig //进入配置模式后vlan 10,12,17,20,30-416,579,601-700,801,921,1000-1050,1201-1224,1301-1324,1401-1424,3999 //批量创建VLANinterface vlan 4000 //单独创建VLANip address 172.31.20.237/24 //给vlan添加IPip route-static 0.0.0.0 0.0.0.0 172.31.20.254 //config模式下缺省路由配置write file //保存当前所有配置三.端口配置Interface gi 1/0/1 to gi 1/0/48 批量进入端口S7800-08(config-eth1)#no shutdown //启用端口S7800-08(config)#interface gigaethernet 6/0/1 //进入端口gigaethernet 6/0/1 S7800-08(config-ge6/0/1)#alias huangtan8220 //设置端口描述1)access 模式:port link-type access;port default vlan 10 // access 模式2)trunk 模式:port link-type trunk;port trunk allow-pass vlan 10,12 //trunk模式3)hybrid 模式:port link-type hybrid;port hybrid vlan 30-416,1000-1050 tagged;port hybrid vlan 3999untagged //hybird模式,内层标为tag,外层标untag(解标) 建议端口使用hybrid模式,端口默认为hybrid模式。
1.Port hybrid vlan 400 tag //更改端口为tag模式2.Port hybrid vlan 399 untag //更改端口为untag模式,并在下一条中配置pvidPort hybrid pvid 399四.启用QinQS7800-08(config)#translation-vlan 1 outer-vlan 30/524 add outer 2008 //规则1:如果是内标为30-524的数据,添加外标2008 ,前提是端口必须先透传30/524VLAN,下行口S7800-08(config-ge6/0/1)#join translation-vlan 1 in //在端口下应用S7800-08(config-ge6/0/1)#port hybrid vlan 2008 untagS7800-08(config-ge6/0/1)#exit //退出至上一层配置界面上行口:S7800-08(config-ge8/0/1)#port hybrid vlan 2008 tag //只透传2008VLAN--------------------------------------------------------------➢基于接口的QinQ配置,对比中兴设备的配置比较案例:vlan qinq session-no 1 customer-port fei_1/13 uplink-port gei_2/1 in-vlan 2013 untag helper-vlan 3999----- translation-vlan 1 outer-vlan 2013 add outer 3999 //中兴设备和烽火设备的vlan翻译规则命令比较interface fei_1/13 --------- interface gigaethernet 6/0/1 //进入端口下join translation-vlan 1 in //在端口下应用之前建立的翻译规则description XSX_ShuiYueSi_DSLAM2_MA5600 ------- alias XSX_ShuiYueSi_DSLAM2_MA5600 //端口描述switchport mode hybrid --------- port link-type hybridswitchport hybrid native vlan 254 -------- port hybrid pvid 254switchport hybrid vlan 2013 tag --------- port hybrid vlan 2013 tagswitchport hybrid vlan 254 untag -------- port hybrid vlan 254 untagswitchport hybrid vlan 3999 untag ---------port hybrid vlan 3999 untagswitchport qinq customer ---------- dot1q tunnel enable上联口中兴设备需要定义uplink,烽火设备无需该配置,将外层标签定义为untag即可。
烽火交换机基本配置

1.烽火交换机最常用的基本配置命令用户名:admin 默认密码:12345Fire#configFire(config)#interface vlan 70 //创建vlan 332Fire(config-vlan-70)#ip address 172.17.202.21255.255.255.0// 配置交换机管理地址Fire(config-vlan-70)#exitFire(config)#ip route 0.0.0.0 0.0.0.0 172.17.202.1 // 配置路由Fire(config)#interface vlan 338,440 //创建vlan338,440Fire(config-vlan)#exitFire(config)#interface ethernet 1 //进入1端口Fire(config-eth-1)#join vlan 338 untagged // 1端口加入到vlan332 非标记端口Fire(config-eth-1)#pvid 338 //1端口标记pvid 338Fire(config-eth-1)#exitFire(config)#interface ethernet 2Fire(config-eth-2)#join vlan 440 untagged // 2端口加入到vlan440非标记端口Fire(config-eth-2)#pvid 440 //2端口标记pvid 440Fire(config-eth-2)#exitFire(config)#interface ethernet 6Fire(config-eth-6)#join vlan 70,338,440 tag // 6端口加入到vlan70,338,440 标记端口Fire(config-eth-6)#exitFire(config)#exitFire#write file // 保存2.烽火交换机常用命令Fire#show interface 1 // 查看1端口状态Fire#show interface staistics 1 // 查看端口流量(realtime rate)Fire#show vlan all // 查看所有VLANFire#show vlan 338 // 查看VLAN信息Fire(config)#no vlan 338 // 删除vlan 332Fire(config-eth-9)#shutdown // 关闭9号端口Fire(config-eth-9)#no shutdown // 开启9号端口Fire(config-vlan-338)#description yewu // vlan描述Fire(config-eth-1)#description yewu // 端口描述Fire(config-eth-1)#rate-limit rx 1024 //限速收为1M带宽(数值必须是64的整数倍)例:20480为20MFire(config-eth-1)#rate-limit tx 1024 //限速发为1M带宽(数值必须是64的整数倍)例:20480为20M。
烽火汇聚交换机常用配置

一.缺省用户名和密码admin12345二。
创建VLANconfig //进入配置模式后vlan 10,12,17,20,30-416,579,601—700,801,921,1000—1050,1201—1224,1301-1324,1401—1424,3999 //批量创建VLANinterface vlan 4000 //单独创建VLANip address 172。
31.20。
237/24 //给vlan添加IPip route—static 0.0。
0.0 0。
0。
0.0 172。
31。
20。
254 //config模式下缺省路由配置write file //保存当前所有配置三。
端口配置Interface gi 1/0/1 to gi 1/0/48 批量进入端口S7800—08(config-eth1)#no shutdown //启用端口S7800—08(config)#interface gigaethernet 6/0/1 //进入端口gigaethernet 6/0/1 S7800-08(config—ge6/0/1)#alias huangtan8220 //设置端口描述1)access 模式:port link—type access;port default vlan 10 // access 模式2)trunk 模式:port link—type trunk;port trunk allow—pass vlan 10,12 //trunk模式3)hybrid 模式:port link—type hybrid;port hybrid vlan 30—416,1000—1050 tagged;port hybrid vlan 3999untagged //hybird模式,内层标为tag,外层标untag(解标)建议端口使用hybrid模式,端口默认为hybrid模式。
1。
烽火交换机常用的基本配置命令配置案例

烽⽕交换机常⽤的基本配置命令配置案例最常⽤的基本配置命令⽤户名:admin默认密码:123453528#show interface 1 查看端⼝状态3528#show interface staistics 1 查看端⼝流量(realtime rate)3528#show vlan all 查看所以VLAN3528#show vlan 151 查看VLAN信息3528#config3528(config)#interface vlan 332 创建vlan 3323528(config)#no vlan 332 删除vlan 3323528(config)#interface ethernet 9 进⼊某个端⼝3528(config-eth-9)#join vlan 332 untagged 9端⼝加⼊到vlan332 ⾮标记端⼝3528(config-eth-9)#pvid 332 9端⼝标记pvid 3323528(config-eth-9)#rate-limit rx 1024 收为1M带宽(数值必须是64的整数倍)例:20480为20M 3528(config-eth-9)#rate-limit tx 1024 发为1M带宽(数值必须是64的整数倍)例:20480为20M 3528(config-eth-9)#description ...... 端⼝描述3528(config-eth-9)#shutdown 关闭9号端⼝no shutdown 开启9号端⼝3528(config-vlan-332)#description ...... vlan描述3528#write file 保存配置案例:城域⽹ 1.1.1.61 v66(管理vlan) 1.1.1.13 4/业务1/ /业务2/ /拨号⽤户/(DSLAM) /固定IP⽤户/V100 V200 V300 V400(打标的原则:A.设备接设备tag,设备接⽤户untag;B.端⼝对端打标状态始终与本端⼝⼀致,即对端tag,则端⼝tag,对端untag,则端⼝untag.C.untag的端⼝⼀定要打相应的pvid值)1 在config模式下创建vlan,更改⽤户名和密码,更改主机名称S3500(config)#hostname HostA更改主机名称HostA (config)#S3500(config)#adduser aaa group administrators password 111增加⼀个名为“aaa”,密码为111管理员⽤户S3500(config)#interface vlan 100创建vlan100并进⼊S3500(config-vlan-100)# interface vlan 200创建vlan200并进⼊S3500(config-vlan-200)#quit退出vlan200S3500(config)# interface vlan 66,300,400创建vlan300和400,在config模式下创建vlan如果只带1个参数则表⽰创建这个vlan 并进⼊,如果跟2个参数,则代表创建连续的多个vlan,vlan号为第1个参数到第2个参数,使⽤no命令删除,命令⾏定义跟创建vlan⼀样2 在vlan配置模式下,绑定vlan的IP地址S3500(config-vlan-66)#ip address 1.1.1.1 255.255.255.255在vlan内绑定IP地址S3500(config-vlan-66)#quit退出vlan配置模式S3500(config)#3 配置⽹管使⽤的ACL配置了VLAN IP在以后属于这个VLAN的任意⼀个端⼝是不能ping通交换机的,必须要配置ACL并将ACL应⽤到端⼝以后才可以在此端⼝PING通交换机以及telnetS3500(config)# access-list 1创建access-list 1并进⼊(ACL)S3500(config-acl-1)# rule 1 arp any 1.1.1.1 255.255.255.255此处IP地址为绑定的IP地址S3500(config- acl-1)#rule 1 action traptocpu onlyS3500(config- acl-1)#quit退出S3500(config)#4 在端⼝配置模式下配置端⼝信息在举例中交换机,需要在端⼝上启⽤ACL,透传vlanS3500(config)#interface ethernet 1进⼊端⼝1S3500(config-eth-1)#join vlan 66,100,200,300 tag端⼝1加⼊vlan100,200,300,400,为打标端⼝,此命令格式为join vlan 1,3,5-7,不连续vlan之间⽤“,”号隔开,连续vlan间⽤“-”隔开(1,3,5-7表⽰加⼊1,3,5,6,7)后⾯跟tagged或者untagged,定义端⼝为打标端⼝(tagged),或者为不打标端⼝(untagged)。
烽火汇聚交换机常用配置

一.缺省用户名和密码admin12345二.创建VLANconfig //进入配置模式后vlan10,12,17,20,30-416,579,601-700,801,921,1000-1050,1201-1224,1301-1324,1401-1424,3999 //批量创建VLANinterface vlan 4000 //单独创建VLANip address 172.31.20.237/24 //给vlan添加IPip route-static 0.0.0.0 0.0.0.0 172.31.20.254 //config模式下缺省路由配置write file//保存当前所有配置三.端口配置Interface gi 1/0/1 to gi 1/0/48 批量进入端口S7800-08(config-eth1)#no shutdown //启用端口S7800-08(config)#interface gigaethernet 6/0/1 //进入端口gigaethernet 6/0/1 S7800-08(config-ge6/0/1)#alias huangtan8220 //设置端口描述1)access 模式:port link-type access;port default vlan 10 //access 模式2)trunk 模式:port link-type trunk;port trunk allow-pass vlan 10,12 //trunk模式3)hybrid 模式:port link-type hybrid;port hybrid vlan30-416,1000-1050tagged;port hybrid vlan 3999untagged//hybird模式,内层标为tag,外层标untag(解标)建议端口使用hybrid模式,端口默认为hybrid模式。
1.Port hybrid vlan 400 tag //更改端口为tag模式2.Port hybrid vlan 399 untag //更改端口为untag模式,并在下一条中配置pvidPort hybrid pvid 399四.启用QinQS7800-08(config)#translation-vlan 1 outer-vlan 30/524 add outer 2008 //规则1:如果是内标为30-524的数据,添加外标2008 ,前提是端口必须先透传30/524VLAN,下行口S7800-08(config-ge6/0/1)#join translation-vlan 1 in //在端口下应用S7800-08(config-ge6/0/1)#port hybrid vlan 2008 untagS7800-08(config-ge6/0/1)#exit //退出至上一层配置界面上行口:S7800-08(config-ge8/0/1)#port hybrid vlan 2008 tag//只透传2008VLAN--------------------------------------------------------------基于接口的QinQ配置,对比中兴设备的配置比较案例:vlan qinq session-no 1 customer-port fei_1/13 uplink-port gei_2/1 in-vlan 2013 untag helper-vlan 3999-----translation-vlan 1 outer-vlan 2013 add outer 3999 //中兴设备和烽火设备的vlan翻译规则命令比较interface fei_1/13 --------- interface gigaethernet 6/0/1//进入端口下join translation-vlan 1 in//在端口下应用之前建立的翻译规则description XSX_ShuiYueSi_DSLAM2_MA5600 -------aliasXSX_ShuiYueSi_DSLAM2_MA5600//端口描述switchport mode hybrid --------- port link-type hybridswitchport hybrid native vlan 254 --------port hybrid pvid 254switchport hybrid vlan 2013 tag ---------port hybrid vlan 2013 tagswitchport hybrid vlan 254 untag --------port hybrid vlan 254 untagswitchport hybrid vlan 3999 untag ---------port hybrid vlan 3999 untagswitchport qinq customer ----------dot1q tunnel enable上联口中兴设备需要定义uplink,烽火设备无需该配置,将外层标签定义为untag即可。
烽火2系列交换机

烽火交换机基本配置Console口配置交换机(同HW2016一样)1.烽火交换机基本配置所在视图依次键入以下命令命令说明Username: admin 用户名Password: 12345 密码S2000MFB# configure 进入config模式S2000MFB(config)# interface vlan 2 创建vlan 2S2000MFB(config-vlan-2)# qu 退出到上一级S2000MFB(config)# system 进入系统模式下S2000MFB(config-system)# management vlan 2 配置管理vlan 2 S2000MFB(config-system)# ip address 192.168.x.x 255.255.255.0S2000MFB(config-system)# q 退到上一级S2000MFB(config)# interface vlan 2S2000MFB(config-vlan-2)# member 1 taggedS2000MFB# write fileAre you sure?(y/n) [y]……………………………………………….是的IP地址范围使用192.168.x.2-254 255.255.255.0(各县规化配置) 2.烽火交换机常用命令interface ethernet 1join vlan 2 taggedS2000MFB(config)#anti-arp trust ip 192.168.x.1 加信任主机S2000MFB(config-system)#gateway 192.168.x1 加网管地址的网关S2000MFB(config-system)#anti-attack disable 关闭防攻击S2000MFB#config 进入配置模式S2000MFB(config)#hostname liujiazhuangS2000MFB(config)#interface vlan 2097S2000MFB(config-vlan-2097)#member 1 taggedS2000MFB(config)#member 5 untaggedS2000MFB(config)#quit 退到配置模式S2000MFB(config)#interface vlan 1300S2000MFB(config-vlan-1300)#member 1 tagged(同批注9)S2000MFB(config-vlan-1300)#quit 退到上级模式S2000MFB(config)#interface eth 5进入5端口S2000MFB(config-eth-5)#pvid 2097配置5口的PVID为2097S2000MFB(config)#interface eth 4进入4端口S2000MFB(config-eth-4)#pvid 1300配置4口的PVID为1300 S2000MFB(config)#S2000MFB(config)#pvlan 1进入条目1的端口隔离S2000MFB(config-pvlan-1)#isolate-ports 1-8配置1-8端口隔离IGMP协议启用方法S2008MFB(config)#igmp-snoopingS2008MFB(config-igmp-snoop)#igmp-snooping en 全局启用igmp 对于开igmp业务的端口单个宽带用户端口配置S2008MFB(config)#in vlan 1000S2008MFB(config-vlan-1000)#mem 1 tagS2008MFB(config-vlan-1000)#mem 3-4 unS2008MFB(config)#int e 3S2008MFB(config-eth-3)#pvid 1000S2008MFB(config)#int e 4S2008MFB(config-eth-4)#pvid 1000多媒体宽带用户端口配置S2008MFB(config)#in vlan 1000S2008MFB(config-vlan-1000)#mem 1 tagS2008MFB(config-vlan-1000)#mem 3-4 unS2008MFB(config-vlan-2103)#quS2008MFB(config)#in vlan 2103S2008MFB(config-vlan-2103)#mem 1 tagS2008MFB(config-vlan-2103)#mem 3-4 tagS2008MFB(config-vlan-2103)#quS2008MFB(config)#in vlan 2104S2008MFB(config-vlan-2104)#mem 1 tagS2008MFB(config-vlan-2104)#mem 3-4 tagS2008MFB(config-vlan-2104)#quS2008MFB(config)#int e 3S2008MFB(config-eth-3)#pvid 1000S2008MFB(config)#int e 4S2008MFB(config-eth-4)#pvid 1000in eth 3 进入端口3packet-limit broadcast 0 去除广播限制packet-limit dlf 0 去除dlf限制packet-limit multicast 0 去除组播限制in eth 4 进入端口4packet-limit broadcast 0 去除广播限制packet-limit dlf 0 去除dlf限制packet-limit multicast 0 去除组播限制烽火交换机举例:S2000MFB#show run 查看交换机配置信息!Vlan Configurationinterface vlan 1member 1-18 untaggedinterface vlan 2member 1,6-8,13 taggedinterface vlan 1428member 1,6-8,13 taggedmember 2-4,12,14 untaggedinterface vlan 2103member 1-4.6-8,11-14 taggedmember 5,9-10,15-16 untaggedinterface vlan 2104member 1-4,6-8,12-14 taggedsystemmanagement vlan 2ip address 192.168.12.22/25gateway 192.168.12.1out-band ip address 192.168.2.1/24arp-request timer 0anti-attack disabledot1q ingress-filter disable!!Igmp Snooping Configurationigmp-snoopingigmp-snooping enableigmp-snooping fast-leave enableigmp-snooping drop-filtered enableigmp-snooping proxy disableigmp-snooping proxy igmpv3-support disable igmp-snooping proxy vlan 1igmp-snooping max multicast-group 256 spnm password switchspnm send-access-mac disablespnm community NETMAN!Rmon configuration!!Anti-arp Configurationanti-arp disableanti-arp trust ip 192.168.12.1!ftpd configurationno ftpd!!ESR Configurationesresr disable!!Ethernet Configurationinterface ethernet 1join vlan 2,1428,2103-2104 tagged join vlan 1 untaggedauto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepacket-limit broadcast 0packet-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 2join vlan 2103-2104 taggedjoin vlan 1,1428 untaggedauto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepvid 1428packet-limit broadcast 0packet-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 3join vlan 2103-2104 tagged join vlan 1,1428 untagged auto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 1428packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 4join vlan 2103-2104 tagged join vlan 1,1428 untagged auto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 1428packet-limit broadcast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 5join vlan 1,2103 untaggedauto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepvid 2103packet-limit broadcast 0packet-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 6join vlan 2,1428,2103-2104 tagged join vlan 1 untagged description 192.168.12.23auto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepacket-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 7join vlan 2,1428,2103-2104 tagged join vlan 1 untagged description 192.168.12.200auto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepvid 1428packet-limit broadcast 0packet-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 8join vlan 2,1428,2103-2104 tagged join vlan 1 untagged description 192.168.12.127auto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disable duplex autoflow-ctrl disablepacket-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 9join vlan 1,2103 untagged auto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 2103packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 10join vlan 1,2103 untagged auto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enable auto-neg 100M full enable auto-neg pause disableduplex autoflow-ctrl disablepvid 2103packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 11join vlan 2103 taggedjoin vlan 1 untaggedauto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 2103packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 12join vlan 2103-2104 tagged join vlan 1,1428 untagged auto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepvid 1428packet-limit broadcast 0packet-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 13join vlan 2,1428,2103-2104 tagged join vlan 1 untagged description to_192.168.13.30 auto-neg 10M half enableauto-neg 10M full enableauto-neg 100M half enableauto-neg 100M full enableauto-neg pause disableduplex autoflow-ctrl disablepacket-limit broadcast 0packet-limit multicast 0packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0interface ethernet 14join vlan 2103-2104 taggedjoin vlan 1,1428 untaggedauto-neg 10M half enableauto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 1428packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 15join vlan 1,2103 untagged auto-neg 10M half enable auto-neg 10M full enable auto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 2103packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 16join vlan 1,2103 untagged auto-neg 10M half enableauto-neg 100M half enable auto-neg 100M full enable auto-neg pause disable duplex autoflow-ctrl disablepvid 2103packet-limit broadcast 0 packet-limit multicast 0 packet-limit dlf 0stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 17join vlan 1 untagged duplex autoflow-ctrl disablepacket-limit broadcast 64 packet-limit multicast 0 packet-limit dlf 64stp disablestp priority 0no shutdownloop-check enableloop-check vlan 1dtag disablesecurity-mac disableuser-limit number 0 interface ethernet 18join vlan 1 untagged duplex autoflow-ctrl disablepacket-limit broadcast 64 packet-limit multicast 0 packet-limit dlf 64stp disablestp priority 0no shutdownloop-check enable loop-check vlan 1 dtag disable security-mac disable user-limit number 0!!endS2000MFB#查看交换机mac 命令1.2根据已知mac地址,查看mac地址所在端口2端口3查看某端口下所有mac地址例如:查看此交换机第2端口的所有MAC地址运城IT部2009-9-2。
烽火交换机配置命令

烽火交换机配置常用命令一、连接方式:1.2.3.二、登陆:Username:admin------------使用着名称:adminPassword:12345------------密码:12345三、查看:S200mfb#showrun------------------查看系统运行★会看设备情况很重要showrunning-config显示当前系统配置showstartup-config显示当前配置文件信息showversion显示当前设备的版本信息showsystem显示系统配置showdynamic-macAA:BB:CC:DD:EE:FF已知某一mac地址,查找交换机连接端口号showlogginghistory显示历史记录showhistory显示之前的输入命令writefile保存配置文件showcpustatistic显示CPU统计信息。
1、设置时间clocksetHH:MM:SS<1-31><1-12><2000-2100>例:Fengine#clockset14:28:3010920092、显示文件系统dir例:Fengine#dirsizedatetimename----------------------------11387JAN-01-200000:01:16startcfg1files,totalspace:11387bytes0directorys,availablespace:2011136bytes3、清空交换机的配置文件erasestartup-config----------用于清空flash上保存的配置文件,但是以前的配置在系统上仍然生效,因此如果希望系统恢复到出厂状态,除了需要清空flash上的配置文件外,还需要重启设备例:Fengine(config)#erasestartup-config Thiswillerasetheconfigurationintheflashmemory.Areyousure(y/n)[y]Erasingconfiguration.......[OK]四、查看交换机端口情况:S200mfb#showinterface-----------查看端口网速,在线情况。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
关于“烽火S2000M交换机”配置
以上联交换机为华为S3552G为例,通过配置口或ETH口对烽火交换机进行配置,修改交换机上联口以及对交换机业务端口进行业务VLAN配置。
烽火交换机IP地址划分由数据IT部相关数据制作人员对其分配及进行相关配置。
一,烽火交换机登陆方式:
烽火交换机的登陆配置方式有两种,具体是:
1,通过交换机上COS口进入烽火交换机
搭配配置环境:
图1-1 通过串口建立本地配置环境
第一步:如图1-1所示,建立本地配置环境,只需要将电脑的串口通过串口电缆与S2000交换机的Console口相连;
第二步:在电脑上运行超级终端,设备终端参数为9600bps,8位数据位、1位停止位、无校验和无流控,并选择终端类型为VT100,二进制传输协议为CRC;
第三步:S2000第一次上电,自动执行setup命令,设备按照缺省的参数自动启动,直到用户看到Fengine;
2,通过交换机上ETH口进人烽火交换机
搭配配置环境:
图1-2 通过直连网线建立本地配置环境
第一步:如图1-2所示,用直连网线将电脑网卡接至交换机的带外网管口(带外网管口位与状态指示灯的左侧,接口旁边有“ETH”字样);
第二步:启用超级终端登陆交换机:
a,烽火交换机外带网关为192.168.2.1需要将电脑IP地址与交换机外带网关设置为同一网段。
鼠标右键单击桌面上“网上邻居:点击属性,在网上邻居菜单中点
击属性,如图1-3;
图1-3 本地连接属性
b,单击internet 协议(TCP/IP),将IP地址设置为192.168.2.2 (与烽火外带网关设置为同一网段),子网掩码设置为255.255.255.0 ,如图1-4;
图1-4 interface 协议(TCP/IP)属性
c,点击桌面“开始”-“程序“-“附件”-“通讯”-“超级终端”,进入到超级终端的“连接描述”在名称对话框中随便输个名称列如:123,进入到“连接到”,如图1-5 ;
图1-5:连接描述选项框
d,进入“连接到”后,点击“连接时使用”选现中的“TCP/IP(winsock),在主机地址中输入:192.168.2.1 点击确定直到用户看到Fengine,如图1-6。
图1-6:连接到选现框
二,烽火交换机配置:
本列最终以S2016A交换机为列,业务VLAN为2101为列管理VLAN为1为列,对于交换机地址的管理有数据制作网管负责更改。
1,进入烽火交换机,查看自身MAC地址;
Username: admin
Password: 12345
JHJ-FH_001#show version
Fengine JHJ_FH_NanLou2016 with 25930K of memory
System uptime is 0 days 0 hours 0 minutes 0 seconds
Hardware V ersion 1.20
Software V ersion 1.10
System Mac Address00:04:67:91:4E:79 ――本机MAC地址Compiled Jul 31 2006, 14:01:42
Copyright (c) 2000-2005 by FiberHome Networks Co.,Ltd.
2,配置交换机名称,以临汾为列。
以便于在管理及维护;
S2016AMFB#config
S2016AMFB(config)hostname LinFen
3,在烽火交换机上配置上联口,以便于在管理及维护;
S2016AMFB#config
S2016AMFB(config)interface ethernet 1
S2016AMFB(config-eth-1)join valn 1 tagged
S2016AMFB(config-eth-1)quid
S2016AMFB(config)
4,创建业务VLAN及对相应端口划分;
S2016AMFB(config)interface vlan 2101
S2016AMFB(config-vlan-2101)mem 1 tagged
S2016AMFB(config-vlan-2101)mem 15-16 untagged
S2016AMFB(config)interface vlan 1934
S2016AMFB(config-vlan-1934)mem 1 tagged
S2016AMFB(config-vlan-1934)mem 9,11 untagged
S2016AMFB(config-vlan-1934)quid
S2016AMFB(config)
5,在对应端口添加相应描述及pvid ;
S2016AMFB(config)interface Ethernet 9
S2016AMFB(config-eth-9)description NCKD_LinFen_XXX_GuangMao
S2016AMFB(config-eth-9)pvid 1934
S2016AMFB(config-eth-9)no shutdown
S2016AMFB(config-eth-15)description KSDH_LinFen_XXX_GuangMao
S2016AMFB(config-eth-9)pvid 2101
S2016AMFB(config-eth-9)no shutdown
S2016AMFB(config-eth-9)quid
S2016AMFB(config)quid
S2016AMFB#
6,最后一部,添加完相应数据后对其配置进行保存;
S2016AMFB#write file
This will save the configuration to the flash memory.
Are you sure?(y/n) [y] y
Building configuration.....
[OK]
三,命令配置说明:
Username: admin ――登陆名称
Password: 12345 ――登陆密码
show version ――显示版本信息(可查到MAC) config ――进入配置模式
hostname JHJ-FH_LinFen ――配置交换机主机名
interface ethernet x (1-16) ――进入业务端口
join valn 1 tagged ――透传VLAN 1
interface vlan 2101 ――创建VLAN
mem 1 tagged ――1口为tagged模式
mem 15-16 untagged ――15,16为untagged模式description NCKD_LinFen_XXX_GuangMao ――相应端口描述
pvid 1934 ――添加PVID
no shutdown ――开启端口
quid ――退出当前模式
write file ――保存当前配置。