码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-06-17 16:42:51      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:png   图片   batch   回车   address   ati   ble   run   operation   

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

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

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

技术图片
[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 全部设置成功 完结

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

标签:png   图片   batch   回车   address   ati   ble   run   operation   

原文地址:https://blog.51cto.com/14806008/2505227

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!