当前位置:文档之家› Cisco3550三层交换机配置与管理

Cisco3550三层交换机配置与管理

Cisco3550三层交换机配置与管理(实例)一、3550日常管理命令 (1)二、密码恢复 (1)三、VLAN配置 (4)四、SPAN监听配置 (12)五、DHCP服务配置 (13)1. 在3550上配置DHCP服务.. 132. C3550配置作为DHCP中继代理.. 15六、流量控制 (17)七、策略路由 (19)一、3550日常管理命令clear arp-cache清除ARP缓存arp 192.168.100.22 000a.eb22.c1b5 arpa 绑定MAC和IPsh ip accounting output-packets显示统计信息(当然需要配置统计功能如:ip accounting-transits 3200)通过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 系列的交换机比如 Catalyst2900/3500XL,2940,2950/2955和层 3 系列的比如 Catalyst 3550 的密码恢复.通过终端或带有仿真终端程序(比如 Hyper Terminal)的 PC,连接到交换机的 console 对于Catalyst 2900/3500XL 拔下交换机的电源线,然后按住交换机的 Mode 按钮,再重新插上交换机的电源线.直到端口 Port 1x 的 LED 熄灭之后释放 Mode 按钮.Catalyst2940/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 TESTVERSIONCompiled Fri 13Dec02 17:38 by madisonWSC2955T12 starting...Base ethernet MAC Address: 00:0b:be:b6:ee:00Xmodem file system is available.Initializing Flash...flashfs[0]: 19 files, 2 directoriesflashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 7741440flashfs[0]: Bytes used: 4510720 flashfs[0]: Bytes available: 3230720 flashfs[0]: flashfsfsck took 7 seconds....done initializing flash.Boot Sector Filesystem (bs installed, fsid: 3Parameter Block Filesystem (pb installed, fsid: 4/---接下来交换机会在 15 秒内自动启动,等出现该信息之后,按下 Ctrl+Break 键或Ctrl+C键----/The system has been interrupted prior to initializing the flash file system to finishloading the operating system software:flash_init load_helper bootswitch:接下来输入 flash_init 命令: switch: flash_init Initializing Flash...flashfs[0]: 143 files, 4 directoriesflashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 3612672flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fscktook 86 seconds....done Initializing Flash.Boot Sector Filesystem (bs installed, fsid: 3Parameter Block Filesystem (pb:) installed, fsid: 4switch:接着输入 load_helper 命令: switch: load_helper switch:再输入 dir flash:命令显示交换机的文件系统:switch: dir flash: Directory of flash:/2 rwx 1803357 <date> c3500xlc3h2smz.1205.WC7.bin4 rwx 1131 <date> config.text5 rwx 109 <date> info6 rwx 389 <date> env_vars7 drwx 640 <date> html18 rwx 109 <date> info.ver403968 bytes available (3208704 bytes used)switch:把配置文件重命名:switch: rename flash:config.text flash:config.old switch:输入 boot 命令启动交换机:switch: bootLoading"flash:c3500xlc3h2smz.1205.WC7.bin"...#####################################################File "flash:c3500xlc3h2smz.1205.WC7.bin" uncompressed and installed, entry po int: 0x3000executing...(略)不进入 setup 模式:System Configuration DialogAt any point you may enter a question mark '?' for help. Use ctrlc to abort configurationdialog at any prompt. Default settings are in square brackets '[]'.Continue with configuration dialog? [yes/no]: n进入特权模式,恢复原始的配置文件:Switch#rename flash:config.old flash:config.textDestination filename [config.text] Switch#把配置文件保存在内存里:Switch#copy flash:config.text system:runningconfigDestination filename [runningconfig]?1131 bytes copied in 0.760 secsSwitch# 进入全局配置模式,取消密码设置: Switch(config)#no enable secret 保存配置:Switch#write memoryBuilding configuration...[OK] Switch#三、 VLAN配置我们现在是一个具备三层交换功能的核心交换机接几台分支交换机(不具备三层交换能力)。

我们核心交换机名称为:cmlroot;分支交换机分别为:hrswitch、misswitch、salesswitch,分别通过port 1的光线模块与核心交换机相连;并且vlan名称分别为hrlan、mislan、saleslan……步骤如下:1、设置vtp domain(核心、分支交换机上都设置)2、配置中继(核心、分支交换机上都设置)3、创建vlan(在server上设置)4、将交换机端口划入vlan5、配置三层交换6、设置vtp domain。

vtp domain 称为管理域。

1、交换vtp更新信息的所有交换机必须配置为相同的管理域。

如果所有的交换机都以中继线相连,那么只要在核心交换机上设置一个管理域,网络上所有的交换机都加入该域,这样管理域里所有的交换机就能够了解彼此的vlan 列表。

cmlroot#vlan database 进入vlan配置模式cmlroot(vlan)#vtp domain cmlroot 设置vtp管理域名称 cmlroot cmlroot(vlan)#vtp server 设置交换机为服务器模式hrswitch#vlan database 进入vlan配置模式hrswitch(vlan)#vtp domain cmlroot 设置vtp管理域名称cmlroot hrswitch(vlan)#vtp client 设置交换机为客户端模式misswitch#vlan database 进入vlan配置模式misswitch(vlan)#vtp domain cmlroot 设置vtp管理域名称cmlroot misswitch(vlan)#vtp client 设置交换机为客户端模式salesswitch#vlan database 进入vlan配置模式salesswitch(vlan)#vtp domain cmlroot 设置vtp管理域名称cmlroot salesswitch(vlan)#vtp client 设置交换机为客户端模式注意:这里设置核心交换机为server模式是指允许在该交换机上创建、修改、删除vlan及其他一些对整个vtp域的配置参数,同步本vtp域中其他交换机传递来的最新的vlan信息;client模式是指本交换机不能创建、删除、修改vlan配置,也不能在nvram中存储vlan配置,但可同步由本vtp域中其他交换机传递来的vlan信息。

相关主题