史上最全华为路由器交换机配置命令大合集(辛苦整理).doc
华为路由器交换机配置命令大全 本篇文章将详细介绍华为路由器交换机配置命令大全,涵盖了路由器交换机配置的各个方面,包括基本配置命令、接口配置命令、路由配置命令、安全配置命令等等。掌握这些命令,能够帮助您快速地配置和管理华为路由器交换机。 一、基本配置命令 * PCA login:root;使用 root 用户 * password:linux;设置密码为 linux * shutdown -h now;关机 * init 0;关机 * logout;用户注销 * login;用户登录 * ifconfig;显示 IP 地址 * ifconfig eth0 netmask ;设置 IP 地址 * ifconfig eth0 netmask down;禁用 IP 地址 * route add 0.0.0.0 gw ;设置网关 * route del 0.0.0.0 gw ;删除网关 * route add default gw ;设置默认网关 * route del default gw ;删除默认网关 * route ;显示路由表 * ping ;发送 ECHO 包 * telnet ;远程登录 二、交换机命令 * [Quidway] display cur ;显示当前配置 * [Quidway] display current-configuration ;显示当前配置 * [Quidway] display interfaces ;显示接口信息 * [Quidway] display vlan all ;显示 VLAN 信息 * [Quidway] display version ;显示版本信息 * [Quidway] super password ;修改特权用户密码 * [Quidway] sysname ;交换机命名 * [Quidway] interface ethernet 0/1 ;进入接口视图 * [Quidway] interface vlan x ;进入 VLAN 视图 * [Quidway-Vlan-interface x] ip address 10.65.1.1 255.255.0.0 ;配置 VLAN 的 IP 地址 * [Quidway] ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 ;静态路由 * [Quidway] rip ;三层交换支持 * [Quidway] local-user ftp ;FTP 用户配置 * [Quidway] user-interface vty 0 4 ;进入虚拟终端 * [S3026-ui-vty0-4] authentication-mode password ;设置口令模式 * [S3026-ui-vty0-4] set authentication-mode password simple 222 ;设置口令 * [S3026-ui-vty0-4] user privilege level 3 ;用户级别 三、接口配置命令 * [Quidway] interface ethernet 0/1 ;进入端口模式 * [Quidway-Ethernet0/1] duplex {half|full|auto} ;配置端口工作状态 * [Quidway-Ethernet0/1] speed {10|100|auto} ;配置端口工作速率 * [Quidway-Ethernet0/1] flow-control ;配置端口流控 * [Quidway-Ethernet0/1] mdi {across|auto|normal} ;配置端口平接扭接 * [Quidway-Ethernet0/1] port link-type {trunk|access|hybrid} ;设置端口工作模式 * [Quidway-Ethernet0/1] port access vlan 3 ;当前端口加入到 VLAN * [Quidway-Ethernet0/2] port trunk permit vlan {ID|All} ;设 trunk 允许的 VLAN * [Quidway-Ethernet0/3] port trunk pvid vlan 3 ;设置 trunk 端口的 PVID * [Quidway-Ethernet0/1] undo shutdown ;激活端口 * [Quidway-Ethernet0/1] shutdown ;关闭端口 * [Quidway-Ethernet0/1] quit ;返回 四、VLAN 配置命令 * [Quidway] vlan 3 ;创建 VLAN * [Quidway-vlan3] port ethernet 0/1 ;在 VLAN 中增加端口 * [Quidway-vlan3] port e0/1 to e0/4 ;在 VLAN 中增加端口(简写方式) * [Quidway] monitor-port ;指定镜像端口 * [Quidway] port mirror ;指定被镜像端口 * [Quidway] port mirror int_list observing-port int_type int_num ;指定镜像和被镜像端口 通过掌握这些命令,您可以轻松地配置和管理华为路由器交换机,提高网络的安全性和可靠性。
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/release/download_crawler_static/12280815/bg1.jpg)
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/c0f1db93549e46f698ff361a85e0a892_u011736825.jpg!1)
- 粉丝: 7
- 资源: 13
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)