配置清单 ●Cisco Catalyst 4006交换机配置清单 Current configuration : 5594 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service passWord-encryption service comPRess-config ! hostname hsnc ! boot system bootFlash:cat4000-is-mz.121-8a.EW1.bin no logging console enable secret level 1 5 $1$rkQW$1HKyKdN5f.Ri5zxeoF8Yv/ ! ip subnet-zero ! ! ! interface GigabitEthernet1/1 no snmp trap link-status !--不为Supervisor Engine III G引擎中的1000Base-X插槽指定VLAN interface GigabitEthernet1/2 no snmp trap link-status ! ! interface GigabitEthernet2/1 switchport access vlan 50 no snmp trap link-status !--将端口GigabitEthernet2/1指定至VLAN 50
no snmp trap link-status !--将端口GigabitEthernet3/5指定至VLAN 90 ! interface GigabitEthernet3/6 switchport trunk encapsulation dot1q !--启用802.1Q Trunk封装协议,即在该端口创建Trunk switchport trunk allowed vlan 1-80 !--答应vlan 1-90在该中继线通讯 !--可以拒绝或答应某个VLAN访问该Trunk !--从而确保未被授权的VLAN通过该Trunk,实现VLAN访问安全 switchport mode trunk !--将该端口设置为Trunk description netcenter no snmp trap link-status ! interface Vlan1 description netmanger no ip address ! !--对VLAN1进行描述 interface Vlan10 description network center no ip address !--对VLAN2进行描述 ! interface Vlan20 description computer center no ip address ! interface Vlan30 description network lab no ip address ! interface Vlan40 description huaxuelou no ip address ! interface Vlan50 description wulilou no ip address ! interface Vlan60 description shengwulou no ip address ! interface Vlan70 description zhongwenxi no ip address ! interface Vlan80 description tushuguan no ip address ! ! line con 0 stopbits 1 line vty 0 4 password aaa login ! end ●Cisco Catalyst 3550-EMI配置清单 Building configuration...
Current configuration : 4055 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Office ! enable secret 5 $1$p0fU$JeyPOM0RuL.Fqfe71efHF1 ! ip subnet-zero ! ! spanning-tree extend system-id ! ! ! interface FastEthernet0/1 switchport access vlan 10 !--将端口FastEthernet0/1指定至VLAN 10 no ip address ! interface FastEthernet0/2 switchport access vlan 10 no ip address ! interface FastEthernet0/3 switchport access vlan 10 no ip address ! interface FastEthernet0/4 switchport access vlan 10 no ip address ! interface FastEthernet0/5 switchport access vlan 10 no ip address ! interface FastEthernet0/6 switchport access vlan 20 no ip address !--将端口FastEthernet0/6指定至VLAN 20 ! interface FastEthernet0/7 switchport access vlan 20 no ip address ! interface FastEthernet0/8 switchport access vlan 20 no ip address ! interface FastEthernet0/9 switchport access vlan 20 no ip address ! interface FastEthernet0/10 switchport access vlan 20 no ip address ! interface FastEthernet0/11 switchport access vlan 30 no ip address !--将端口FastEthernet0/6指定至VLAN 30 !
interface FastEthernet0/12 switchport access vlan 30 no ip address ! interface FastEthernet0/13 switchport access vlan 30 no ip address ! interface FastEthernet0/14 switchport access vlan 30 no ip address ! interface FastEthernet0/15 switchport access vlan 30 no ip address ! interface FastEthernet0/16 switchport access vlan 30 no ip address ! interface FastEthernet0/17 switchport access vlan 30 no ip address ! interface FastEthernet0/18 switchport access vlan 30 no ip address ! interface FastEthernet0/19 switchport access vlan 40 no ip address !--将端口FastEthernet0/6指定至VLAN 40 ! interface FastEthernet0/20 switchport access vlan 40 no ip address ! interface FastEthernet0/21 switchport access vlan 40 no ip address ! interface FastEthernet0/22 switchport access vlan 30 no ip address ! interface FastEthernet0/23 switchport access vlan 40 no ip address ! interface FastEthernet0/24 switchport access vlan 40 no ip address !