华为S5735交换机配置脚本

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-aaalocal-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

相关推荐
anyup3 天前
来简单聊聊鸿蒙开发,万元奖金的事~
前端·华为·harmonyos
程序猿追10 天前
那个右下角的小数字怎么“卡”住我打字——我用 HarmonyOS 自己写了一个字数限制输入框
pytorch·华为·harmonyos
古德new10 天前
鸿蒙PC使用electron迁移:Joplin Electron 桌面适配全记录
华为·electron·harmonyos
世人万千丶10 天前
桌面便签小应用 - HarmonyOS ArkUI 开发实战-TextArea与Flex布局-PC版本
华为·harmonyos·鸿蒙·鸿蒙系统
慧海灵舟10 天前
AGenUI 鸿蒙端实战踩坑录:从 Column 布局消失到异步组件宽度为 0
华为·harmonyos
yuegu77710 天前
HarmonyOS应用<节气通>开发第33篇:状态管理实战
华为·harmonyos
YM52e10 天前
买菜计算器小应用 - HarmonyOS ArkUI 开发实战-PC版本
学习·华为·harmonyos·鸿蒙·鸿蒙系统
网络研究院10 天前
2026年网络安全
网络·安全·法律·法规·趋势·发展
阿捏利10 天前
系列总览-鸿蒙科普系列完全指南
华为·harmonyos
酣大智10 天前
ARP代理--工作原理
运维·网络·arp·arp代理