DHCP三层交换机设置方式 全局模式和接口模式设置方式和命令

廉价感情. 提交于 2020-07-24 22:27:10

DHCP三层交换机设置方式 全局模式和接口模式设置方式和命令

reset save
回车
输入y
reboot
输入n
输入y
重启后就恢复默认设置了
默认用户名密码
admin
Admin@huawei








<DHCP>reset save y
<DHCP>reboot n y
恢复出厂设置

DHCP三层交换机设置方式 全局模式和接口模式设置方式和命令
[DHCP]undo ip pool p4

[DHCP]int vlanif 10
[DHCP-Vlanif10]dhcp select interface //设置dhcp 接口模式
[DHCP-Vlanif10]int vlanif 20
[DHCP-Vlanif20]dhcp select interface
[DHCP-Vlanif20]int vlanif 30
[DHCP-Vlanif30]dhcp select interface
[DHCP-Vlanif30]int vlanif 40
[DHCP-Vlanif40]dhcp select interface
[DHCP-Vlanif40]q
[DHCP]dis current-configuration








[Huawei]sysname dhcp
[dhcp]vlan batch 10 20 30 40 创建vlan
Info: This operation may take a few seconds. Please wait for a moment...done.
[dhcp]port-group 1 创建组
[dhcp-port-group-1]group-member g0/0/1 g0/0/2 加入接口
[dhcp-port-group-1]port link-type trunk 设置trunk模式
[dhcp-GigabitEthernet0/0/1]port link-type trunk
[dhcp-GigabitEthernet0/0/2]port link-type trunk
[dhcp-port-group-1]port trunk allow-pass vlan all 设置全部vlan通过







[dhcp-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[dhcp-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[dhcp-port-group-1]q
[dhcp]dhcp enable 启用DHCP
Info: The operation may take a few seconds. Please wait for a moment.done.
[dhcp]ip pool p1 创建地址池p1
Info:It's successful to create an IP address pool.
[dhcp-ip-pool-p1]network 192.168.10.0 mask 24 设置网络段
[dhcp-ip-pool-p1]gateway-list 192.168.10.1 设置网关
[dhcp-ip-pool-p1]dns-list 1.1.1.1 设置dns服务器地址
[dhcp-ip-pool-p1]lease day 1 设置租约时间
[dhcp-ip-pool-p1]q
[dhcp]int vlanif 10 进入vlanif 10 虚拟接口
[dhcp-Vlanif10]ip address 192.168.10.1 24 设置ip地址
[dhcp-Vlanif10]dhcp select global 设置DHCP全局模式
后面设置 p2 p3 p4 vlanif 20 30 40 全部设置成功 完结














标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!