以下脚本实现创建vlan2,3,IP划分,DHCP启用,接口划分,ssh,telnet,http,远程登录启用
- 默认用户创建admin/admin@123提示首次登录需要更改用户密码
sysname test-Hxvlan 2 description to test1
vlan 3description to test2interface Vlanif2description to test1ip address 192.168.2.1 255.255.255.0
dhcp select globalinterface Vlanif3description to test2ip address 192.168.3.1 255.255.255.0
dhcp select globalinterface GigabitEthernet0/0/2description to test1port link-type accessport default vlan 2interface GigabitEthernet0/0/3description to test2port link-type accessport default vlan 3ip pool vlan2gateway-list 192.168.2.1network 192.168.2.0 mask 255.255.255.0excluded-ip-address 192.168.2.200 192.168.2.254dns-list 8.8.4.4 8.8.8.8ip pool vlan3gateway-list 192.168.3.1network 192.168.3.0 mask 255.255.255.0excluded-ip-address 192.168.3.200 192.168.3.254dns-list 8.8.4.4 8.8.8.8# 远程登录,开启ssh ,开启telnet ,开启http登录
rsa local-key-pair create
2048aaa
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 httpssh user admin authentication-type password
ssh user admin service-type allstelnet server enableuser-interface vty 0 4authentication-mode aaauser privilege level 15protocol inbound allssh server-source all-interfacehttp server enable
http server-source all-interface
首次登录更改默认密码
进入s5735s 首页