Catalyst 3524 switch IP 地址的配置
直接进入默认的VLAN 1中进行配置命令如下:
interface VLAN1
ip address 172.16.1.3 255.255.0.0
即可 。
在Catalyst 中控制对Telnet的访问
luestudy_a(config)#Access-list 2 permit 172.16.0.0 0.0.255.255 (定义标准的访问列表)
luestudy_a(config)#line vty 0 15(进入telnet端口,最多答应16个telnet的会话)
luestudy_a(config-line)#access-class 2 in(应用上述定义的访问列表,即只有172.16.0.0/16的网段可以实现对交换机的telnet会话
设置交换机的enable 密码
luestudy_a(config)#enable passWord bluestudy
luestudy_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口密码
luestudy_a(config)#line con 0
luestudy_a(config-line)#password bluestudy
luestudy_a(config-line)#
设置对telnet的密码:
luestudy_a(config)#line vty 0 15
luestudy_a(config-line)#login
luestudy_a(config-line)#password bluestudy
luestudy_a(config-line)#
设置登陆用户名和密码:
luestudy_a(config)#username bluestudy password bluestudy
luestudy_a(config)#
luestudy_a#show running
Current configuration:
!
version 12.0
o service pad
ervice timestamps debug uptime
ervice timestamps log uptime
o 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
o ip directed-broadcast
o ip route-cache
!
access-list 2 permit 172.16.0.0 0.0.255.255
!
line con 0
assword bluestudy
transport input none
topbits 1
line vty 0 4
access-class 2 in
assword bluestudy
login
line vty 5 15
access-class 2 in
assword bluestudy
login
!
end
luestudy_a#
- 曝iphone12系列搭载航空铝材机身:坚固 不怕掰弯
- 英伟达RTX3000系列显卡最新消息 安培显卡发布时间曝光
- iQOO手机成为宝马定制机曝光 iQOO5系列新机17日发布
- 三星note20系列国行什么时候发布 三星note20上市时间
- 红米3怎么样?红米3发售时间介绍
- vivos7有多少倍变焦
- iQOO 5系列将于8月17日发布 首款120W快充商用手机来袭
- 联想ThinkVision P系列旗舰显示器预售 支持USB-C一线连
- 荣耀30指纹识别在哪
- Vista系列技巧:Vista回收站使用技巧
