华为交换机常用查询命令

华为交换机查询常用命令
1.undo info-center enable  //华为取消消息提示
2.reset saved-configuration     //华为交换机初始化
3.dispaly ip routing-table      //查看路由表
4.reset ip pool name xxxx all   //释放某个地址池的
 dis int br 查看端口状态
 sys 
 dis cu 查看所有配置
 dis this 查看当前配置

 

华为交换机配置基础命令
dhcp enable (开启dhcp服务器)

新建vlan
vlan1
vlan2


端口指定vlan
interface GigabitEthernet 0/0/1
 port link-type access
 port tdefault vlan 1

interface GigabitEthernet 0/0/2
 port link-type access
 port tdefault vlan 2





地址池pool
interface Vlanif1
 ip address 192.168.10.1 255.255.255.128
 dhcp select global

ip pool vlan1
 gateway-list 192.168.10.1
 network 192.168.10.0 mask 255.255.255.128
 lease day 0 hour 0 minute 30(设置租约,华为默认一天)
 dns-list 114.114.114.114 8.8.8.8 (DNS服务器设置)




interface Vlanif2
 ip address 192.168.10.129 255.255.255.128
 dhcp select global

ip pool vlan2
 gateway-list 192.168.10.129
 network 192.168.10.129 mask 255.255.255.128
 lease day 0 hour 0 minute 30(设置租约,华为默认一天)
 dns-list 114.114.114.114 8.8.8.8 (DNS服务器设置)
相关推荐
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页