欢迎来到天天文库
浏览记录
ID:40817496
大小:118.00 KB
页数:10页
时间:2019-08-08
《华为交换机配置模版-脚本》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、总体模版sysuser-interfacevty04authentication-modepasswordsetauthenticationpasswordciphersdsy/sdsyuserprivilegelevel15quiuser-interfaceconso0authentication-modepasswordsetauthenticationpasswordciphersdsy/sdsyquiiproute-static0.0.0.00.0.0.010.1.1.3vlan39quiintvlan1q
2、uiundointvlan1vlan255intvlan255ipadd10.1.1.20224intg0/0/8portlink-typetrunkporttrunkallow-passvlanallquiintrangeg0/0/1tog0/0/7portlink-typaccessportdefaulvlan39stpedged-portenableloopback-detectionenableexiterrdisablerecoverycauseloopback-detetionerrdisablerec
3、overyinterval60dhcp-snoopingenableintrangeg0/0/8dhcp-snoopingtrustdhcpenable3A认证Aaalocal-usermengpasswordciphermengprivilegelevel15User-interfacevty04Authenticationmodeaaa端口聚合创建聚合组命令如下:[S9303]interfaceEth-Trunk1//聚合组名称为ETH-Trunk1[S9303-Eth-Trunk1]descriptionTo
4、-S9303-2//描述[S9303-Eth-Trunk1]undoporthybridvlan1//去掉VLAN1的透传[S9303-Eth-Trunk1]porthybridtaggedvlan100to200//VLAN透传3进入端口,将端口加入聚合组,命令如下:[S9303]interfaceGigabitEthernet1/1/16//进入G1/1/16端口[S9303-GigabitEthernet1/1/16]descriptionTo-S7810-G7/0/31//端口描述[S9303-Gigabi
5、tEthernet1/1/16]eth-trunk1//加入聚合组1[S9303]interfaceGigabitEthernet1/1/17//进入G1/1/17端口[S9303-GigabitEthernet1/1/17]descriptionTo-S7810-G7/0/30//端口描述[S9303-GigabitEthernet1/1/17]eth-trunk1//加入聚合组1dhcpenable#dhcpsnoopingenableuser-bindstaticip-address192.168.1.200
6、---保留手动分配的地址,不加保留的手动分配的地址没法使用user-bindstaticip-address192.168.1.201mac-address4c1f-cc58-379e--保留手动分配的地址和MAC地址捆绑#interfaceVlanif1000ipaddress192.168.1.1255.255.255.0dhcpselectinterfacedhcpserverexcluded-ip-address192.168.1.200192.168.1.254---保留手动分配的地址段expiredda
7、y0hour5dhcpserverforbidden-ip192.168.2.201192.168.2.253displaydhcpclient#interfaceGigabitEthernet0/0/1portlink-typeaccessportdefaultvlan1000ipsourcecheckuser-bindenableipsourcecheckuser-bindcheck-itemip-addressmac-addressdhcpsnoopingenabledhcpsnoopingcheckuser
8、-bindenableexpiredday0hour5dhcpserverforbidden-ip192.168.2.201192.168.2.253displaydhcpclient镜像命令:Mirroring-group2local创建组Intg0/0/1Mirroring-group2mirroring-portboth设置被监控对象Intg0/0/2
此文档下载收益归作者所有