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


portant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255);">5、配置默认网关:
portant; word-wrap: break-word !important; color: rgb(217, 33, 66); letter-spacing: 0.544px;">[Quidway]iportant; word-wrap: break-word !important; letter-spacing: 0.544px; color: rgb(217, 33, 66);">p route-static 0.0.0.0 0.0.0.0 119.167.200.89portant; word-wrap: break-word !important; letter-spacing: 0.544px;">//配置默认网关 。
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;">6、 交换机保存设置和重置命令
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;">Quidwaysave//保存配置信息Quidwayreset saved-configuration//重置交换机的配置Quidwayreboot//重新启动交换机
portant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); font-size: 15px;">7、交换机常用的显示命令
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;">用户视图模式下:Quidwaydisplay current-configuration//显示现在交换机正在运行的配置明细Quidwaydisplay device//显示各设备状态Quidwaydisplay interface ? //显示个端口状态,用?可以查看后边跟的选项Quidwaydisplay version//查看交换机固件版本信息Quidwaydisplay vlan ?// 查看vlan的配置信息
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;">8、恢复交换机出厂设置
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;">Quidwayreset saved-configuration//重置交换机的配置
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;">
portant; word-wrap: break-word !important; color: rgb(219, 55, 52); font-size: 15px; overflow-wrap: break-word !important;">二、H3C交换机的基本配置
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left;">我们先来了解下h3c的配置命令与功能,都是常用的,基本上大部分网络配置都少不了这些命令 。
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);">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//用户直行模式提示符,用户视图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;">H3Csystem-view //进入配置视图[H3C] sysname xxx//设置主机名成为xxx这里使用修改特权用户密码
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);">2、用户配置
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;">H3Csystem-view
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]super password 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]undo superpassword//删除用户分级密码
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]localuser bigheap 1234561//Web网管用户设置,1为治理级用户