博文
Cisco交换机命令清单(2006-10-23 23:09:00)
摘要:Cisco交换机命令清单
2006.3.5
设置主机名:
switch(config)# hostname hostname
设置登录口令
switch(config)# enable password/secret password
配置交换机IP地址
1900(config)#ip address {ip_address} {mask}
2950(config)#interface vlan num
2950(config-if)#ip address {ip_address} {mask}
配置交换机缺省网关
1900(config)# ip default-gateway {ip address}
2950(config)# ip default-gateway {ip address}
设置端口速度:
switch(config-if)# speed {10|100|auto}
端口描述
switch(config-if)# description description-string
显示交换机IP地址
1900#show ip
2950#show interface vlan n
设置以太网的链路模式
1900(config)#interface type-module/port
1900(config-if)#duplex {auto|full|full-flow-control|half}
2950(config)#interface &n......
Cisco2620路由器的基本配置 (2006-10-23 23:08:00)
摘要:Cisco2620路由器的基本配置
1. 初始安装
第一次安装时系统会自动进入Dialog Setup,依屏幕提示,分别回答路由器名称、加密超级登录密码、超级登录密码、远程登录密码、动态路由协议以及各个接口的配置后,保存配置。在出现路由器名称后,打入enable命令,键入超级登录密码,出现路由器名称(这里假设路由器名称为Cisco2620),待出现Cisco2620#提示符后,表示已经进入特权模式,此时就可以进行路由器的配置了。
2. 配置路由器
键入config terminal,出现提示符Cisco2620(config)#,进入配置模式。
(1) 设置密码
Cisco2620(config)#enable secret 123123:设置特权模式密码为123123
Cisco2620(config)#line console 0: 进入Console口配置模式
Cisco2620(config-line)#password 123123:设置Console口密码为123123
Cisco2620(config-line)#login:使console口配置生效
Cisco2620(config-line)#line vty 0 5:切换至远程登录口
Cisco2620(config-line)#password 123123:设置远程登录密码为123123
Cisco2620(config-line)#login:使配置生效
(2) 设置快速以太网口
Cisco2620(config)#interface fastFastethernet 0/0:进入端口配置模式
Cisco2620(config-if)#ip address 192.168.1.6 255.255.255.0:设置IP地址及掩码
Cisco2620(config-if)#no shutdown: 开启端口
Cisco2620(config-if)#exit:从端口配置模式中退出
(3) 设置同步串口
......
Cisco 1900交换机配置VLAN一例(2)(2006-10-23 23:07:00)
摘要:Cisco 1900交换机配置VLAN一例(2)
(5) 通过telnet 172.18.1.111进入Cisco 4500路由器,进入增强(en)模式。用sh run可查询以下需要输入的命令,共五行:
nterface FastEthernet0.199
encapsulation isl 199
ip address 172.18.199.1 255.255.255.0
no ip redirects
arp timeout 0
再用Conf t 命令(并通过在命令行中粘贴复制的办法)粘贴以上的五条命令,只是其中的199需改为要加入的新的Vlan(如改为208)。Ctrl+Z退出,最后用Write写入。
(6)通过telnet 172.18.1.115进入Cisco 5000中心交换机,进入增强(en)模式,由sh port 可显示端口信息,sh conf可显示端口的设置信息,键入命令set trunk 5/5 on 1-1000,将该端口设为trunk,以便与cisco 1900交换机相连。输入命令:set vlan 208 name vlan208 type ethernet mtu 1500 said 100208 state active。
(7)从网上一台电脑进入cisco 1900交换机,telnet 172.18.1.188,进行交换机端口的vlan设置(如将第8个端口对应vlan 172.18.208.x)。从cisco 1900系统cataly......
Cisco 1900交换机配置VLAN一例(1)(2006-10-23 23:06:00)
摘要:Cisco 1900交换机配置VLAN一例(1)
我所的所内网上配备有Cisco 4500路由器、Cisco 5000中心交换机、另外还有Cisco 3200交换机、Cisco 3000交换机、以及若干Cisco 1900交换机等。有一次,为使行政楼等地的网络结点增加安全性,加入了一台24口Cisco 1900交换机,并将该交换机端口设置若干Vlan,如设置给各单位的Vlan为:201(仪器仪表室)、204(凌久公司)、208(华瑞达)、211(培训中心)、215(三产办)、217(七星公司)、219(档案室)、条保和医务室(221)等。
下面介绍设置的过程(说明:为安全起见,数据设置中交换机和路由器的IP地址是虚拟的,并非真实):
1. 设置新加入的Cisco 1900交换机:
(1)用一根Console线将电脑与Cisco 1900交换机的Console口连接,进入电脑的“超级终端”,新建连接,任取一连接名称,填写国家代码、区号、电话号码等,并选择连接方式(如选择“直接连接到串口1”),选波特率9600,回车后,如果没有密码,就直接进入了交换机操作系统的主菜单,交换机的出厂状态是没有密码的。
(2)从主菜单进入Console Settings,选择Modify password,为了安全,立即设置口令是有必要的,而且设置口令后,将来可以远程操作该交换机,而再也不必在交换机房通过Console口来管理。
(3)从主菜单进入Network Management,选择Ip Configuration,设置交换机的有关数据如下:
[ I ] IP address 172.18.1.188
[ S ] Subnet mask&nbs......