
我有这样的拓扑结构,PC0、Server0和PC4使用静态ip和静态默认网关,但是有一台pc是请求DHCP的,所以我必须为他使用DHCP地址,剩下的是静态ip,现在的问题是如何给他默认的日期方式,这样他就可以平PC0,Server0也可以了。
配置:
Router
fa0/0 = 192.168.10.1/24
fa0/1 = 192.168.11.1/24
PC0(Static)
IP = 192.168.10.123/24
default-gateway = 192.168.10.1
Server0(Static)
IP = 192.168.10.111/24
default-gateway = 192.168.10.1
PC4(Static)
IP = 192.168.11.123/24
default-gateway = 192.168.11.1
Router
DHCP pool nf0/0
Network 192.168.11.0 255.255.255.0
PC-PT(DHCP)
IP = 192.168.11.2/24
Default-gateway = Doesnt exist because i don't know how to config it发布于 2019-05-17 17:17:36
欢迎来到网络工程!您可以在路由器上为请求-PC配置DHCP。默认网关与PC4: 192.168.11.1相同。不同的是,请求-PC从DHCP获取网关地址,而PC4对其进行静态配置。
发布于 2019-05-18 12:29:16
您的配置中缺少的东西很少。
将以下配置添加到路由器。
! Move to Privileged mode
enable
! Global configuration mode
configure terminal
! Exclude the ip address of the default gateway
! from the pool of network
ip dhcp excluded-address 192.168.11.1
ip dhcp pool networkf0/1
! Set the default gateway for the hosts
! which will be using this pool of address
default-router 192.168.11.1一旦完成,您需要禁用并重新启用PC "Request“下的DHCP选项。
完事了!
https://networkengineering.stackexchange.com/questions/59228
复制相似问题