华为交换机基本配置

<Huawei>             //用户视图

<Huawei>display version           //查看VRP系统版本信息

<Huawei>undo terminal monitor    //关闭告警信息

<Huawei>system-view       //进入系统视图

[Huawei]sysname switch   //更改交换机名称

[Huawei]interface gigabitethernet 0/0/1  //进入接口视图

设置交换机密码:

[Huawei]user-interface console 0    //进入console 0接口模式

[Huawei-ui-console0]set authentication password simple 123

                                    //设置明文密码

[Huawei-ui-console0]set authentication password cipher 456

                                    //设置密文密码

[Huawei-ui-console0]authentication-mode password

                                    //设置身份认证模式

更改自动退出时间

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 30

                  //用户连接超时时间为30分钟

*缺省情况下,用户连接的超时时间是10分钟*

开启/关闭接口

<Huawei>

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]interface gigabitethernet 0/0/1

[Huawei-GigabitEthernet0/0/1]shutdown

                                 //关闭接口

[Huawei-GigabitEthernet0/0/1]undo shutdown

                                 //开启接口

配置交换机管理IP(网关)

<Huawei>

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]interface vlanif 1      //进入vlanif 1

[Huawei-Vlanif1]ip address 192.168.1.100 255.255.255.0

                            //配置交换机管理IP

// vlanif和vlan的区别

https://zhidao.baidu.com/question/1771576533513288220.html

远程管理

<Huawei>

<Huawei>u t m

Info: Current terminal monitor is off.

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]user-interface vty 0 3  //同时远程管理终端人数

[Huawei-ui-vty0-3]user privilege level 3 

                                //定义访问权限级别

[Huawei-ui-vty0-3]authentication-mode aaa

                                //启用AAA认证

[Huawei-ui-vty0-3]aaa           //进入AAA认证视图

[Huawei-aaa]local-user abc password cipher 123

Info: Add a new user.           //定义远程管理用户名及密码

[Huawei-aaa]local-user abc service-type telnet

                                //定义远程管理协议

存储配置信息

<Huawei>save

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

查看当前配置

<Huawei>display current-configuration

重启交换机

<Huawei>reboot

Info: The system is now comparing the configuration, please wait.

Info: If want to reboot with saving diagnostic information, input 'N' and then e

xecute 'reboot save diagnostic-information'.

System will reboot! Continue?[Y/N]:y

                        

恢复出厂默认     *恢复默认后重启根据提示先输入n,在输入Y重启

<Huawei>

<Huawei>reset saved-configuration

Warning: The action will delete the saved configuration in the device.

The configuration will be erased to reconfigure. Continue? [Y/N]:y

Warning: Now clearing the configuration in the device.

Info: Succeeded in clearing the configuration in the device.

  • 5
    点赞
  • 37
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

张麟613

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值