Configure the switch IP address of Catalyst 3524
Directly go to the default VLAN 1 and configure the command as follows:
Interface VLAN1
Ip address 172.16.1.3 255.255.255.0.0
You can.
Control Telnet access in Catalyst
Bluestudy_a (config) # access-list 2 permit 172.16.0.0 0.0.20.255 define the standard access list)
Bluestudy_a (config) # line vty 0 15 enters the telnet port, up to 16 telnet sessions are allowed)
Bluestudy_a (config-line) # access-class 2 in applies the access list defined above, that is, only the CIDR block of 172.16.0.0/16 can implement telnet sessions on the vswitch.
Set the enable password of the vswitch
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.
NOTE: For the above passwords, secret has a higher priority and takes effect first.
Set console port Password
Bluestudy_a (config) # line con 0
Bluestudy_a (config-line) # password bluestudy
Bluestudy_a (config-line )#
Set the password for telnet:
Bluestudy_a (config) # line vty 0 15
Bluestudy_a (config-line) # login
Bluestudy_a (config-line) # password bluestudy
Bluestudy_a (config-line )#
Set the login user name and password:
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.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 #