H3C初始化基础配置(不含网络路由配置)

设备命名#

system-view
sysname TEST

配置管理地址#

interface LoopBack1
 description For-Management
 ip address 1.1.1.1 255.255.255.255

NTP和时区设置#

 clock timezone GMT add 08:00:00
 clock protocol ntp mdc 1

 ntp服务配置:
 ntp-service enable
 ntp-service source LoopBack1
 ntp-service unicast-server 2.2.2.2 priority

配置SysLog-ng日志,及syslog服务器#

 info-center loghost source LoopBack1
 info-center loghost 3.3.3.3
 info-center source default logbuffer level warning

配置上联互联地址#

reserve-vlan-interface 3000 to 3500  配置预留VLAN(端口要从交换口转路由口必须先设置这项)
interface HundredGigE 2/0/1
 port link-mode route
 description uT:******
 ip address 192.168.1.1 255.255.255.252

interface HundredGigE 3/0/1
 port link-mode route
 description uT:******
 ip address 192.168.2.1 255.255.255.252

配置Telnet Snmp ACL#

acl number 2577
 description This acl is used telnet
 rule 10 permit source 10.1.1.1 0  
 rule 3000 deny

acl number 2578
 description This acl is used SNMP
 rule 10 permit source 10.1.1.1 0  
 rule 3000 deny     

             
 SNMP代理设置:
 snmp-agent
 snmp-agent community read snmptest acl 2578
 snmp-agent sys-info version all
 snmp-agent target-host trap address udp-domain 3.3.3.3 params securityname snmptest v2c
 snmp-agent trap enable arp
 snmp-agent trap enable radius
 snmp-agent trap source LoopBack1 

 配置Telnet远程 #

 undo ip http enable  关闭WEB管理

 telnet server enable
 telnet server acl 2577


 local-user test class manage   配置test用户密码设置为:123456
 password hash 123456
 service-type telnet ssh
 authorization-attribute user-role level-15
 authorization-attribute user-role network-operator

=====其他版本======

local-user test  配置test用户密码设置为:*****
 password cipher *****
 authorization-attribute level 3
 service-type telnet

 user-interface vty 0 15    配置远程隧道
 acl 2577 inbound
 authentication-mode scheme
 user privilege level 3
 screen-length 50
 protocol inbound telnet

posted @   袁与张  阅读(1187)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示
主题色彩