《华为eNSP实验指南规范》由会员分享,可在线阅读,更多相关《华为eNSP实验指南规范(74页珍藏版)》请在金锄头文库上搜索。
1、VLAN的基础配置drop-profile default(W1CLIENT1CLIENT2CLIENT?CLIENT,VLAN最基本实验,1和3属于VLAN2 ,相互不通;2和4属于VLAN3,可以ping通。SW1di cu#sysname SW1#vlan batch 2 to 3#cluster enablentdp enablendp enable#drop 川egal-mac alarm#diffserv domain default#interface Ethernet0/0/#aaaauthentication-scheme defaultauthorization-schem
2、e defaultaccounting-scheme defaultdomain defaultdomain default_adminlocal-user admin password simple adminlocal-user admin service-type http#interface Vlanif1#interface MEth0/0/1#interface Ethernet0/0/1port link-type accessport default vlan 2#interface Ethernet0/0/2port link-type accessport default
3、vlan 3#interface Ethernet0/0/3#interface Ethernet0/0/4#interface Ethernet0/0/5#interface Ethernet0/0/8#interface Ethernet0/0/9#interface Ethernet0/0/10#interface Ethernet0/0/11#interface Ethernet0/0/12#interface Ethernet0/0/13#interface Ethernet0/0/14#interface Ethernet0/0/15#interface Ethernet0/0/1
4、6#interface Ethernet0/0/17#interface Ethernet0/0/18#interface Ethernet0/0/19#interface Ethernet0/0/20#interface Ethernet0/0/21#interface Ethernet0/0/#port link-type trunkport trunk allow-pass vlan 3#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2#interface NULL0#user-interface con 0use
5、r-interface vty 0 4#ReturnSW2di cu#sysname SW2#vlan batch 2 to 3#cluster enablentdp enablendp enable#drop 川egal-mac alarm#diffserv domain default#drop-profile defaultinterface Ethernet0/0/#aaaauthentication-scheme defaultauthorization-scheme defaultaccounting-scheme defaultdomain defaultdomain defau
6、lt_adminlocal-user admin password simple adminlocal-user admin service-type http#interface Vlanif1#interface MEth0/0/1#interface Ethernet0/0/1port link-type accessport default vlan 2#interface Ethernet0/0/2port link-type accessport default vlan 3#interface Ethernet0/0/3#interface Ethernet0/0/4#inter
7、face Ethernet0/0/5#interface Ethernet0/0/8#interface Ethernet0/0/9#interface Ethernet0/0/10#interface Ethernet0/0/11#interface Ethernet0/0/12#interface Ethernet0/0/13#interface Ethernet0/0/14#interface Ethernet0/0/15#interface Ethernet0/0/16#interface Ethernet0/0/17#interface Ethernet0/0/18#interfac
8、e Ethernet0/0/19#interface Ethernet0/0/20#interface Ethernet0/0/21#interface Ethernet0/0/#port link-type trunkport trunk allow-pass vlan 3#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2#interface NULL0#user-interface con 0user-interface vty 0 4#port-group link-type#returnVLAN间路由CLIENT
9、1CLIENT?注:在pc1和pc2上面配置好ip地址和网关SW1di cu#sysname SW1#vlan batch 2 to 3#cluster enablentdp enablendp enable#drop 川egal-mac alarm#diffserv domain default#drop-profile default#aaaauthentication-scheme defaultauthorization-scheme defaultaccounting-scheme defaultdomain defaultdomain default_adminlocal-user
10、 admin password simple adminlocal-user admin service-type http#interface Vlanif1#interface Vlanif2ip address 192.168.2.254 255.255.255.0#interface Vlanif3ip address 192.168.3.254 255.255.255.0 interface MEth0/0/1#interface Ethernet0/0/1port link-type accessport default vlan 2#interface Ethernet0/0/2
11、 port link-type accessport default vlan 3#interface Ethernet0/0/3#interface Ethernet0/0/4#interface Ethernet0/0/5#interface Ethernet0/0/6#interface Ethernet0/0/7#interface Ethernet0/0/8#interface Ethernet0/0/9#interface Ethernet0/0/10#interface Ethernet0/0/#interface Ethernet0/0/#interface Ethernet0
12、/0/13#interface Ethernet0/0/14#interface Ethernet0/0/15#interface Ethernet0/0/16#interface Ethernet0/0/17#interface Ethernet0/0/18#interface Ethernet0/0/19#interface Ethernet0/0/20#interface Ethernet0/0/21#interface Ethernet0/0/22#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2#interfa
13、ce NULL0#user-interface con 0user-interface vty 0 4interface EthernetO/0/#interface GigabitEthernet。/。/2#returnAR1h. WO总themelCrtMlEilernelC/GW MeetEthernetQW1 tnernd QrtVithernet O/O/lCLIEhTT1CLIENTSCLIENT2R1di cu#sysname R1#aaaauthentication-scheme defaultauthorization-scheme defaultaccounting-sch
14、eme defaultdomain defaultdomain default_adminlocal-user admin password cipher OOCM4m($F4ajUn1vME旧NUw#local-user admin service-type http#firewall zone Localpriority 16#interface Ethernet0/0/0.1vlan-type dotlq 2ip address 192.168.2.254 255.255.255.0#interface Ethernet0/0/0.3vlan-type dot1q 3ip address 192.