华为交换机配置命令


[Quidway-Ethernet0/0/1]port def                              
[Quidway-Ethernet0/0/1]port ac                             
[Quidway-Ethernet0/0/1]port def                              
[Quidway-Ethernet0/0/1]port def                              
[Quidway-Ethernet0/0/1]port def                              
[Quidway-Ethernet0/0/1]port ?                            
  hybrid        Hybrid port                          
  link-type     Switch port link type                                    
  priority      Specify current port's priority                                              
  vlan-mapping  VLAN Mapping                           

[Quidway-Ethernet0/0/1]port l                            
[Quidway-Ethernet0/0/1]port link-ty                                 
[Quidway-Ethernet0/0/1]port link-type access                                           
[Quidway-Ethernet0/0/1]interface Ethernet 0/0/2                                              
[Quidway-Ethernet0/0/2]port link-type access                                           
[Quidway-Ethernet0/0/2]interface Ethernet 0/0/3                                              
[Quidway-Ethernet0/0/3]port link-type access                                           
[Quidway-Ethernet0/0/3]interface Ethernet 0/0/4                                              
[Quidway-Ethernet0/0/4]port link-type access                                           
[Quidway-Ethernet0/0/4]interface Ethernet 0/0/5                                              
[Quidway-Ethernet0/0/5]port link-type access                                           
[Quidway-Ethernet0/0/5]interface Ethernet 0/0/6                                              
[Quidway-Ethernet0/0/6]port link-type access                                           
[Quidway-Ethernet0/0/6]interface Ethernet 0/0/7                                              
[Quidway-Ethernet0/0/7]port link-type access                                           
[Quidway-Ethernet0/0/7]interface Ethernet 0/0/8                                              
[Quidway-Ethernet0/0/8]port link-type access                                           
[Quidway-Ethernet0/0/8]interface Ethernet 0/0/9                                              
[Quidway-Ethernet0/0/9]port link-type access                                           
[Quidway-Ethernet0/0/9]interface Ethernet 0/0/10                                               
[Quidway-Ethernet0/0/10]port link-type access                                            
[Quidway-Ethernet0/0/10]interface Ethernet 0/0/11                                                
[Quidway-Ethernet0/0/11]port link-type access                                            
[Quidway-Ethernet0/0/11]interface Ethernet 0/0/                                             
[Quidway-Ethernet0/0/12]port link-type access                                            
[Quidway-Ethernet0/0/12]interface Ethernet 0/0/13                                                
[Quidway-Ethernet0/0/13]port link-type access                                            
[Quidway-Ethernet0/0/13]interface Ethernet 0/0/14                                                
[Quidway-Ethernet0/0/14]port link-type access                                            
[Quidway-Ethernet0/0/14]interface Ethernet 0/0/15                                                
[Quidway-Ethernet0/0/15]port link-type access                                            
[Quidway-Ethernet0/0/15]interface Ethernet 0/0/16                                                
[Quidway-Ethernet0/0/16]port link-type access                                            
[Quidway-Ethernet0/0/16]interface Ethernet 0/0/17                                                
                        ^                        
Error: Unrecognized command found at '^' position.                                                 
[Quidway-Ethernet0/0/16]interface Ethernet 0/0/16                                                
[Quidway-Ethernet0/0/16]interface Ethernet 0/0/17                                                
                        ^                        
Error: Unrecognized command found at '^' position.                                                 
[Quidway-Ethernet0/0/16]quit                           
[Quidway]dis cu              
#
!Software Version V100R005C01SPC100                                  
 sysname Quidway               
#
 vlan batch 1033               
#
 cluster enable              
 ntdp enable           
 ntdp hop 16           
 ndp enable          
#
 bpdu enable           
#
 dhcp enable           
#
 undo http server enable                       
#
 drop illegal-mac alarm                      
#
aaa  
 authentication-scheme default                             
 authorization-scheme default                            
 accounting-scheme default                         
 domain default              
 domain default_admin                    
 local-user admin password simple admin                                      
 local-user admin service-type http                                  
#
interface Vlanif1                
 ip address dhcp-alloc                     
#
interface Ethernet0/0/1                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/2                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/3                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/4                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ether             
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/6                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/7                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/8                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/9                      
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/10                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/11                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/12                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/13                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/14                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/15                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/16                       
 port link-type access                     
 ntdp enable           
 ndp enable          
#
interface GigabitEthernet0/0/1                             
 ntdp enable           
 ndp enable          
#
interface GigabitEthernet0/0/2                             
 ntdp enable           
 ndp enable          
#
interface NULL0              
#
 snmp-agent          
 snmp-agent local-engineid 000007D                               
 snmp-agent sys-info version v3                              
#
user-interface con 0                   
 idle-timeout 0 0                
user-interface vty 0 4                     
#
return     
[Quidway] vlan 1033                  
[Quidway-vlan1033]port eth                         
[Quidway-vlan1033]port Ethernet 0/0/1 to 0/0/16                                              
[Quidway-vlan1033]int g 0/0/01                             
[Quidway-GigabitEthernet0/0/1]port link                                      
[Quidway-GigabitEthernet0/0/1]port link-type tr                                              
[Quidway-GigabitEthernet0/0/1]port link-type trunk                                                 
[Quidway-GigabitEthernet0/0/1]port tru                                     
[Quidway-GigabitEthernet0/0/1]port trunk per                                           
[Quidway-GigabitEthernet0/0/1]port trunk pervlan                                               
[Quidway-GigabitEthernet0/0/1]port trunk al                                          
[Quidway-GigabitEthernet0/0/1]port trunk allow-pass ?                                                    
  vlan  Virtual LAN                  

[Quidway-GigabitEthernet0/0/1]port trunk allow-pass vlan ?                                                         
  INTEGER<1-4094>  VLAN ID                         
  all              All                     

[Quidway-GigabitEthernet0/0/1]port trunk allow-pass vlan 1033                                                            
[Quidway-GigabitEthernet0/0/1]dis th                                   
#
interface GigabitEthernet0/0/1                             
 port link-type trunk                    
 port trunk allow-pass vlan 1033                               
 ntdp enable           
 ndp enable          
#
return     
[Quidway-GigabitEthernet0/0/1]des to-S6506                                         
[Quidway-GigabitEthernet0/0/1                          
[Quidway-GigabitEthernet0/0/1]auto ?                                   
  duplex  Configure duplex operation mode                                        
  speed   Configure port speed mode                                  

[Quidway-GigabitEthernet0/0/1]neg                                
[Quidway-GigabitEthernet0/0/1]negotiation ?                                          
  auto  auto negotiation                       

[Quidway-GigabitEthernet0/0/1]negotiation au                                           
[Quidway-GigabitEthernet0/0/1]negotiation auto ?                                               
  <cr>     

[Quidway-GigabitEthernet0/0/1]negotiation auto                                             
Warning: Configuration is repeated.                                  
[Quidway-GigabitEthernet0/0/1]dis th                                   
#
interface GigabitEthernet0/0/1                             
 description to-S6506                    
 port link-type trunk                    
 port trunk allow-pass vlan 1033                               
 ntdp enable           
 ndp enable          
#
return     
[Quidway-GigabitEthernet0/0/1]quit                                 
[Quidway]user            
[Quidway]user-y              
[Quidway]user-v              
[Quidway]user-u              
[Quidway]user-v              
[Quidway]user-?              
  user-bind                               user-interface                                                       

[Quidway]user-i              
[Quidway]user-interface vty 0/4                              
                            ^                            
Error: Wrong parameter found at '^' position.                                            
[Quidway]user-interface vty 0 4                              
[Quidway-ui-vty0-4]au                    
[Quidway-ui-vty0-4]auth                      
[Quidway-ui-vty0-4]authentication-mode ?                                       
  aaa       AAA authentica                        
  none      Login without checking                                 
  password  Authentication through the password of a user terminal interface                                                                           

[Quidway-ui-vty0-4]authentication-mode aaa                                         
[Quidway-ui-vty0-4]dis th                        
#
user-interface con 0                   
 idle-timeout 0 0                
user-interface vty 0 4                     
 authentication-mode aaa                       
#
return     
[Quidway-ui-vty0-4]quit                      
[Quidway]aaa           
[Quidway-aaa]local                 
[Quidway-aaa]local-user heiying ?                                
  access-limit   Set access limit of user(s)                                           
  ftp-directory  Set user(s) FTP directory permitted                                                   
  idle-timeout   Set the timeout period for terminal                                                    
  password       Set password                            
  privilege      Set admin user(s) level                                       
  service-type   Service types for authorized user(s)                                                    
  state          Activate/Block the user(s)                                          

[Quidway-aaa]local-user heiying p                                
[Quidway-aaa]local-user heiying passwordc                                        
[Quidway-aaa]local-user heiying password s                                         
[Quidway-aaa]local-user heiying password simple heiying ?                                                        
  access-limit   Set access limit of user(s)                                           
  ftp-directory  Set user(s) FTP directory permitted                                                   
  idle-timeout   Set the timeout period for terminal user(s)                                                           
  privilege      Set admin user(s) level                                       
  state          Activate/Block the user(s)                                          
  <cr>     

[Quidway-aaa]local-user heiying password simple heiying p                                                        
[Quidway-aaa]local-user heiying password simple heiying privilege ?                                                                  
  level  Set admin user(s) level                               

[Quidway-aaa]local-user heiying password simple heiying privilege l                                                                  
[Quidway-aaa]local-user heiying password simple heiying privilege level ?                                                                        
  INTEGER<0-15>  Level value                           

[Quidway-aaa]local-user heiying password simple heiying privilege level 15                                                                         
 info: A new user a                
[Quidway-aaa]local-user heiying ser                                  
[Quidway-aaa]local-user heiying service-type ?                                             
  8021x     802.1x user                      
  bind      Bind authentication user                                   
  ftp       FTP user                   
  http      Http user                    
  ppp       PPP user                   
  ssh       SSH user                   
  telnet    Telnet  user                       
  terminal  Teminal user                       
  web       Web authentication user                                  
  x25-pad   X25-pad user                       

[Quidway-aaa]local-user heiying service-type tel                                               
[Quidway-aaa]local-user heiying service-type telnet ?                                                    
  8021x     802.1x user                      
  bind      Bind authentication user                                   
  ftp       FTP              
  http      Http user                    
  ppp       PPP user                   
  ssh       SSH user                   
  terminal  Teminal user                       
  web       Web authentication user                                  
  x25-pad   X25-pad user                       
  <cr>     

[Quidway-aaa]local-user heiying service-type telnet                                                  
[Quidway-aaa]dis th                  
#
aaa  
 authentication-scheme default                             
 authorization-scheme default                            
 accounting-scheme default                         
 domain default              
 domain default_admin                    
 local-user admin password simple admin                                      
 local-user admin service-type http                                  
 local-user heiying password simple heiying                                          
 local-user heiying privilege level 15                                     
 local-user heiying service-type telnet                                      
#
return     
[Quidway-aaa]quit                
[Quidway]quit            
<Quidway>sy          
Enter system view, return user view with Ctrl+Z.                                               
[Quidway]int vlan 1033                     
[Quidway-Vlanif1033]ip add 60.173.14.62 255.255.255.224                                                      
[Quidway-Vlanif1033]dis th                         
#
interface Vlanif1033                   
 ip address 60.173.14.62 255.255.255.224                                       
#
return     
[Quidway-Vlanif1033]quit                       
[Quidway]ip rou              
[Quidway]ip route-static 0.0.0.0 0.0.0.0 60.173.14.33                                                    
[Quidway]dis cu              
#
!Software Version V100R005C01SPC100                                  
 sysname Quidway               
#
 vlan batch 1033               
#
 cluster enable              
 ntdp enable           
 ntdp hop 16           
 ndp enable          
#
 bpdu enable           
#
 dhcp enable           
#
 undo http server enable                       
#
 drop illegal-mac alarm                      
#
aaa  
 authentication-scheme default                             
 authorization-scheme default                            
 accounting-scheme default                         
 domain default              
 domain default_admin                    
 local-user admin password simple admin                                      
 local-user admin service-type http                                  
 local-user heiying password simple heiying                                          
 local-user heiying privilege level 15                                     
 local-user heiying service-type telnet                                      
#
interface Vlanif1                
 ip address dhcp-alloc                     
#
interface Vlanif1033                   
 ip address 60.173.14.62 255.255.255.224                                       
#
interface Ethernet0/0/1                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/2                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/3                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/4                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/5                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp ena      
#
interface Ethernet0/0/6                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/7                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/8                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/9                      
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/10                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/11                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/12                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/13                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/14                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/15                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface Ethernet0/0/16                       
 port link-type access                     
 port default vlan 1033                      
 ntdp enable           
 ndp enable          
#
interface GigabitEthernet0/0/1                             
 description to-S6506                    
 port link-type trunk                    
 port trunk allow-pass vlan 1033                               
 ntdp enable           
 ndp enable          
#
interface GigabitEthernet0/0/2                             
 ntdp enable           
 ndp enable
#
interface NULL0
#
 ip route-static 0.0.0.0 0.0.0.0 60.173.14.33
#
 snmp-agent
 snmp-agent local-engineid 000007DB7F0000010000385A
 snmp-agent sys-info version v3
#
user-interface con 0
 idle-timeout 0 0
user-interface vty 0 4
 authentication-mode aaa
#
return
[Quidway]    quit
<Quidway>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.
<Quidway>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM