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


portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display vlan all //显示所有VLAN的具体信息
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]user-group 20 //创建user-group 20,默认只存在user-group 1
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-UserGroup20]port Ethernet 0/4 toEthernet 0/7 //将4到7号端口加入到VLAN20中,初始时都属于user-group 1中
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display user-group 20 //显示user-group 20的相关信息
portant; word-wrap: break-word !important; background-color: rgb(0, 0, 0); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; widows: 1; color: rgb(255, 255, 255);">四、交换机ip配置
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]vlan 20//创建vlan
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]management-vlan 20//治理vlan
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]interface vlan-interface 20//进入并治理vlan20
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]undo interface vlan-interface 20//删除治理VLAN端口
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Vlan-interface20]ip address192.168.1.2 255.255.255.0 //portant; word-wrap: break-word !important; widows: 1; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px; color: rgb(217, 33, 66);">配置治理VLAN接口静态IP地址portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Vlan-interface20]undo ipaddress//删除IP地址
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Vlan-interface20]ip gateway 192.168.1.1//指定缺省网关(默认无网关地址)
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Vlan-interface20]undo ip gateway
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Vlan-interface20]shutdown //关闭接口
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Vlan-interface20]undo shutdown//开启
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display ip//显示治理VLAN接口IP的相关信息
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display interface vlan-interface20//查看守理VLAN的接口信息
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">H3Cdebugging ip//开启IP调试功能