Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2322884
  • 博文数量: 535
  • 博客积分: 8689
  • 博客等级: 中将
  • 技术积分: 7066
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-26 10:00
文章分类

全部博文(535)

文章存档

2024年(4)

2023年(4)

2022年(16)

2014年(90)

2013年(76)

2012年(125)

2011年(184)

2010年(37)

分类: 网络与安全

2023-10-22 10:37:00









































display ip pool name test conflict                 #### 查看名称为test的IP地址池中冲突地址的信息。
DIS  ip pool   name  bangongwang_IP_range  conflict
dis ip pool   interface  Vlanif401  used            ###显示DHCP 已经使用的IP






配置TELNET


sys
#telnet server-source -i Vlanif 498
telnet server-source  all-interface
y
y
telnet server enable


user-interface vty 0 4
protocol inbound telnet ssh stelnet http ftp
protocol inbound all
authentication-mode aaa 
quit
aaa
local-user admin123 password irreversible-cipher Yzkj12#$
local-user admin123 service-type telnet ssh ftp http  
local-user admin123 privilege level 15  
y
local-user admin123 privilege level 3 
y
y
authentication-scheme  password
authentication-mode password
authentication-mode local
set authentication password cipher Yzkj12#$
user privilege level 15  


ret
save
y
y






###检查LLDP邻居信息
dis lldp  neighbor   brief              




















先检查一下VLAN IF的接口
dis  ip int brief  


###通过STelnet登录设备
ret
install feature-software WEAKEA


system-view
ssh server cipher aes256_gcm aes128_gcm aes256_ctr aes192_ctr aes128_ctr aes256_cbc aes192_cbc aes128_cbc arcfour256 arcfour128 3des_cbc blowfish_cbc des_cbc sm4_cbc
ssh server hmac sha2_512 sha2_256_96 sha2_256 sha1 sha1_96 md5 md5_96 sm3
ssh server key-exchange dh_group_exchange_sha256 dh_group_exchange_sha1 dh_group14_sha1 dh_group1_sha1 ecdh_sha2_nistp256 ecdh_sha2_nistp384 ecdh_sha2_nistp521 sm2_kep dh_group16_sha512 curve25519_sha256
ssh server publickey dsa ecc rsa x509v3-ssh-rsa rsa_sha2_256 rsa_sha2_512
ssh server-source all-interface


 
sys
dsa local-key-pair create






sys
ssh server-source all-interface
y


telnet  server-source  all-interface 
y


ret
sav
y
y








dsa local-key-pair create
y
y
sys




##ssh server-source -i vlanif 498
ssh server-source  all-interface
y
y
stelnet server enable
ssh authentication-type default password    
ssh user adminssh    
ssh user adminssh service-type  stelnet
 ssh user adminssh authentication-type password   
 y
   
 aaa
 local-user adminssh privilege level 15
 y
 local-user adminssh password irreversible-cipher Yzkj12#$
 y
##  local-user adminssh password irreversible-cipher Abc.1234
  local-user adminssh privilege level 3
    local-user adminssh privilege level 15
  y
  local-user adminssh service-type ssh
 quit
 ssh user adminssh  
 ssh user adminssh  service-type stelnet
ssh user adminssh  authentication-type   password
 ssh server publickey rsa
 stelnet server enable
 
 ssh  authentication-type default  password 
 ssh  user adminssh
 ssh user adminssh service-type  stelnet
 ssh  client first-time enable
 ssh adminssh service-type stelnet 
 ssh  server-source enable
 undo  ssh user  adminssh  authentication-type
 ssh user adminssh  authentication-type password
 
 dsa local-key-pair create


 sys
 undo ssh server acl
 
ssh server publickey rsa dsa ecc


ecc peer-public-key key01 encoding-type pem    
public-key-code begin
B21315DD 859AD7E4 A6D0D9B8 121F23F0 006BB1BB 
public-key-code end 
peer-public-key end        
 ssh user adminssh assign ecc-key key01    
ecc local-key-pair create 


ret
save force 
y
y
save 
y
y
ret
save
y
y


dis  ip int brief  








sys
snmp-agent                                                                      
snmp-agent local-engineid 8857e4e92FF41EB543A0D15B        
y                        
snmp-agent community write cipher public123 mib-view view_all                    
snmp-agent sys-info version all                                                 
snmp-agent target-host trap address udp-domain 10.40.4.253 params securityname cipher public123                          
snmp-agent target-host trap address udp-domain 10.40.4.253 params securityname cipher public123 v2c
snmp-agent mib-view included view_all iso                                       
snmp-agent mib-view excluded allextisis experimental.37                         
snmp-agent mib-view included allextrmon iso                                     
snmp-agent mib-view excluded allextrmon rmon                                    
snmp-agent mib-view excluded 1.3.6.1.2.1.16 2                                   
snmp-agent trap source Vlanif298                                              
snmp-agent inform timeout 5                                                     
snmp-agent inform resend-times 6                                                
snmp-agent inform pending 7                                                     
snmp-agent trap enable                                                                                  
snmp-agent protocol source-interface -i Vlanif298
snmp-agent protocol source-status all-interface
snmp-agent protocol source-status all-interface 
ret
save
y











阅读(921) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~