首页 > 其他分享 >华为交换机连接esight日志

华为交换机连接esight日志

时间:2023-07-26 15:25:43浏览次数:27  
标签:profile default port authentication 交换机 user interface esight 日志

主要是配置ip到交换机终端

 

改vlan,接入口为汇聚核心到本交换机,vlan101,电脑口为vlan101。主要是接线。
改网关 ,为172.16.0.1 , ?
改静态路由 0.0.0.0 0.0.0.0 172.16.0.1

配置vlanif,

 

 

 

 

[caiwu-s5735]display current-configuration 
!Software Version V200R021C00SPC600
#
sysname caiwu-s5735
#
dns resolve
dns server 202.102.152.3
dns server 202.102.154.3
#
vlan batch 101
#
authentication-profile name default_authen_profile
authentication-profile name dot1x_authen_profile
authentication-profile name dot1xmac_authen_profile
authentication-profile name mac_authen_profile
authentication-profile name multi_authen_profile
authentication-profile name portal_authen_profile
#
telnet server enable
telnet server-source -i Vlanif101
#
http server-source -i Vlanif101
#
radius-server template default
#
pki realm default                         
 certificate-check none
#
free-rule-template name default_free_rule
#
portal-access-profile name portal_access_profile
#
aaa
 authentication-scheme default
  authentication-mode local
 authentication-scheme radius
  authentication-mode radius
 authorization-scheme default
  authorization-mode local
 accounting-scheme default
  accounting-mode none
 local-aaa-user password policy administrator
  password history record number 0
  password expire 0
 domain default
  authentication-scheme radius
  accounting-scheme default
  radius-server default
 domain default_admin
  authentication-scheme default           
  accounting-scheme default
 local-user root password irreversible-cipher $1c$*G7xG\-o*2$6Kit@;nL@>h[Am8:8R;&d%\|X,konBpRo7F#C3hE$
 local-user root privilege level 3
 local-user root ftp-directory flash:
 local-user root service-type telnet terminal ssh ftp x25-pad http
 local-user admin password irreversible-cipher $1c$kOC(G6l2'O$`rx@Nx!U^,@8x"JA:v#LTM3F+5\:f;DOvR"cqN%2$
 local-user admin privilege level 13
 local-user admin service-type http
 local-user test1 privilege level 2
#
interface Vlanif101
 ip address 172.16.0.253 255.255.255.0
#
interface GigabitEthernet0/0/1
 port default vlan 101
#
interface GigabitEthernet0/0/2
 port default vlan 101
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 101
 loopback-detect enable
 port description desktop                 
 undo trust 8021p
#
interface GigabitEthernet0/0/4
 port link-type access
 port default vlan 101
 loopback-detect enable
 port description desktop
 undo trust 8021p
#
interface GigabitEthernet0/0/5
 port link-type access
 port default vlan 101
 loopback-detect enable
 port description desktop
 undo trust 8021p
#
interface GigabitEthernet0/0/6
 port link-type access
 port default vlan 101
 loopback-detect enable
 port description desktop
 undo trust 8021p
#
interface GigabitEthernet0/0/7            
 port link-type access
 port default vlan 101
 loopback-detect enable
 port description desktop
 undo trust 8021p
#
interface GigabitEthernet0/0/8
 port link-type access
 port default vlan 101
 loopback-detect enable
 port description desktop
 undo trust 8021p
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface NULL0
#
undo icmp name timestamp-request receive  
#
ip route-static 0.0.0.0 0.0.0.0 172.16.0.1
#
snmp-agent
snmp-agent local-engineid 8000DDED033CC78621AB92
snmp-agent community write cipher %^%#VoDR=2E,%LL0&sA{s8]"MNp|5SH4wI$Xyt4`*Z:#jMR}9]>]O:LgKwOTV*kF$H_p@vK-V!h|MTXqp2Q9%^%#
snmp-agent sys-info version v2c v3
snmp-agent group v3 tralin noauthentication write-view ViewDefault notify-view ViewDefault
snmp-agent usm-user v3 ctquanlin
snmp-agent usm-user v3 ctquanlin group tralin
snmp-agent usm-user v3 ctquanlin authentication-mode md5 cipher %^%#`btr6)'rlD!qu*F@(/uS,ie{'P^[a!+]c\>'vD+E%^%#
snmp-agent usm-user v3 ctquanlin privacy-mode aes256 cipher %^%#(qwVL&s`<T\n9RJ-&[%J4j8!WF8*S#m_x/:p1AND%^%#
snmp-agent extend error-code enable
snmp-agent protocol source-status all-interface
undo snmp-agent protocol source-status ipv6 all-interface
#
stelnet server enable
ssh user root
ssh user root authentication-type password
ssh user root service-type all
ssh server-source -i Vlanif101
ssh server cipher aes256_ctr aes128_ctr
ssh server hmac sha2_256
ssh server key-exchange dh_group16_sha512 dh_group15_sha512 dh_group14_sha256 dh_group_exchange_sha256
ssh client cipher aes256_ctr aes128_ctr
ssh client hmac sha2_256
ssh client key-exchange dh_group16_sha512 dh_group15_sha512 dh_group14_sha256 dh_group_exchange_sha256
ssh server dh-exchange min-len 2048
ssh server publickey rsa_sha2_512 rsa_sha2_256
#
user-interface con 0
 authentication-mode password
 set authentication password cipher $1a$E<>dP~McZK$p,Y}"f[J[(;G_TW>#H3<2/sOC[=5f1H|654|{<qJ$
user-interface vty 0 4
 authentication-mode aaa
 protocol inbound all
user-interface vty 16 20
#
dot1x-access-profile name dot1x_access_profile
#
mac-access-profile name mac_access_profile
#
ops
#
smi-server
#
return
[caiwu-s5735]                   

 

 

标签:profile,default,port,authentication,交换机,user,interface,esight,日志
From: https://www.cnblogs.com/sdgtxuyong/p/17582539.html

相关文章

  • 好烦呀为什么rocketmq监听打印的日志没有traceId啊
    在使用springboot整合rocketmq使用方便使用注解即可实现消费,十分简洁。随之而来的是问题怎么追踪,一个链路的日志能看到是多么美好的事情。搜寻很久没有找到解决方案,于是自己搞吧!大前提:已经在使用spring-cloud-starter-sleuth,日志格式已经含有traceId、spanId好的,那么我们来看看......
  • docker 获取某个时间段的日志
    dockerlogs--since='2023-07-26T01:50:00'--until='2023-07-26T03:00:00'abbccdd  >aaaa0726.log2>&1TRANSLATEwithxEnglishArabicHebrewPolishBulgarianHindiPortugueseCatalanHmongDawRomanianChin......
  • python logurur日志用法记录
    importsysfromloguruimportloggerlogger.configure(handlers=[{"sink":sys.stderr,"format":"{time:YYYY-MM-DDHH:mm:ss.SSS}|<lvl>{level:8}</>|{name}:{module}:{line:4}|<cyan>mymodu......
  • 通过python读取authing IAM中的admin、user审计日志
     方式:通过python-logstash库,将读取的日志传给logstash的udpinput地址。 logstashconfig:input{udp{port=>5959codec=>json}}filter{json{source=>"message"target=>"parsed_data"}mutate{......
  • python的日志模块
    如何实现Python的日志模块作为一名经验丰富的开发者,我很高兴能够教会你如何实现Python的日志模块。在软件开发过程中,日志是非常重要的,它可以记录程序的运行状态、错误信息以及其他有用的调试信息。通过使用Python的日志模块,我们可以更好地管理和控制程序的日志输出。下面是整个实......
  • MySQL日志文件简记
    日志文件binlogbinlog主要记录了MySQL数据库执行了更改的所有操作,主要用来做主从复制,数据恢复记录模式:Statement模式:每一条回修改数据的sql都会被记录在日志中Row模式:每一行具体变更是俺都会被记录在binlog中混合模式刷盘时机选择0:由系统自行判断何时刷盘1:每次提交事务......
  • MySQL 日志机制
    日志机制:错误日志:当数据库无法正常启动时第一个定位错误日志数据库速度慢时也可以定位错误日志得到建议(如增大缓存池增大redologbuffer等)查询日志:没啥用就是记录查询而已应该是为了对应binlog记录修改的日志慢查询日志:捕获查询慢的情况配置:可以设置每分钟最多有......
  • Mysql开启慢查询日志
    查看mysql的慢查询日志是否开启showvariableslike'%query%';  可以看到slow_query_log的值是OFF,mysql默认是不启用慢查询日志的。这里还有个long_query_time,默认是10秒,也就是超过了10秒即为慢查询。log_queries_not_using_indexes,如果设置为ON,则会将所有没有使用索引的查......
  • .NET项目重构之日志服务(Serilog)
    1.目录1.目录2.前言2.1.日志控件的选择3.日志配置3.1.控制台打印3.2.文件打印4.结语2.前言定时任务中比较重要的一个环节就是日志记录,有了日志可以记录系统的操作过程,也可以在系统异常时方便排查错误原因。比如定时任务经常要做的一个事情,同步其它异构......
  • 基于 Databend 实现的海量日志实时查询服务 | 多点DMALL
    作者:苏琳多点DMALL供应链补货团队负责人多点DMALL成立于2015年。从创立伊始,就致力于以大数据、云计算、AI等数字技术改变零售业,是一站式全渠道数字零售解决方案服务商,数字化解构重构零售产业,提供端到端的商业SaaS解决方案。多点DMALL通过DMALLOS提供零售云一站式......