当前位置:网站首页>Huawei ENSP simulator configures DHCP for router

Huawei ENSP simulator configures DHCP for router

2022-07-04 21:13:00 Python Pegasus

Catalog

One 、 Router configuration IP Address and mask .

Two 、 Turn on the router DHCP service :

  3、 ... and 、 Select interface , Make the interface have DHCP The function of assigning addresses .

 1、 Access interface

 2、 Select this interface to own DHCP Distribute ip The function of

  Four 、 After configuring the router, let's pc Machine selection dhcp Get the address automatically .

1、 View to pc Machine assigned ip Address

2、 Try whether you can ping through


DHCP The function is to automatically allocate IP Address , Subnet mask , gateway . End of configuration DHCP after , Add later PC machine 、 Mobile phones and other devices connected to the network , It will be automatically assigned ip Address , No manual configuration required

The goal of the experiment : To configure DHCP, Make three PC The machine does not need to be configured manually IP You can get it automatically IP.

First, we need a router , A switch , Three stations PC Machine to simulate the enterprise environment , Connect them .

Multiple computers are connected to the switch , The switch is connected to the router .

After connecting, the left mouse button will select all things in the box , start-up .

  We can see , Configure the router DHCP Before , We want to pc Machine has IP Address can only be statically configured , That is, manually configure one by one . In this way pc When there are many machines, it is extremely troublesome , Low efficiency , So we need to configure the router DHCP, So that he can automatically allocate IP Address .

One 、 Router configuration IP Address and mask .

First , Configure the router IP Address , Because the router is a professional device , So it needs to be allocated manually ip Address .

Two 、 Turn on the router DHCP service :

dhcp enable

We can see , This router has multiple interfaces , Now we need to specify which interfaces can have DHCP function , So that the machines connected to these interfaces can automatically allocate IP Address .

  3、 ... and 、 Select interface , Make the interface have DHCP The function of assigning addresses .

Our other machines are now connected to the router GE0/0/0 Interface , So we just need to give GE0/0/0 Activate the function of assigning addresses .

 1、 Access interface

interface 
interface  The interface name 

 2、 Select this interface to own DHCP Distribute ip The function of

dhcp select interface

  Four 、 After configuring the router, let's pc Machine selection dhcp Get the address automatically .

Double-click to open pc machine , choice dhcp To configure ip Address , Click on the app .

1、 View to pc Machine assigned ip Address

Double-click to open pc machine , Select the command line interface , Input ipconfig You can view the automatically assigned ip Address .

ipconfig

  remainder pc It's the same operation , choice dhcp The application can be automatically allocated IP Address 、 Subnet mask 、 gateway 、 and mac Address .

We ipconfig Check it out. ip. 

  We three pc All machines ip Address . You can try each other ping once , See if you can ping through .

2、 Try whether you can ping through

 

  Find that they can interact ping through , Prove our dhcp It's already configured , Operation completed , End of experiment .

原网站

版权声明
本文为[Python Pegasus]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042010440167.html