51CTO下载-cisco+2960+交换机+安装配置基础

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

cisco 2960 交换机安装配置基础

新设备配置内容:

1. interface vlan 1 的ip,gateway

conf t

int vlan 1

ip address xx.xx.xx.xx 255.255.255.0

ip default-gateway ip-address

no shutdown

exit

2.en的密码

3.line vty 0-4 telnet的密码

4.wr存盘

show interface vlan 1

show run

将F0/1-10端口加入到VLAN20中,对应以下命令

interface range f0/1 -10

switchport mode acccess

switchport access vlan 20

注意,f0/1后面有个空格,然后才是-10

cisco 2950 常用配置命令

产品相关命令

1、配置IP地址

交换机要能够被网管,必须给它标识一个管理IP地址,默认情况下CISCO交换机的VLAN 1为管理VLAN,为该VLAN配上IP 地址,交换机就可以被网管了。命令如下:

a、进入全局模式: Switch#configure terminal

b、进入VLAN 1接口模式:Switch(config)#interface vlan 1

c、配置管理IP地址:Switch(config-if) # ip address [A.B.C.D] [mask]

如果当前VLAN 不是管理VLAN ,只需要将上面第b处命令的vlan的号码换成管理VLAN的号码即可。

2、打开SNMP协议

a、进入全局模式: Switch#configure terminal

b、配置只读的Community,产品默认的只读Community名为public

Switch(config)#snmp-server community public ro

c、配置可写的Community,产品默认的可写Community名为private

Switch(config)#snmp-server community private rw

3、更改SNMP的Community密码

a、将设备分组,并使能支持的各种SNMP版本

Switch(config)#snmp-server group qycx123 v1

Switch(config)#snmp-server group qycx 123 v2c

Switch(config)#snmp-server group qycx123 v3 noauth

b、分别配置只读和可写community 如:

Switch(config)#snmp-server community qycx123 ro

Switch(config)#snmp-server community qycx123 rw

4、保存交换机配置

Switch#copy run start

常用命令

1、设置交换机密码

a、更改远程TELNNET密码

Switch#configure terminal

Switch(config)#line vty 0 4

Switch(config-line)#password qycx123

Switch(config-line)#login

Switch(config-line)#exit

b、更改进入全局配置模式时的密码

Switch#configure terminal

Switch(config)#enable secret qycx123

2、创建并划分VLAN

a、创建VLAN

Switch#vlan database

Switch(vlan)#vlan 99 name office

(创建vlan 99 并命名为office)

b、将端口划分至vlan

Switch(config)#interface fastEthernet 0/8

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 99

(将8号快速以太口划分至vlan 99)

3、常用调试命令

a、显示所有配置命令:Switch#show run

b、显示所有接口状态:Switch#show ip int brief

c、显示所有VLAN的信息:Switch#show vlan brief

Cisco之line vty线路使用

2007-12-08 13:11

Cisco的设备管理有很多种方式,如Console、HTTP、TTY、VTY或其它网管软件,但我们远程管理较为常用的一种方式肯定是VTY方式。

VTY在Cisco的不同系列产品中,都有一定数量的VTY线路可用,但具体数目则不尽相同。有些路由器交换机产品只有五条线路可用(line vty 0 4),有些交换机路由器设备则提供了十多条,甚至达一千多条,但默认情况下不一定全部启用。如果您想看一下自己的设备具体支持多少条线路,只需在全局模式下使用命令show line ; show line vty 0 ?即可查看该设备支持多少条线路。

VTY线路的启用/关闭:

VTY线路的启用只能按顺序进行,你不可能启用line vty 10,而不启用line vty 9。如果想启用line vty 9,那么你可以在全局模式(或line模式)下输入命令line vty 9 ,如:

相关文档
最新文档