資源描述:
《華為交換機(jī)配置模版-腳本》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
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認(rèn)證Aaalocal-usermengpasswordciphermengprivilegelevel15User-interfacevty04Authenticationmodeaaa端口聚合創(chuàng)建聚合組命令如下:[S9303]interfaceEth-Trunk1//聚合組名稱為ETH-Trunk1[S9303-Eth-Trunk1]descriptionTo
4、-S9303-2//描述[S9303-Eth-Trunk1]undoporthybridvlan1//去掉VLAN1的透?jìng)鱗S9303-Eth-Trunk1]porthybridtaggedvlan100to200//VLAN透?jìng)?進(jìn)入端口,將端口加入聚合組,命令如下:[S9303]interfaceGigabitEthernet1/1/16//進(jìn)入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//進(jìn)入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、---保留手動(dòng)分配的地址,不加保留的手動(dòng)分配的地址沒法使用user-bindstaticip-address192.168.1.201mac-address4c1f-cc58-379e--保留手動(dòng)分配的地址和MAC地址捆綁#interfaceVlanif1000ipaddress192.168.1.1255.255.255.0dhcpselectinterfacedhcpserverexcluded-ip-address192.168.1.200192.168.1.254---保留手動(dòng)分配的地址段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創(chuàng)建組Intg0/0/1Mirroring-group2mirroring-portboth設(shè)置被監(jiān)控對(duì)象Intg0/0/2