//启动电源
**********************************************************
* *
* Welcome to Rom Monitor for WS-X4013+TS System. *
* Copyright (c) 1999-2004 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************
Rom Monitor Program Version 12.2(20r)EW1
Supervisor: WS-X4013+TS Chassis: WS-C4503
Hardware Revisions - Board: 7.4 CPLD: 4 Dagobah: 226
MAC Address : 00-1a-2f-fc-0c-51
IP Address : 10.1.8.105
Netmask : 255.255.0.0
Gateway : 10.1.1.1
TftpServer : 10.1.1.1
Main Memory : 256 MBytes
***** The system will autoboot in 5 seconds *****
Type control-C to prevent autobooting.
//按Ctrl+C键
Autoboot cancelled......... please wait!!!
Autoboot cancelled......... please wait!!!
rommon 1 >
rommon 1 >
rommon 1 > [interrupt]
rommon 1 > [interrupt]
//使用命令set
rommon 1 >set
PS1=rommon ! >
TftpServer=10.1.1.1
Gateway=10.1.1.1
IpAddr=10.1.8.105
Netmask=255.255.0.0
Broadcast=10.1.1.255
RommonVer=12.2(20r)EW1
DiagMonitorAction=Normal
BOOT=
BootedFileName=bootflash:
CV=bootflash:
ConfigReg=0x2101 //得到ConfigReg的值
ConsecPostPassedCnt=99
//使用命令confreg
rommon 2 >confreg
Configuration Summary :
=> load rom after netboot fails
=> console baud: 9600
=> autoboot from: the first file from internal flash device
do you wish to change the configuration? y/n [n]: y //使用yes
enable "diagnostic mode"? y/n [n]: n
enable "use net in IP bcast address"? y/n [n]: n
disable "load rom after netboot fails"? y/n [n]: n
enable "use all zero broadcast"? y/n [n]: n
enable "break/abort has effect"? y/n [n]:
enable "ignore system config info"? y/n [n]: y //使用yes
change console baud rate? y/n [n]: n
change the boot characteristics? y/n [n]: n
Configuration Summary :
=> load rom after netboot fails
=> ignore system config info
=> console baud: 9600
=> autoboot from: the first file from internal flash device
do you wish to save this configuration? y/n [n]: y //使用yes
You must reset or power cycle for new configuration to take effect
//使用reset命令
rommon 3 >reset
Resetting .......
rommon 4 >
**********************************************************
* *
* Welcome to Rom Monitor for WS-X4013+TS System. *
* Copyright (c) 1999-2004 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************
Rom Monitor Program Version 12.2(20r)EW1
Supervisor: WS-X4013+TS Chassis: WS-C4503
Hardware Revisions - Board: 7.4 CPLD: 4 Dagobah: 226
MAC Address : 00-1a-2f-fc-0c-51
IP Address : 10.1.8.105
Netmask : 255.255.0.0
Gateway : 10.1.1.1
TftpServer : 10.1.1.1
Main Memory : 256 MBytes
***** The system will autoboot in 5 seconds *****
Type control-C to prevent autobooting.
. . . . .
******** The system will autoboot now ********
//注意,此处config-register = 0x2141
config-register = 0x2141
Autobooting using the first file from bootflash.....
Rommon reg: 0xE2004180
##########
k2diags version 4.2.2_h
prod: WS-X4013+TS part: 73-9337-10 serial: JAE110653K7
Power-on-self-test for Module 1: WS-X4013+TS
Port/Test Status: (. = Pass, F = Fail, U = Untested)
Reset Reason: PowerUp Software/User
Port Traffic: L2 Serdes Loopback ...
0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: .
12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: .
24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: .
Port Traffic: L2 Asic Loopback ...
0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: .
12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: .
24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: .
Port Traffic: L3 Asic Loopback ...
0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: .
12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: .
24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: .
Switch Subsystem Memory ...
1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: .
13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: .
25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: .
37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: .
49: . 50: . 51: . 52: . 53: . 54: . 55: .
Front Panel 10/100/1000 Ports ...
1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: .
Front Panel SFP Ports ...
13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: .
Module 1 Passed
Exiting to ios...
Rommon reg: 0xE2000180
###################################
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12
.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
Image text-base: 0x10000000, data-base: 0x114ED458
Testing packet buffer memory:065536..done
All packet buffers passed.
cisco WS-C4503 (MPC8245) processor (revision 4) with 262144K bytes of memory.
Processor board ID FOX1044071Y
MPC8245 CPU at 267Mhz, Supervisor II+TS
Last reset from PowerUp
1 Virtual Ethernet interface
20 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.
Press RETURN to get started!
//重启完成
00:00:25: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:26: %SYS-6-STARTUP_CONFIG_IGNORED: System startup configuration is ignored
based on the configuration register setting.
00:00:26: %C4K_IOSMODPORTMAN-6-MODULEONLINE: Module 1 (WS-X4013+TS S/N: JAE11065
3K7 Hw: 1.6) is online
00:00:26: %SYS-5-RESTART: System restarted --
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12
.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
//现在已经没有密码,是空设置
Switch>
Switch>en
Switch#sh ver //显示当前版本
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12
.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
Image text-base: 0x10000000, data-base: 0x114ED458
ROM: 12.2(20r)EW1
Dagobah Revision 226, Swamp Revision 4
Switch uptime is 0 minutes
System returned to ROM by power-on
System image file is "bootflash:"
cisco WS-C4503 (MPC8245) processor (revision 4) with 262144K bytes of memory.
Processor board ID FOX1044071Y
MPC8245 CPU at 267Mhz, Supervisor II+TS
Last reset from PowerUp
1 Virtual Ethernet interface
20 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.
Configuration register is 0x2141 //注意当前的值
Switch#configure memory //配置原交换机的设置
Uncompressed configuration from 2881 bytes to 6200 bytes
000005: *Mar 25 01:08:12: %SYS-6-CLOCKUPDATE: System clock has been updated from
01:08:12 UTC Sun Mar 25 2012 to 09:08:12 WST Sun Mar 25 2012, configured from c
onsole by console.
WaiWang4503#
000006: *Mar 25 01:08:17: %SYS-5-CONFIG_I: Configured from memory by console
WaiWang4503#sh run //显示原交换机的设置
Building configuration...
Current configuration : 6220 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service compress-config
service sequence-numbers
!
hostname WaiWang4503
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$fpcU$AHgNUGU1WxmdvhlKI1O.0.
!
username hyjk privilege 15 secret 5 $1$GbaL$aUf9ZUSpowztBH5btnoqP0
aaa new-model
aaa authentication login default local
!
aaa session-id common
clock timezone WST 8
qos dbl
qos map dscp 24 25 26 27 28 29 30 31 to tx-queue 4
qos map dscp 32 33 34 35 36 37 38 39 to tx-queue 4
qos map cos 3 to dscp 26
qos map cos 5 to dscp 46
qos
ip subnet-zero
no ip domain-lookup
ip dhcp excluded-address 192.168.1.1 192.168.1.20
ip dhcp excluded-address 192.168.1.250 192.168.1.254
!
ip dhcp pool vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan3
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp snooping vlan 1
ip dhcp snooping
!
no file verify auto
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree uplinkfast
spanning-tree backbonefast
spanning-tree vlan 1-2 priority 24576
power redundancy-mode redundant
!
!
!
vlan internal allocation policy ascending
!
policy-map autoqos-voip-policy
class class-default
dbl
!
!
interface GigabitEthernet1/1
description bgl1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/2
description bgl2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/3
description bgl3
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/4
description bgl4
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/5
description bgl5
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/6
description ffwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/7
description dcwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/8
description FW-Router
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/9
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001a.6449.bf9f
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/10
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/11
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/12
switchport access vlan 2
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/13
!
interface GigabitEthernet1/14
!
interface GigabitEthernet1/15
!
interface GigabitEthernet1/16
!
interface GigabitEthernet1/17
!
interface GigabitEthernet1/18
!
interface GigabitEthernet1/19
!
interface GigabitEthernet1/20
!
interface Vlan1
ip address 192.168.1.8 255.255.255.0
!
interface Vlan2
ip address 192.168.2.254 255.255.255.0
shutdown
!
interface Vlan3
ip address 192.168.0.254 255.255.255.0
shutdown
!
ip route 0.0.0.0 0.0.0.0 192.168.1.254
ip http server
ip http authentication local
!
!
!
snmp-server community yingxinbl RO
!
radius-server source-ports 1645-1646
!
line con 0
password hyjknet
stopbits 1
line vty 0 4
password hyjknet
length 0
!
!
end
WaiWang4503#config t //进入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
WaiWang4503(config)#enable secret cisco //修改特权的密码,
WaiWang4503(config)#config-register 0x2101 //修改启动参数的值
WaiWang4503(config)#^Z
WaiWang4503#write memory //将修改保存到启动设置
Building configuration...
Compressed configuration from 6220 bytes to 2900 bytes[OK]
WaiWang4503#
WaiWang4503#reload //重启交换机
Proceed with reload? [confirm]
000008: *Mar 25 01:12:45: %SYS-5-RELOAD: Reload requested by console. Reload Rea
son: Reload Command.
**********************************************************
* *
* Welcome to Rom Monitor for WS-X4013+TS System. *
* Copyright (c) 1999-2004 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************
Rom Monitor Program Version 12.2(20r)EW1
Supervisor: WS-X4013+TS Chassis: WS-C4503
Hardware Revisions - Board: 7.4 CPLD: 4 Dagobah: 226
MAC Address : 00-1a-2f-fc-0c-51
IP Address : 10.1.8.105
Netmask : 255.255.0.0
Gateway : 10.1.1.1
TftpServer : 10.1.1.1
Main Memory : 256 MBytes
***** The system will autoboot in 5 seconds *****
Type control-C to prevent autobooting.
. . . . .
******** The system will autoboot now ********
config-register = 0x2101
Autobooting using the first file from bootflash.....
Rommon reg: 0xE2004180
##########
k2diags version 4.2.2_h
prod: WS-X4013+TS part: 73-9337-10 serial: JAE110653K7
Power-on-self-test for Module 1: WS-X4013+TS
Port/Test Status: (. = Pass, F = Fail, U = Untested)
Reset Reason: Software/User
Port Traffic: L2 Serdes Loopback ...
0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: .
12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: .
24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: .
Port Traffic: L2 Asic Loopback ...
0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: .
12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: .
24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: .
Port Traffic: L3 Asic Loopback ...
0: . 1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: .
12: . 13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: .
24: . 25: . 26: . 27: . 28: . 29: . 30: . 31: .
Switch Subsystem Memory ...
1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: .
13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: . 21: . 22: . 23: . 24: .
25: . 26: . 27: . 28: . 29: . 30: . 31: . 32: . 33: . 34: . 35: . 36: .
37: . 38: . 39: . 40: . 41: . 42: . 43: . 44: . 45: . 46: . 47: . 48: .
49: . 50: . 51: . 52: . 53: . 54: . 55: .
Front Panel 10/100/1000 Ports ...
1: . 2: . 3: . 4: . 5: . 6: . 7: . 8: . 9: . 10: . 11: . 12: .
Front Panel SFP Ports ...
13: . 14: . 15: . 16: . 17: . 18: . 19: . 20: .
Module 1 Passed
Exiting to ios...
Rommon reg: 0xE2000180
###################################
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9S-M), Version 12
.2(25)EWA6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 02-Jun-06 15:20 by ssearch
Image text-base: 0x10000000, data-base: 0x114ED458
Testing packet buffer memory:065536..done
All packet buffers passed.
cisco WS-C4503 (MPC8245) processor (revision 4) with 262144K bytes of memory.
Processor board ID FOX1044071Y
MPC8245 CPU at 267Mhz, Supervisor II+TS
Last reset from Reload
1 Virtual Ethernet interface
20 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.
Uncompressed configuration from 2900 bytes to 6220 bytes
Press RETURN to get started.
User Access Verification
Username: hyjk
Password: //不知道这个密码也可以在修改特权密码时一并修改。
WaiWang4503>en
Password: //此处已经为修改后的密码
WaiWang4503#sh run
Building configuration...
Current configuration : 6220 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service compress-config
service sequence-numbers
!
hostname WaiWang4503
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$FwKY$muXKdDiyLGeNQNP9vFy.61
!
username hyjk privilege 15 secret 5 $1$GbaL$aUf9ZUSpowztBH5btnoqP0
aaa new-model
aaa authentication login default local
!
aaa session-id common
clock timezone WST 8
qos dbl
qos map dscp 24 25 26 27 28 29 30 31 to tx-queue 4
qos map dscp 32 33 34 35 36 37 38 39 to tx-queue 4
qos map cos 3 to dscp 26
qos map cos 5 to dscp 46
qos
ip subnet-zero
no ip domain-lookup
ip dhcp excluded-address 192.168.1.1 192.168.1.20
ip dhcp excluded-address 192.168.1.250 192.168.1.254
!
ip dhcp pool vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp pool vlan3
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 192.168.1.10 202.99.160.68
!
ip dhcp snooping vlan 1
ip dhcp snooping
!
no file verify auto
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree uplinkfast
spanning-tree backbonefast
spanning-tree vlan 1-2 priority 24576
power redundancy-mode redundant
!
!
!
vlan internal allocation policy ascending
!
policy-map autoqos-voip-policy
class class-default
dbl
!
!
interface GigabitEthernet1/1
description bgl1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/2
description bgl2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/3
description bgl3
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/4
description bgl4
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/5
description bgl5
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/6
description ffwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/7
description dcwai
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/8
description FW-Router
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/9
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001a.6449.bf9f
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/10
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/11
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
service-policy output autoqos-voip-policy
qos trust cos
auto qos voip trust
tx-queue 3
bandwidth percent 33
priority high
shape percent 33
macro description cisco-switch
spanning-tree link-type point-to-point
!
interface GigabitEthernet1/12
switchport access vlan 2
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/13
!
interface GigabitEthernet1/14
!
interface GigabitEthernet1/15
!
interface GigabitEthernet1/16
!
interface GigabitEthernet1/17
!
interface GigabitEthernet1/18
!
interface GigabitEthernet1/19
!
interface GigabitEthernet1/20
!
interface Vlan1
ip address 192.168.1.8 255.255.255.0
!
interface Vlan2
ip address 192.168.2.254 255.255.255.0
shutdown
!
interface Vlan3
ip address 192.168.0.254 255.255.255.0
shutdown
!
ip route 0.0.0.0 0.0.0.0 192.168.1.254
ip http server
ip http authentication local
!
!
!
snmp-server community yingxinbl RO
!
radius-server source-ports 1645-1646
!
line con 0
password hyjknet
stopbits 1
line vty 0 4
password hyjknet
length 0
!
!
end
WaiWang4503#
//至此,4503交换机已经在没有修改配置的情况下重置了密码