交换机基本配置

本文详细介绍了如何配置华为交换机的设备名称、创建管理VLAN 5并启用telnet,包括设置接口IP、开启VTY线路、配置AAA认证及用户权限。接着展示了登录telnet的过程,并指导了接口隔离和带宽设置的操作。
摘要由CSDN通过智能技术生成

1.配置交换机的设备名称、管理VLAN和TELNET

<HUAWEI>                                                           //用户视图提示符
<HUAWEI> system-view                                               //进入系统视图
[HUAWEI] sysname Switch1                                           //修改设备名称为Switch1
[Switch1] vlan 5                                                   //创建交换机管理VLAN 5
[Switch1-VLAN5] management-vlan
[Switch1-VLAN5] quit
[Switch1] interface vlanif 5                                       //创建交换机管理VLAN的VANIF接口
[Switch1-vlanif5] ip address 10.10.1.1 24                          //配置VLANIF接口IP地址
[Switch1-vlanif5] quit
[Switch1] telnet server enable                                     //telnet默认是关闭的,需要打开
[Switch1] user-interface vty 0 4                                   //开启VTY线路模式
[Switch1-ui-vty0-4] protocol inbound telnet                        //配置telnet协议
[Switch1-ui-vty0-4] authentication-mode aaa                        //配置认证方式
[Switch1-ui-vty0-4] quit
[Switch1] aaa
[Switch1-aaa] local-user admin password irreversible-cipher 123456 //配置用户名和密码,用户名不区分大小写,密码区分大小写
[Switch1-aaa] local-user admin privilege level 15                  //将管理员账号权限设置为15(最高)
[Switch1-aaa] quit
[Switch1] quit
<Switch1> save

2.登录Telnet到交换机,出现用户视图提示符

C:\Documents and Settings\Administrator>telnet 10.10.1.1   //输入交换机管理IP
Login authentication
Username: admin                                            //输入用户名和密码
password:
Info: The max number of VTY users is 5, and the number of current VTY users on line is 1.
    the current Login time is 2022-3-7 19:53:18+00:00.
<Switch1>                                                  //用户视图命令提示符

3.配置交换机的接口

//配置接口GE1/0/1和GE1/0/2的端口隔离欧罗巴,实现两个接口之间的二层数据隔离,三层数据互通
<Switch1> system-view 
[Switch1] port-isolate mode 12
[Switch1] interface gigabitethernet 1/0/1
[Switch1-Gigabitethernet1/0/1] port-isolate enable group 1
[Switch1-Gigabitethernet1/0/1] quit
[Switch1] interface gigabitethernet 1/0/2
[Switch1-Gigabitethernet1/0/2] port-isolate enable group 1
[Switch1-Gigabitethernet1/0/2] quit

//配置以太网接口GE0/0/1在自协商模式下协商速率为100Mb/s
<Switch1> system-view
[Switch1] interface gigabitethernet 0/0/1
[Switch1-Gigabitethernet0/0/1] negotiation auto 
[Switch1-Gigabitethernet0/0/1] auto speed 100

//配置以太网接口GE0/0/1在自协调模式下双工模式为全双工模式
<Switch1> system-view
[Switch1] interface gigabitethernet 0/0/1
[Switch1-Gigabitethernet0/0/1] negotiation auto 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

heze09

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

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

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

打赏作者

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

抵扣说明:

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

余额充值