S5735配置脚本
#配置设备名称
sysname S5537-Switch
poe交换机配置
vlan batch 2 50 60
vlan batch 97 120 130 200
vlan 50
name Wifi1
vlan 60
name Wifi2
vlan 97
name ACpvid
vlan 120
name Jiankong1
vlan 130
name Jiankong2
interface Vlanif 2
ip address 192.168.2.13 255.255.255.0
quit
#直接连接交换机的端口配置
interface rang GigabitEthernet0/0/23 to GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan all
quit
interface range GigabitEthernet 0/0/1 to GigabitEthernet 0/0/10
port link-type access
port default vlan 130
quit
interface range GigabitEthernet 0/0/11 to GigabitEthernet 0/0/22
port link-type trunk
port trunk pvid vlan 97
port trunk allow-pass vlan all
quit
#配置telnet
aaa
local-user admin service-type telnet terminal ssh
telnet server enable
telnet server-source all-interface
y
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
quit
#设置密码
aaa
[S55375-Jiankong01-aaa]local-user admin password
Please configure the login password (8-128)
It is recommended that the password consist of at least 2 types of characters, including lowercase letters, uppercase letters, numerals and special characters.
Please enter password:
Please confirm password:
#设置路由
ip route-static 0.0.0.0 0.0.0.0 192.168.2.1