栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

【华三交换机开局基础配置】

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【华三交换机开局基础配置】

【华三交换机开局基础配置】
  • 开局主要配置
    • 设备命名
    • 配置管理地址
    • 配置远程登录
    • 配置时区NTP
    • 配置SNMP
    • 配置syslog

开局主要配置 设备命名
system-view
sysname xxxxxxx
配置管理地址
ip vpn-instance MGMT     //创建vpn实例,实现管理和业务流量隔离
  route-distinguisher 1:1
  description For_Manage
#
interface M-GigabitEthernet 0/0/0
  ip binding vpn-instance MGMT    //绑定vpn实例
  description For_Manage
  ip address 1.1.1.1 255.255.255.0
#
//配置管理路由
ip route-static vpn-instance MGMT 0.0.0.0 0 1.1.1.254 description For_Manage_Gateway
配置远程登录
acl basic 2001         //配置SSH访问控制
  description For_SSH
  rule 10 permit vpn-instance MGMT source 1.1.1.0 0.0.0.255    //管理网配置了vpn实例
  rule 1000 deny vpn-instance MGMT
#
//配置用户名密码
local-user h3c class manage
  password-control length X   //密码长度4-32字符
  password simple XXXXX
  service-type ssh terminal
  authorization-attribute user-role level-15   //权限
  authorization-attribute user-role network-admin
  authorization-attribute user-role network-operator
  authorization-attribute idle-cut 10   //超时时间
//关闭telnet,开启ssh,绑定acl
undo telnet server enable 
ssh server enable
ssh server acl 2001
line vty 0 63
  authentication-mode scheme
  user-role level-15
  user-role network-admin
  user-role network-operator
  protocol inbound ssh
  idle-timeout 10 0
#
//配置console口密码
line aux 0
  authentication-mode password
  set authentication password simple XXX
  idle-timeout 10 0
#
配置时区NTP
clock timezone China add 08:00:00  //东八区
ntp-service enable
ntp-service source M-GigabitEthernet 0/0/0   //指定源接口
ntp-service unicast-server XXXX vpn-instance MGMT priority
配置SNMP
 snmp-agent
 snmp-agent community read XXXX         //团体名
 snmp-agent sys-info version v2c        //版本
 snmp-agent target-host trap address udp-domain XXXX vpn-instance MGMT params securityname 团体名 v2c
 snmp-agent trap enable
 snmp-agent trap source M-GigabitEthernet0/0/0
配置syslog
info-center enable
info-center logbuffer size 1024
info-center loghost vpn-instance MGMT XXXX
info-center loghost source M-GigabitEthernet0/0/0
info-center source default loghost level warning    //告警级别
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/890958.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号