当前位置: 首页 > news >正文

华为交换机基本配置

一、配置时间

sys
ntp-service unicast-server 192.168.1.1
ntp-service unicast-server 192.168.1.2
clock timezone UTC add 8
clock timezone CST add 08:00:00
undo ntp-service disable
q手动设置一个时间
clock datetime 13:43:00 2023-10-10save
ysys保存!保存!保存!更改NTP服务器
sys
undo ntp-service unicast-server 192.168.1.1
undo ntp-service unicast-server 192.168.1.2
ntp-service unicast-server 172.16.1.1
q
save
y保存!保存!保存!

二、重命名

sysname hahaha

三、配置VLAN

vlan batch 100 200 300
vlan 100                                  description fuwuqi
vlan 200description jiankong
vlan 300description guanliip route-static 0.0.0.0 0 192.168.100.1
interface Vlanif 300ip address 192.168.100.2 24保存!保存!保存!

四、配置SNMP

snmp-agent
snmp-agent sys-info version v2c v3
snmp-agent community read  tuantizi mib-view View_ALL acl 2000
snmp-agent protocol source-status all-interface
snmp-agent mib-view included View_ALL iso保存!保存!保存!

五、远程登录

dsa local-key-pair createuser-interface vty 0 4
authentication-mode aaa
protocol inbound all
quitaaa
local-user admin password irreversible-cipher mimamimamima
local-user admin privilege level 15
local-user admin service-type ssh http telnet
quitssh user admin authentication-type password
stelnet server enable
ssh server-source all-interface
y
ssh user admin service-type allquit
load-module weakea
install-module weakea.mod
systemundo ssh server hmac
undo ssh server cipher
undo ssh server publickey
undo ssh server key-exchangessh server port 10023
y
http server port 10024
y
telnet server port 10025
y
telnet server-source all-interface
y
http secure-server enable
y
http secure-server port 10026
y
http server-source all-interface
y保存!保存!保存!

六、批量端口配置

TRUNK配置
port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/22
port link-type trunk
port trunk allow-pass vlan all
qport-group group-member XGigabitEthernet 0/0/1 to XGigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
qport-group group-member GigabitEthernet 0/0/9 to GigabitEthernet 0/0/12
port link-type trunk
port trunk allow-pass vlan all
qACCESS配置
port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/8
port link-type access
port default vlan 100
poe enable
q保存!保存!保存!

七、ACL规则

ssh server acl 2000
telnet server acl 2000
http acl 2000
acl 2000rule permit source 192.168.100.0 0.0.0.255rule permit source 192.168.12.0 0.0.0.63rule permit source 192.168.6.33 0rule permit source 172.16.12.39 0rule permit source 172.16.12.101 0rule permit source 172.16.12.102 0rule permit source 172.16.12.103 0rule permit source 172.16.12.105 0rule permit source 172.16.12.63 0rule permit source 172.26.252.113 0rule 100 deny
q
q
save
y保存!保存!保存!

八、手工链路聚合LACP

核心-链路聚合-手工模式LACPinterface Eth-Trunk 12
mode lacp
trunkport GigabitEthernet 0/0/12
trunkport GigabitEthernet 1/0/12
port link-type trunk
port trunk allow-pass vlan all保存!保存!保存!汇聚-链路聚合-手工模式LACP
interface Eth-Trunk 1
mode lacp
trunkport XGigabitEthernet 0/0/3 to 0/0/4
port link-type trunk
port trunk allow-pass vlan all保存!保存!保存!

http://www.lryc.cn/news/256494.html

相关文章:

  • 每天一个Linux命令 -- (7)more命令
  • JUnit 之初体验
  • 【前端设计模式】之适配器模式
  • 【数据结构】循环队列
  • Docker的资源控制
  • SpringBoot 自动装配原理详解
  • 深度探索Linux操作系统 —— 构建initramfs
  • 使用cmake构建Qt6.6的qt quick项目,添加应用程序图标的方法
  • VUE宝典之vue-dialog使用
  • AWTK 串口屏开发(1) - Hello World
  • 鸿蒙Harmony开发初探
  • 【MySQL语言汇总[DQL,DDL,DCL,DML]以及使用python连接数据库进行其他操作】
  • 解决方案:Mac 安装 pip
  • 【恋上数据结构】前缀树 Tire 学习笔记
  • 2023五岳杯量子计算挑战赛数学建模思路+模型+代码+论文
  • Angular中的单向和双向数据绑定
  • 【Vue】vue整合element
  • HarmonyOS应用开发者高级认证考试答案
  • 6、Broker消息处理流程(六)
  • Clean 架构下的现代 Android 架构指南
  • 代码随想录算法训练营第四十六天| 139 单词拆分
  • IEEE期刊论文模板
  • 上位机与PLC:ModbusTCP通讯之数据类型转换
  • 界面控件DevExpress WPF导航组件,助力升级应用程序用户体验!(上)
  • 联合基于信息论的安全和隐蔽通信的框架
  • 行业地位失守,业绩持续失速,科沃斯的故事不好讲
  • 蓝桥杯:货物摆放--因数存到数组里的技巧--减少运算量的方法
  • 我的创作纪念日——一年
  • Windows server 部署iSCSI共享磁盘搭建故障转移群集
  • 2023年山东省职业院校技能大赛信息安全管理与评估二三阶段样题