不一樣網段dhcp配置

拓撲圖以下:測試

先是給主機1配置ip地址,掩碼和網關,主機1用於測試router

路由器R1:
sys
sysname R1
interface gi 0/0
ip add 192.168.1.254 24
interface gi 0/1
ip add 192.168.100.254 24
qu
interface gi 0/0
dhcp select relay
dhcp relay server-add 192.168.100.10
路由器R2:
sys
sysname DHCP server
interface gi 0/0
ip add 192.168.100.10 24
ip router-static 0.0.0.0 0.0.0.0 192.168.100.254
dhcp enable
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
forbidden-ip 192.168.1.254server

測試:blog

主機1測試ip

主機2ping通路由

相關文章
相關標籤/搜索