Cisco router DHCP設定問題

network如下:



目標

向172.18.17.0/21 network 派發 172.18.17.100 to 172.18.17.247 範圍的ip

於I_Gateway設定如下:

I_Gateway(config)#ip dhcp pool POOLNAME
I_Gateway(dhcp-config)#network 172.18.17.0 255.255.248.0
I_Gateway(dhcp-config)#dns-server 172.18.16.2
I_Gateway(dhcp-config)#default-router 172.18.16.1
I_Gateway(dhcp-config)#exit
I_Gateway(config)#ip dhcp excluded-address 172.18.17.1 172.18.17.100
I_Gateway(config)#ip dhcp excluded-address 172.18.17.248 172.18.17.254
I_Gateway(config)#exit

於PC0 cmd 輸入 ipconfig,結果為

ip address: 172.18.16.4
subnet mask: 255.255.248.0
default gateway: 0.0.0.0

請問邊度出錯?
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

The network should be 172.18.16.0/21 and includes ip address range 172.18.16.1 - 17.18.23.254.

So,

- the network statement is incorrect
- ip dhcp excluded-address range is incorrect

TOP

重新設定:

Router(config)#ip dhcp pool POOLNAME
Router(dhcp-config)#network 172.18.17.0 255.255.248.0
Router(dhcp-config)#dns-server 172.18.16.2
Router(dhcp-config)#default-router 172.18.16.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 172.18.16.0 172.18.16.255
Router(config)#ip dhcp excluded-address 172.18.17.0 172.18.17.99
Router(config)#ip dhcp excluded-address 172.18.17.248 172.18.17.255

於PC0 cmd 輸入 ipconfig,結果如下:

ip address: 172.18.17.0
subnet mask: 255.255.248.0
default gateway: 0.0.0.0

其實仲有邊度錯左呢?

煩請賜教!

TOP

network 172.18.16.0 255.255.248.0
......
ip dhcp excluded-address 172.18.16.1 172.18.17.99
ip dhcp excluded-address 172.18.17.248 172.18.23.254
.......

TOP