华为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-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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值