Catalyst 3524 switch IP 地址的配置
直接進(jìn)入默認(rèn)的VLAN 1中進(jìn)行配置命令如下:
interface VLAN1
ip address 172.16.1.3 255.255.0.0
即可 。
在Catalyst 中控制對(duì)Telnet的訪問(wèn)
luestudy_a(config)#Access-list 2 permit 172.16.0.0 0.0.255.255 (定義標(biāo)準(zhǔn)的訪問(wèn)列表)
luestudy_a(config)#line vty 0 15(進(jìn)入telnet端口,最多答應(yīng)16個(gè)telnet的會(huì)話)
luestudy_a(config-line)#access-class 2 in(應(yīng)用上述定義的訪問(wèn)列表,即只有172.16.0.0/16的網(wǎng)段可以實(shí)現(xiàn)對(duì)交換機(jī)的telnet會(huì)話
設(shè)置交換機(jī)的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.
注:對(duì)于如上的密碼,secret的優(yōu)先級(jí)更高,優(yōu)先起作用 。
設(shè)置console口密碼
luestudy_a(config)#line con 0
luestudy_a(config-line)#password bluestudy
luestudy_a(config-line)#
設(shè)置對(duì)telnet的密碼:
luestudy_a(config)#line vty 0 15
luestudy_a(config-line)#login
luestudy_a(config-line)#password bluestudy
luestudy_a(config-line)#
設(shè)置登陸用戶名和密碼:
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#
推薦閱讀
- Cisco MDS 9000 系列交換陣列管理
- 榮耀20電池容量
- 思科Catalyst交換機(jī)密碼恢復(fù)妙招
- 如何恢復(fù)思科交換機(jī)密碼
- realme Q系列手機(jī)什么時(shí)候發(fā)布 realme Q新機(jī)發(fā)布時(shí)間
- 網(wǎng)絡(luò)協(xié)議大全之VTP、RGMP
- 榮耀9X系列銷(xiāo)售29天破300萬(wàn)臺(tái) 夜間拍照能力堪比夜視儀
- 安卓10.0系統(tǒng)發(fā)布時(shí)間敲定 正式版系統(tǒng)支持Pixel全系列
- 華為mate30系列屏幕或由三星供貨 非LG/京東方
- 如何評(píng)價(jià)游戲文明6
