惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
C
Check Point Blog
V
V2EX
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
A
About on SuperTechFans
D
DataBreaches.Net
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
博客园_首页
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

zplb

我发明了窝窝头文!(自然语言) - zplb Setting Up a Minimal Public TinyProxy with Basic Authentication on CentOS I Built a Web Server That Runs Python and PHP in the Same Page How to Host a .onion Site on Your Own Computer (No VPS Required) Converting IPA to Speech Using Python
Huawei Switch CLI Cheat Sheet
2024-05-11 · via zplb

A quick reference for commonly used commands when working with Huawei switches.


Entering Different Modes

Huawei devices use a hierarchical CLI. You typically move between:

  • User view
  • System view
  • Interface view
system-view        # Enter system view
interface          # Enter interface view
quit               # Go back one level
return             # Return to user view directly

Basic System Information

display version                 # System version, model, uptime
display current-configuration   # Current configuration

Basic Configuration

sysname <name>   # Set device name
save             # Save configuration
reboot           # Reboot device
reset saved-configuration  # Factory reset

Interface Control

interface GigabitEthernet0/0/1

shutdown        # Disable interface
undo shutdown   # Enable interface

Console Access Configuration

user-interface console 0
authentication-mode password
set authentication password cipher <password>

Optional:

idle-timeout 1440   # Auto logout after 1440 minutes

Remote Access (VTY / Telnet)

user-interface vty 0 4
set authentication password cipher <password>
user privilege level 3

VLAN Interface Configuration

interface vlanif 1
ip address 192.168.1.251 24

Example: Basic Interface Setup

system-view

sysname ar1

interface g0/0/1
ip address 192.168.1.254 24
quit

interface g0/0/2
ip address 192.168.2.254 24

Routing Table

display ip routing-table

Shows directly connected routes and routing entries.


Notes

  • Commands may vary slightly depending on device model and firmware
  • Always save your configuration to avoid losing changes after reboot