HCL配置(三)–-DHCP配置

  1. HCL配置(三)–-DHCP配置
    1. 一、任务
    2. 二、配置
      1. 1、四个PC
      2. 2、最上面的交换机S0
    3. 三、测试

HCL配置(三)–-DHCP配置

一、任务

在实验二的基础上(VLAN10、20、30、40内的主机之间互ping成功)实现用DHCP给各vlan内主机自动分配地址

二、配置

由于在上一个实验的基础上,因此只需要配置四个PC和最上面的交换机S0即可

1、四个PC

使用DHCP,启用接口

2、最上面的交换机S0

配置DHCP

<LwS0>sys
System View: return to User View with Ctrl+Z.
[LwS0]dhcp enable
[LwS0]dhcp server ip-pool vlan10
[LwS0-dhcp-pool-vlan10]network 192.168.10.1 mask 255.255.255.0
[LwS0-dhcp-pool-vlan10]gateway-list 192.168.10.1
[LwS0-dhcp-pool-vlan10]qui
[LwS0]dhcp server ip-pool vlan20
[LwS0-dhcp-pool-vlan20]network 192.168.20.1 mask 255.255.255.0
[LwS0-dhcp-pool-vlan20]gateway-list 192.168.20.1
[LwS0-dhcp-pool-vlan20]quit
[LwS0]dhcp server ip-pool vlan30
[LwS0-dhcp-pool-vlan30]network 192.168.30.1 mask 255.255.255.0
[LwS0-dhcp-pool-vlan30]gateway-list 192.168.30.1
[LwS0-dhcp-pool-vlan30]quit
[LwS0]dhcp server ip-pool vlan40
[LwS0-dhcp-pool-vlan40]network 192.168.40.1 mask 255.255.255.0
[LwS0-dhcp-pool-vlan40]gateway-list 192.168.40.1
[LwS0-dhcp-pool-vlan40]quit

保存配置

[LwS0]quit
<LwS0>save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please 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...
Saved the current configuration to mainboard device successfully.

三、测试

查看各个PC的ip

然后ping另一台PC,能ping通即可


文章汇总:

HCL的安装和使用

go->

ping通及Telnet

go->

VLAN间通信

go->

DHCP配置

go->

DHCP中继

go->

STP及VRRP配置

go->

RIP配置

go->

OSPF配置

go->

ACL+NAT配置

go->

使用eNSP搭建企业网络

go->


文章标题:HCL配置(三)–-DHCP配置

文章字数:400

本文作者:Luwang

发布时间:2019-09-12, 15:42:43

最后更新:2024-01-11, 16:41:20

原始链接:https://wallleap.cn/2019/09/12/web-HCL3/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

×

喜欢就点赞,疼爱就打赏