学习网考试学习资料

Gzu521.com

思科3500系列交换机的基本配置命令

交换   点击:次   发布时间:2007-9-28   【字体: 】   来源:Gzu521.com
Gzu521.com我的学习网
catalyst 3524 switch ip 地址的配置
直接进入默认的vlan 1中进行配置命令如下:
interface vlan1
ip address 172.16.1.3 255.255.0.0
即可。
在catalyst 中控制对telnet的访问
bluestudy_a(config)#access-list 2 permit 172.16.0.0 0.0.255.255 (定义标准的访问列表)
bluestudy_a(config)#line vty 0 15(进入telnet端口,最多允许16个telnet的会话)
bluestudy_a(config-line)#access-class 2 in(应用上述定义的访问列表,即只有172.16.0.0/16的网段可以实现对交换机的telnet会话
设置交换机的enable 密码
bluestudy_a(config)#enable password bluestudy
bluestudy_a(config)#enable secret bluestudy
the enable secret you have chosen is the same as your enable password.
this is not recommended. re-enter the enable secret.
注:对于如上的密码,secret的优先级更高,优先起作用。
设置console口密码
bluestudy_a(config)#line con 0
bluestudy_a(config-line)#password bluestudy
bluestudy_a(config-line)#
设置对telnet的密码:
bluestudy_a(config)#line vty 0 15
bluestudy_a(config-line)#login
bluestudy_a(config-line)#password bluestudy
bluestudy_a(config-line)#
设置登陆用户名和密码:
bluestudy_a(config)#username bluestudy password bluestudy
bluestudy_a(config)#
bluestudy_a#show running
current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname bluestudy_a
!
enable secret 5 $1$b1mb$p6xgv/py9wqvjy9mrhzfg/
enable password bluestudy
!
username bluestudy password 0 bluestudy
!
ip subnet-zero
!
interface fastethernet0/1
!
interface fastethernet0/2
!
interface fastethernet0/3
!
interface fastethernet0/4
!
interface fastethernet0/5
!
interface fastethernet0/6
!
interface fastethernet0/24
!
interface gigabitethernet0/1
!
interface gigabitethernet0/2
!
interface vlan1
ip address 172.16.1.3 255.255.0.0
no ip directed-broadcast
no ip route-cache
!
access-list 2 permit 172.16.0.0 0.0.255.255
!
line con 0
password bluestudy
transport input none
stopbits 1
line vty 0 4
access-class 2 in
password bluestudy
login
line vty 5 15
access-class 2 in
password bluestudy
login
!
end
bluestudy_a#

责任编辑:gzu521

网络世界分类
局域网技术
路由
交换
网络方案
Web服务器
Mail服务器
Ftp服务器
流媒体服务器
网络安全
防火墙
黑客攻防
互联网应用
QQ专栏
分类推荐信息
更多...
大类最新文章
更多...