IT袋

当前位置:主页 > 经验教程 > 硬件教程 >

h3c交换机开启dhcp

h3c交换机开启dhcp H3C配置自动分配IP实例【图文教程】

更新:2023-08-08 17:28:10 来源:IT袋 作者:马勇
导读:h3c交换机开启dhcp,华三H3C交换机、防火墙、路由器等网络设备如何开启DHCP功能自动分配IP地址给电脑? 下面IT袋小编就将以一个实例给大家介绍 H3C交换机开启dhcp配置VLAN自动分配IP地址。

h3c交换机开启dhcp

h3c交换机开启dhcp

华三H3C交换机、防火墙、路由器等……网络设备如何开启DHCP功能自动分配IP地址给电脑?下面IT袋小编就将以一个实例给大家介绍H3C交换机开启dhcp配置VLAN自动分配IP地址。

方法步骤:

本教程同样使用的是H3C S5500 Series系列三层交换机作为演示,其它型号、设备基本一致。

使用Console接口COM(串口线)连接好交换机,然后使用远程终端软件比如:MobaXterm进入配置界面 或 使用Telnet……等方式连接,再输入以下命令:

1、开启H3C交换机DHCP全局服务:使能DHCP服务

<H3C>system-view[H3C]dhcp enable

若提示:DHCP is enabled successfully!,则说明:DHCP服务开启成功!,H3C交换机默认缺省情况下,DHCP服务处于禁止状态,所以这一步我们就是开启它。

2、配置接口工作在DHCP服务器模式,这里我们以Vlan1为例子,配置Vlan1具有DHCP自动分配IP地址功能

[H3C]interface Vlan-interface 1[H3C-Vlan-interface1]dhcp select server global-pool[H3C-Vlan-interface1]quit

命令解析:

interface Vlan-interface 1:进入Vlan 1接口

dhcp select server global-pool:配置Vlan 1 接口工作在DHCP服务器模式

3、采用动态方式配置DHCP服务器的地址池、网关、DNS

[H3C]dhcp server ip-pool Vlan1-DHCP[H3C-dhcp-pool-vlan1-dhcp]network 192.168.88.0 24[H3C-dhcp-pool-vlan1-dhcp]gateway-list 192.168.88.1[H3C-dhcp-pool-vlan1-dhcp]dns-list 192.168.1.1 114.114.114.114 8.8.8.8[H3C-dhcp-pool-vlan1-dhcp]save

命令解析:

dhcp server ip-pool Vlan1-DHCP:dhcp server ip-pool,DHCP服务IP池;Vlan1-DHCP,DHCP服务IP池名称(根据自己的喜好用途随意填写有意义的英文或拼音,最好带上对应的Vlan ID,比如像我这样写)

network 192.168.88.0 24:DHCP池网段,也可以写成:network 192.168.88.0 mask 255.255.255.0

gateway-list 192.168.88.1:DHCP自动分配给设备的网关地址,一般填写为:Vlan 1的IP地址(对应的Vlan IP地址)

dns-list 192.168.1.1 114.114.114.114 8.8.8.8:DHCP自动分配给设备的DNS地址,最少填写一个DNS地址

save:保存配置,根据如下提示,回答:Y

The current configuration will be written to the device. Are you sure? [Y/N]:yPlease input the file name(*.cfg)[flash:/startup.cfg](To leave the existing filename unchanged, press the enter key):flash:/startup.cfg exists, overwrite? [Y/N]:y Validating file. Please wait.................... The current configuration is saved to the active main board successfully. Configuration is saved to device successfully.
           
           

相关阅读