本文作者:chenzj

H3C交换机配置DHCP

chenzj 2021-12-16 2439 抢沙发
H3C交换机配置DHCP摘要: H3C交换机配置DHCP实例[H3C]system-view[H3C]int Vlan-interface 2 //创建vlan 2[H3C-Vlan-interface2...

H3C交换机配置DHCP实例

[H3C]system-view [H3C]int Vlan-interface 2 //创建vlan 2

[H3C-Vlan-interface2]ip add 192.168.1.1 24 //配置IP地址

[H3C]dhcp enable //开启DHCP服务 

[H3C]dhcp server ip-pool 2 //配置DHCP地址组 

[H3C-dhcp-pool-2]network 192.168.1.0 mask 255.255.255.0 //配置dhcp地址池 

[H3C-dhcp-pool-2]gateway-list 192.168.1.1 //配置网关 

[H3C-dhcp-pool-2]dns-list 114.114.114.114 //配置DNS 

[H3C-dhcp-pool-2]quit //退出 

 [H3C]save force //保存配置 

 [H3C]int rang g1/0/1 to g1/0/12                                                    //批量端口设置 

 [H3C-if-range]port access vlan 2                                                    //端口设置为ACCESS模式,加入VLAN2 

 ==================================================================

 dhcp enable dhcp server forbidden-ip 192.168.1.1 192.168.1.19                     //保留IP不分配

文章版权及转载声明

作者:chenzj本文地址:https://www.it-js.net/155.html发布于 2021-12-16
文章转载或复制请以超链接形式并注明出处IT技术

阅读
分享

发表评论

快捷回复:

评论列表 (暂无评论,2439人围观)参与讨论

还没有评论,来说两句吧...