实现的简单拓扑如下:

R1配置如下:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]undo info-center enable
Info: Information center is disabled.
[R1]interface GigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]ip add
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[R1-GigabitEthernet0/0/0]interface GigabitEthernet0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.2.254 24
[R1-GigabitEthernet0/0/1]q
[R1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[R1]interface GigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]dh
[R1-GigabitEthernet0/0/0]dhcp se
[R1-GigabitEthernet0/0/0]dhcp

本文介绍了如何在华为路由器R1上配置基于接口的DHCP服务器,为连接在GigabitEthernet0/0/0和GigabitEthernet0/0/1接口上的设备分配IP地址。配置包括设置IP地址、启用DHCP服务、指定接口作为DHCP服务器并排除特定IP,以及设置DNS服务器。
最低0.47元/天 解锁文章
1108

被折叠的 条评论
为什么被折叠?



