交换机配置清单
Building configuration...
Current configuration : 2750 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service passWord-encryption
service compress-config
!
hostname Switch
!
boot system bootflash:cat4000-i9s-mz.121-19.EW1.bin
no logging console
enable password 111111
!
ip subnet-zero
!
spanning-tree extend system-id
!
!
interface GigabitEthernet1/1
!
--More-- interface GigabitEthernet1/2
!
interface GigabitEthernet2/1
!
interface GigabitEthernet2/2
!
interface GigabitEthernet2/3
!
interface GigabitEthernet2/4
!
interface GigabitEthernet2/5
!
interface GigabitEthernet2/6
switchport Access vlan 3
!
interface FastEthernet3/1
!
interface FastEthernet3/2
switchport access vlan 2
!
interface FastEthernet3/3
!
interface FastEthernet3/4
--More-- !
interface FastEthernet3/5
!
interface FastEthernet3/6
!
interface FastEthernet3/7
!
interface FastEthernet3/8
!
interface FastEthernet3/9
!
interface FastEthernet3/10
!
interface FastEthernet3/11
!
interface FastEthernet3/12
!
interface FastEthernet3/13
duplex full
!
interface FastEthernet3/14
!
interface FastEthernet3/15
--More-- !
interface FastEthernet3/16
!
interface FastEthernet3/17
!
interface FastEthernet3/18
!
interface FastEthernet3/19
!
interface FastEthernet3/20
!
interface FastEthernet3/21
!
interface FastEthernet3/22
!
interface FastEthernet3/23
!
interface FastEthernet3/24
!
interface FastEthernet3/25
!
interface FastEthernet3/26
!
--More-- interface FastEthernet3/27
!
interface FastEthernet3/28
!
interface FastEthernet3/29
!
interface FastEthernet3/30
!
interface FastEthernet3/31
!
interface FastEthernet3/32
!
interface FastEthernet3/33
!
interface FastEthernet3/34
!
interface FastEthernet3/35
!
interface FastEthernet3/36
!
interface FastEthernet3/37
!
interface FastEthernet3/38
--More-- !
interface FastEthernet3/39
!
interface FastEthernet3/40
!
interface FastEthernet3/41
switchport access vlan 4
!
interface FastEthernet3/42
switchport access vlan 4
!
interface FastEthernet3/43
switchport access vlan 4
!
interface FastEthernet3/44
switchport access vlan 4
!
interface FastEthernet3/45
switchport access vlan 4
!
interface FastEthernet3/46
switchport access vlan 4
!
--More-- interface FastEthernet3/47
switchport access vlan 4
!
interface FastEthernet3/48
switchport access vlan 4
!
interface Vlan1
ip address 192.168.1.253 255.255.255.0
!
interface Vlan2
ip address 192.168.2.253 255.255.255.0
!
interface Vlan3
ip address 192.168.3.253 255.255.255.0
ip access-group 101 in
!
interface Vlan4
ip address 192.168.4.253 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.254
no ip http server
!
--More-- !
access-list 101 deny icmp any 192.168.1.0 0.0.0.255
access-list 101 permit ip any any
!
!
line con 0
password 111111
login
stopbits 1
line vty 0 3
password 111111
login
line vty 4
login
!
end