Huawei S5700 switch to open the DHCP

eNSP New Topology

1, the use of dis vlan command, we can see a default switch vlan

<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname SW1
[SW1]dis
[SW1]display vl
[SW1]display vlan

2, using the default vlan1 open the DHCP function, make PC to automatically obtain an IP address

[SW1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[SW1]dis this

[SW1]int
[SW1]interface vlan
[SW1]interface Vlanif 1
[SW1-Vlanif1]ip addr
[SW1-Vlanif1]ip address 192.168.1.1 24
[SW1-Vlanif1]dhcp sel
[SW1-Vlanif1]dhcp select int
[SW1-Vlanif1]dhcp select interface
[SW1-Vlanif1]dis this

At this point, PC can use DHCP to obtain an IP address

PS: dhcp select interface is to "mask with the current IP interface" as the IP address range in which the address pool issued without manually specified address range, the DNS IP gateway interface to the current configuration in the interface. dhcp select global address pool needs to call an established global mode (ip pool) gateway dns, etc. disposed in the ip pool.

 3. Other settings

[SW1-Vlanif1]ip address 192.168.10.254 24
[SW1-Vlanif1]dhcp select interface

[SW1-Vlanif1]dhcp server lease day 30
[SW1-Vlanif1]dhcp server dns-list 114.114.114.114 8.8.8.8

[SWl-Vlanif1] DHCP-Server excluded 192.168.10.200 IP-address 192.168.10.253  // 200-254 not assigned negative

[SW1-Vlanif1]dis this

 

[SWl-Vlanif1] DHCP-Server IP-address 192.168.10.2 excluded   // not exclude assigned 10.2

[SWl-Vlanif1] DHCP-Server static IP address 192.168.10.9 the bind-MAC-address 28d2-4469-5a55   // bind IP 192.168.10.9 MAC is assigned to the fixed machine 28d2-4469-5a55

At this point, PC can obtain an IP address, gateway and DNS addresses automatically

 

Guess you like

Origin www.cnblogs.com/handianduo/p/11315763.html