- 积分
- 25
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2014-12-15
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 听众
- 收听
网络小学徒
|
三层交换机配置与管理 一、 曰常管理命令
二、 密码恢复
三、 VLAN配置
四、 SPAN监听配置
五、 DHCP服务配置
1. 在上配置DHCP服务
2. 配置作为DHCP中继代理 六、 流量控制
七、 策略路由
一、 曰常管理命令
l clear arp-cache清除ARP缓存
l arp 192.168.100.22 000a.eb22.c1b5 arpa 绑定MAC和IP
l sh ip accounting output-packets显示统计信息(当然需要配置统计功能如:ip accounting-transits 3200)
l 通过IP追查交换机端口:CiscoWorks 2000 LMS网管软件的User tracking可以追查一个IP地址对应的端口。sh mac-address-table address 00e0.9102.afd0 显示这个MAC地址在哪个接口出来的;sh mac-address-table interface Fa0/20显示20端口上的MAC地址,如果只有一个,则可能连接一个电脑,如果有很多个条目,则可以连接一个交换机。sh cdp entry *显示邻居信息;
二、 密码恢复
下面步骤也适用于 Cisco 层 2 系列的交换机比如 Catalyst 2900/3500XL,2940,2950/2955和层 3 系列的比如 Catalyst 3550 的密码恢复.
通过终端或带有仿真终端程序(比如 Hyper Terminal)的 PC,连接到交换机的 console 对于Catalyst 2900/3500XL 拔下交换机的电源线,然后按住交换机的 Mode 按钮,再重新插上交换机的电源线.直到端口 Port 1x 的 LED 熄灭之后释放 Mode 按钮.Catalyst 2940/2950L 拔下交换机的电源线,然后按住交换机的 Mode 按钮,再重新插上交换机的电源线.直到 STAT 的 LED 熄灭之后释放 Mode 按
钮. Catalyst 2955 对于 2955 交换机,它没有外部的 Mode 按钮,因此就不能使用之前的那种方法来进行密码恢 复.在交换机启动时,对于 Windows 系列的 PC,按下 Ctrl+Break 键;对于 UNIX 系列的工 作站,按下 Ctrl+C.如下:
C2955 Boot Loader (C2955HBOOTM) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST
VERSION
Compiled Fri 13Dec02 17:38 by madison
WSC2955T12 starting...
Base ethernet MAC Address: 00:0b:be:b6:ee:00
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 19 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4510720 flashfs[0]: Bytes available: 3230720 flashfs[0]: flashfs
fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
/---接下来交换机会在 15 秒内自动启动,等出现该信息之后,按下 Ctrl+Break 键或 Ctrl+C
键----/
The system has been interrupted prior to initializing the flash file system to finish
loading the operating system software:
flash_init load_helper bootswitch:
接下来输入 flash_init 命令: switch: flash_init Initializing Flash...
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fsck
took 86 seconds
....done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:
接着输入 load_helper 命令: switch: load_helper switch:
再输入 dir flash:命令显示交换机的文件系统:
switch: dir flash: Directory of flash:/
2 rwx 1803357 <date> c3500xlc3h2smz.1205.WC7.bin
4 rwx 1131 <date> config.text
5 rwx 109 <date> info
6 rwx 389 <date> env_vars
7 drwx 640 <date> html
18 rwx 109 <date> info.ver
403968 bytes available (3208704 bytes used)
switch:
把配置文件重命名:
switch: rename flash:config.text flash:config.old switch:
输入 boot 命令启动交换机:
switch: boot
Loading
"flash:c3500xlc3h2smz.1205.WC7.bin"...####################
###########
######################
File "flash:c3500xlc3h2smz.1205.WC7.bin" uncompressed and installed, entry po
int: 0x3000
executing...
(略)
不进入 setup 模式:
System Configuration Dialog
At any point you may enter a question mark '?' for help. Use ctrlc to abort configuration
dialog at any prompt. Default settings are in square brackets '[]'.
Continue with configuration dialog? [yes/no]: n
进入特权模式,恢复原始的配置文件:
Switch#rename flash:config.old flash:config.text
Destination filename [config.text] Switch#
把配置文件保存在内存里:
Switch#copy flash:config.text system:runningconfig
Destination filename [runningconfig]?
1131 bytes copied in 0.760 secs
Switch# 进入全局配置模式,取消密码设置: Switch(config)#no enable secret 保存配置:
Switch#write memory
Building configuration...
[OK] Switch#
|
|