以下脚本实现创建vlan2,3,IP划分,DHCP启用,接口划分,ssh,telnet,http,远程登录启用
- 默认用户创建admin/admin@123提示首次登录需要更改用户密码
- S5735产品手册
- 更多功能配置,移步官网参考手册配置
sysname test-Hx
vlan 2
description to test1
vlan 3
description to test2
interface Vlanif2
description to test1
ip address 192.168.2.1 255.255.255.0
dhcp select global
interface Vlanif3
description to test2
ip address 192.168.3.1 255.255.255.0
dhcp select global
interface GigabitEthernet0/0/2
description to test1
port link-type access
port default vlan 2
interface GigabitEthernet0/0/3
description to test2
port link-type access
port default vlan 3
ip pool vlan2
gateway-list 192.168.2.1
network 192.168.2.0 mask 255.255.255.0
excluded-ip-address 192.168.2.200 192.168.2.254
dns-list 8.8.4.4 8.8.8.8
ip pool vlan3
gateway-list 192.168.3.1
network 192.168.3.0 mask 255.255.255.0
excluded-ip-address 192.168.3.200 192.168.3.254
dns-list 8.8.4.4 8.8.8.8
# 远程登录,开启ssh ,开启telnet ,开启http登录
rsa local-key-pair create
2048
aaa
local-user admin password irreversible-cipher admin@123
local-user admin privilege level 15
local-user admin ftp-directory flash:
local-user admin service-type telnet terminal ssh ftp x25-pad http
ssh user admin authentication-type password
ssh user admin service-type all
stelnet server enable
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
protocol inbound all
ssh server-source all-interface
http server enable
http server-source all-interface
首次登录更改默认密码
- 上述配置的密码是admin@123,用户是admin,首次登录系统强制更改密码
进入s5735s 首页