适用于华为AR,Switch等基础配置
测试用例:
型号:S5720S-52X-LI-AC
版本:V200R019C10SPC500
补丁:V200R019SPH029
一、任务
基本配置
时区
时间
系统名称
开启邻居表
开启dhcp
开启dhcp服务器检查
开启ssh
开启http
配置默认路由
配置snmp
配置管理员和权限
配置ssh用户和端口
配置ssh允许登录
批量配置电口
批量配置光口
创建vlan
配置vlanif接口
保存退出
二、配置示例
默认账号:admin
默认密码:admin@huawei.com
<huawei>
clock timezone beijing add 08:00
clock datetime 16:33:30 2021-07-30
sys
sysname itc01
lldp enable
dhcp enable
dhcp snooping enable
stelnet server enable
http server enable
http timeout 30
ip route-static 0.0.0.0 0.0.0.0 172.16.145.1
snmp-agent
snmp-agent sys-info version v2c
snmp-agent community complexity-check disable
snmp-agent community write itc
y
aaa
local-user itc password cipher itc@@@@sh privilege level 15
local-user itc service-type terminal ssh http
q
ssh user itc authentication-type password
ssh server port 12345
y
user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
q
port-group 1
group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/48
port link-type trunk
port trunk allow-pass vlan all
q
port-group 2
group-member XGigabitEthernet 0/0/1 to XGigabitEthernet 0/0/4
port link-type trunk
port trunk allow-pass vlan all
q
vlan 145
q
int vlan 145
description MGMT IP@2021.7.30
ip address 172.16.145.12 255.255.255.0
q
q
save
y