华为交换机开局配置

适用于华为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
  • 1
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值