#指定管理IP1
2
3
4
5system-view
interface vlan 1
ip add 192.168.1.2 24
#ip address 192.168.1.2 255.255.255.0
quit
#开启常用服务1
2
3http server enable
telnet server enable
stelnet server enable
#配置认证模式为aaa1
2
3
4
5
6
7
8
9
10user-interface vty 0 4
protocol inbound all
authentication-mode aaa
quit
user-interface con 0
authentication-mode aaa
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
#配置aaa帐户密码权限1
2
3
4
5
6
7
8aaa
local-user root password cipher sunday
local-user root privilege level 15
local-user root service-type terminal http telnet ssh
local-user admin password cipher sunday
local-user admin privilege level 15
local-user admin service-type terminal http telnet ssh
#ssh帐户认证类型1
2ssh user root authentication-type password
ssh user root service-type all
#lacp1
2
3
4
5
6
7
8
9
10
11
12
13system-view
interface eth-trunk10
mode lacp
lacp timeout fast
quit
interface gigabitethernet 0/0/1
eth-trunk 10
quit
interface gigabitethernet 0/0/2
eth-trunk 10
quit
接口限速
1 | interface gigabitethernet 0/0/3 |
#查看相关信息1
2
3
4display current-configuration #查看配置信息显示系统运行配置信息
dis int brief #查看接口
display this #查看接口配置
display transceiver interface XGigabi 0/0/2 verbose
vlan
1 | Vlan |