DHCP实验

主机1的IP 192.168.1.1;掩码为255.255.255.0;网关为192.168.1.254;

主机2的IP配置为DHCP;

路由器运行代码:

system-view

interface g0/0

ip address 192.168.1.254 24

qu

dhcp enable

dhcp server ip-pool 1

network 192.168.1.0 mask 255.255.255.0

gateway-list 192.168.1.254

qu

interface g0/0

dhcp server ip-pool 1

dns-list 8.8.8.8

expired day 1 hour 12

posted @ 2019-05-17 22:43  马贤  阅读(138)  评论(0编辑  收藏  举报