《三层交换机的配置实例》由会员分享,可在线阅读,更多相关《三层交换机的配置实例(9页珍藏版)》请在金锄头文库上搜索。
1、三层交换机的配置实例三层交换机的配置实例1 1、 交换机配置模版交换机配置模版 以迈普以迈普 4152E4152E交换机为例交换机为例hostname HEBSJZZXCG5_WN_AS02hostname HEBSJZZXCG5_WN_AS02service password-encryptservice password-encryptno service new-encryptno service new-encryptservice login-secureservice login-secureenable password maipuenable password maipuuse
2、r admin password 0 adminuser admin password 0 adminip access-list standard 1ip access-list standard 1 10 permit 10.59.16.0 0.0.0.255 10 permit 10.59.16.0 0.0.0.255 20 permit 10.59.18.0 0.0.0.255 20 permit 10.59.18.0 0.0.0.255 exit exitip access-list standard telnet_aclip access-list standard telnet_
3、acl 10 permit 10.59.16.0 0.0.0.255 10 permit 10.59.16.0 0.0.0.255 20 permit 100.255.1.0 0.0.0.255 20 permit 100.255.1.0 0.0.0.255 30 permit 100.255.0.0 0.0.0.255 30 permit 100.255.0.0 0.0.0.255 exit exitaaa new-modelaaa new-modelaaa authentication login default tacacs localaaa authentication login d
4、efault tacacs localaaa authentication enable default tacacs enableaaa authentication enable default tacacs enableaaa authorization exec default tacacs localaaa authorization exec default tacacs localaaa authorization commands 1 default tacacs localaaa authorization commands 1 default tacacs localaaa
5、 authorization commands 15 default tacacs localaaa authorization commands 15 default tacacs localaaa accounting exec default start-stop tacacsaaa accounting exec default start-stop tacacsaaa accounting commands 1 default start-stop tacacsaaa accounting commands 1 default start-stop tacacsaaa account
6、ing commands 15 default start-stop tacacsaaa accounting commands 15 default start-stop tacacsip ctrl-protocol unicastip ctrl-protocol unicastip ctrl-protocol multicastip ctrl-protocol multicastip load-sharing per-destinationip load-sharing per-destinationvlan 1vlan 1 exit exitvlan 2021vlan 2021 desc
7、ription TO-HEBSJZZX3_WN_AS01 description TO-HEBSJZZX3_WN_AS01 exit exitvlan 2051vlan 2051 description TO-2600C-ABIS description TO-2600C-ABIS exit exitvlan 2052vlan 2052 description TO-2600C-OA description TO-2600C-OA exit exitvlan 2053vlan 2053 description TO-2600C-TEST description TO-2600C-TEST ex
8、it exit!slot_0_S4152E!slot_0_S4152E!slot 0/0!slot 0/0port 0/0/0port 0/0/0 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/1port 0/0/1 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/2port 0/0/2 port-type nni port-typ
9、e nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/3port 0/0/3 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/4port 0/0/4 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/5port 0/0/5 port-type nni po
10、rt-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/6port 0/0/6 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/7port 0/0/7 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/8port 0/0/8 port-type
11、nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/9port 0/0/9 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/10port 0/0/10 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/11port 0/0/11
12、port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/12port 0/0/12 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/13port 0/0/13 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/14
13、port 0/0/14 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/15port 0/0/15 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/16port 0/0/16 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exi
14、tport 0/0/17port 0/0/17 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/18port 0/0/18 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/19port 0/0/19 port-type nni port-type nni port access vlan 2021 port access vlan 2
15、021 exit exitport 0/0/20port 0/0/20 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/21port 0/0/21 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/22port 0/0/22 port-type nni port-type nni port access vlan 2021 port a
16、ccess vlan 2021 exit exitport 0/0/23port 0/0/23 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/24port 0/0/24 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/25port 0/0/25 port-type nni port-type nni port access vlan
17、 2021 port access vlan 2021 exit exitport 0/0/26port 0/0/26 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/27port 0/0/27 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/28port 0/0/28 port-type nni port-type nni port
18、 access vlan 2021 port access vlan 2021 exit exitport 0/0/29port 0/0/29 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/30port 0/0/30 port-type nni port-type nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/31port 0/0/31 port-type nni port-t
19、ype nni port access vlan 2021 port access vlan 2021 exit exitport 0/0/32port 0/0/32 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/33port 0/0/33 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/34port 0/0/34 port-typ
20、e nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/35port 0/0/35 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/36port 0/0/36 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/37port 0/0
21、/37 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/38port 0/0/38 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/39port 0/0/39 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/
22、0/40port 0/0/40 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/41port 0/0/41 port-type nni port-type nni port access vlan 2051 port access vlan 2051 exit exitport 0/0/42port 0/0/42 port-type nni port-type nni port access vlan 2052 port access vlan 2052 exit
23、 exitport 0/0/43port 0/0/43 port-type nni port-type nni port access vlan 2052 port access vlan 2052 exit exitport 0/0/44port 0/0/44 port-type nni port-type nni port access vlan 2052 port access vlan 2052 exit exitport 0/0/45port 0/0/45 port-type nni port-type nni port access vlan 2052 port access vl
24、an 2052 exit exitport 0/0/46port 0/0/46 description TO-HEBSJZZX2_WN_AS03 description TO-HEBSJZZX2_WN_AS03 port-type nni port-type nni port mode trunk port mode trunk port trunk allowed vlan all port trunk allowed vlan all port trunk pvid vlan 1 port trunk pvid vlan 1traffic-shape 10240 12288traffic-
25、shape 10240 12288 exit exitport 0/0/47port 0/0/47 description TO-2600C description TO-2600C port-type nni port-type nni port mode trunk port mode trunk port trunk allowed vlan all port trunk allowed vlan all port trunk pvid vlan 1 port trunk pvid vlan 1 exit exit!end!end!slot_1_SM41-4GE!slot_1_SM41-
26、4GE!slot 0/1!slot 0/1port 0/1/0port 0/1/0 port-type nni port-type nni port access vlan 2053 port access vlan 2053 exit exitport 0/1/1port 0/1/1 port-type nni port-type nni port access vlan 2053 port access vlan 2053 exit exitport 0/1/2port 0/1/2 port-type nni port-type nni exit exitport 0/1/3port 0/
27、1/3 port-type nni port-type nni exit exitinterface vlan 1interface vlan 1 description TO-9512E-GUANLI description TO-9512E-GUANLI ip address 100.255.1.131 255.255.255.0 ip address 100.255.1.131 255.255.255.0 exit exitip route 0.0.0.0 0.0.0.0 100.255.1.254ip route 0.0.0.0 0.0.0.0 100.255.1.254logging
28、 10.59.18.1 0 6logging 10.59.18.1 0 6line vty 0 15line vty 0 15 exec-timeout 0 300 exec-timeout 0 300login locallogin local exit exitsnmp-server startsnmp-server startsnmp-server view default 1.3.6.1 includesnmp-server view default 1.3.6.1 includesnmp-server community public view default ro 1snmp-se
29、rver community public view default ro 1snmp-server host 130.25.2.103 traps community public version 2snmp-server host 130.25.2.103 traps community public version 2snmp-server trap-source 10.6.24.222snmp-server trap-source 10.6.24.222snmp-server enable traps snmp authenticationsnmp-server enable trap
30、s snmp authenticationsnmp-server enable traps snmp linkdownsnmp-server enable traps snmp linkdownsnmp-server enable traps snmp linkupsnmp-server enable traps snmp linkupendend 2 2、配置操作、配置操作 3 3、网点迈普、网点迈普 4152E4152E 交换机配置模版交换机配置模版enaenaconf tconf tvlan 2051vlan 2051 description ABIS description ABIS
31、exit exitvlan 2052vlan 2052 description OA description OA exit exitvlan 2053vlan 2053 description TEST description TEST exit exitvlan 2054vlan 2054 description waiwang description waiwang exit exitport 0/0/0-0/0/47port 0/0/0-0/0/47 port-type nni port-type nniport 0/0/0-0/0/29port 0/0/0-0/0/29 port a
32、ccess vlan 2051 port access vlan 2051 exit exitport 0/0/30-0/0/39port 0/0/30-0/0/39 port access vlan 2052 port access vlan 2052 exit exitport 0/0/40-0/0/44port 0/0/40-0/0/44 port access vlan 2054 port access vlan 2054 exit exitport 0/0/45-0/0/47port 0/0/45-0/0/47 port access vlan 2053 port access vlan 2053 exit exitexitexitwrwr