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

推荐订阅源

WordPress大学
WordPress大学
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
月光博客
月光博客
V
Visual Studio Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
Recorded Future
Recorded Future
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
Hacker News: Ask HN
Hacker News: Ask HN
SecWiki News
SecWiki News
博客园 - Franky
Hacker News - Newest:
Hacker News - Newest: "LLM"
N
News | PayPal Newsroom
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cloudbric
Cloudbric
F
Full Disclosure
The Cloudflare Blog
Y
Y Combinator Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
S
Schneier on Security
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
AI
AI
N
News and Events Feed by Topic
T
Tor Project blog
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog

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