总结:华为、H3C、锐捷三家交换机配置命令详解

一直以来,对于华为、H3C、锐捷交换机的命令配置,不断的有朋友留言,三家交换机的配置命令轻易弄混,常常在实际项目配置中出错
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">一直以来,对于华为、H3C、锐捷交换机的命令配置,不断的有朋友留言,三家交换机的配置命令轻易弄混,常常在实际项目配置中出错,因此,本期我们将来介绍这三家交换机的基础配置命令,大家可以分别来看下他们的命令有什么不同 。
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">为了让大家更加清晰,每行代码都有解释 。
【总结:华为、H3C、锐捷三家交换机配置命令详解】portant; word-wrap: break-word !important; color: rgb(219, 55, 52); font-size: 15px; overflow-wrap: break-word !important;">一、华为交换机基础配置命令
portant; word-wrap: break-word !important; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); font-size: 15px;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">1、创建vlan:
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">Quidway//用户视图,也就是在Quidway模式下运行命令 。Quidwaysystem-view//进入配置视图[Quidway] vlan 10//创建vlan 10,并进入vlan10配置视图,假如vlan10存在就直接进入vlan10配置视图[Quidway-vlan10] quit//回到配置视图[Quidway] vlan 100//创建vlan 100,并进入vlan100配置视图,假如vlan10存在就直接进入vlan100配置视图
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">[Quidway-vlan100] quit//回到配置视图
portant; word-wrap: break-word !important; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); font-size: 15px;">portant; word-wrap: break-word !important; overflow-wrap: break-word !important;">2、将端口加入到vlan中:
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">[Quidway] interface GigabitEthernet2/0/1(10G光口)[Quidway- GigabitEthernet2/0/1] port link-type access//定义端口传输模式[Quidway- GigabitEthernet2/0/1] port default vlan 100 //将端口加入vlan100[Quidway- GigabitEthernet2/0/1] quit//回到配置视图
portant; word-wrap: break-word !important; font-size: 15px;">portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px;">[Quidway] interface GigabitEthernet1/0/0//进入1号插槽上的第一个千兆网口配置视图中 。0代表1号口[Quidway- GigabitEthernet1/0/0] port link-type access //定义端口传输模式[Quidway- GigabitEthernet2/0/1] port default vlan 10 //将这个端口加入到vlan10中[Quidway- GigabitEthernet2/0/1] quitportant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255);">3、将多个端口加入到VLAN中
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">Quidwaysystem-view[Quidway]vlan 10[Quidway-vlan10]port GigabitEthernet 1/0/0 to 1/0/29 //将0到29号口加入到vlan10中[Quidway-vlan10]quit
portant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); font-size: 15px;">4、交换机配置IP地址
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">[Quidway] interface Vlanif100// 进入vlan100接口视图与vlan 100命令进入的地方不同[Quidway-Vlanif100] ip address 119.167.200.90 255.255.255.252// 定义vlan100治理IP三层交换网关路由[Quidway-Vlanif100] quit//返回视图[Quidway] interface Vlanif10// 进入vlan10接口视图与vlan 10命令进入的地方不同[Quidway-Vlanif10] ip address 119.167.206.129 255.255.255.128// 定义vlan10治理IP三层交换网关路由
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">[Quidway-Vlanif10] quit