1.4 配置参考
1.4.1 端口配置
<RTA>system-view [RTA]int ethernet 0/0
[RTA-Ethernet0/0] ip address 192.168.1.1 255.255.255.0
1.4.2 DHCP配置
启动DHCP服务
[Quidway] dhcp enable
配置不参与自动分配的IP地址(出口网关ip地址)
[Quidway] dhcp server forbidden-ip 192.168.1.1 192.168.1.2
配置DHCP地址池1的共有属性(地址池范围、域名、DNS地址)
[Quidway]interface vlan 1
[Quidway-Vlan-interface1]ip address 192.168.1.2 255.255.255.0 [Quidway] dhcp server ip-pool 1
[Quidway-dhcp-pool-1] network 192.168.1.0 mask 255.255.255.0 [Quidway-dhcp-pool-1] gateway-list 192.168.1.1
[Quidway-dhcp-pool-1] dns-list 202.106.196.152 202.106.196.115 [Quidway-dhcp-pool-1] domain-name [Quidway] quit <Quidway> save
1.5结果验证
当路由器上DHCP服务器配置完成之后,主机能够获取到地址池中的地址、网关、DNS等。