首页 运维 网络学院 查看内容

Catalyst 3500的基本配置命令

2005-8-11 10:50 646 0

摘要: 对于Cisco的交换机和路由器来讲,虽然其不同型号的交换机的实现命令上有着很多的相似之处,但是,不同的交换机命令格式的差异却为网络设备的配置带来了一定的不便,因此,本人根据手头的交换机,进行一些基本操...
关键词: bluestudy config interface FastEthernet password 交换机 enable line bluestudybluestu 密码

对于Cisco的交换机和路由器来讲,虽然其不同型号的交换机的实现命令上有着很多的相似之处,但是,不同的交换机命令格式的差异却为网络设备的配置带来了一定的不便,因此,本人根据手头的交换机,进行一些基本操作的命令介绍,同时也有具体的配置实例。希望对网友的实际工作和学习有所帮助。同时也很希望有机会与各位网友一起交流探讨! Catalyst 3524 switch IP 地址的配置直接进入默认的VLAN 1中进行配置命令如下:interface VLAN1ip 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 bluestudybluestudy_a(config)#enable secret bluestudyThe 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 0bluestudy_a(config-line)#password bluestudybluestudy_a(config-line)# 设置对telnet的密码:bluestudy_a(config)#line vty 0 15bluestudy_a(config-line)#loginbluestudy_a(config-line)#password bluestudybluestudy_a(config-line)# 设置登陆用户名和密码: bluestudy_a(config)#username bluestudy password bluestudybluestudy_a(config)# bluestudy_a#show running Current configuration:!version 12.0no service padservice timestamps debug uptimeservice timestamps log uptimeno 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 VLAN1ip address 172.16.1.3 255.255.0.0no ip directed-broadcastno ip route-cache!access-list 2 permit 172.16.0.0 0.0.255.255!line con 0password bluestudytransport input nonestopbits 1line vty 0 4access-class 2 inpassword bluestudyloginline vty 5 15access-class 2 inpassword bluestudylogin!endbluestudy_a#
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部