思科怎么设置交换机管理密码

如题。。望大神解答
2025-05-09 04:22:49
推荐回答(1个)
回答1:

hostname zwj //主机名

enable password 123456//超级密码

aaa new-model

aaa authentication login telnet local //定义一个名为telent的本地AAA认证

username zwj password 0 123456 //定义一个本地的用户用及密码

interface FastEthernet0/10

switchport access vlan 100

switchport mode access

!//10接口划分至vlan100,以下同理

interface FastEthernet0/11

switchport access vlan 200

switchport mode access

interface FastEthernet0/12

switchport access vlan 300

switchport mode access

interface FastEthernet0/13

switchport access vlan 400

switchport mode access

line con 0

login authentication telnet//con口通过上面定义本地的用户密码认证

line aux 0

line vty 0 4

login authentication telnet//vty口通过上面定义本地的用户密码认证