显示ip池Mitarbeiter10提供以下输出:
R1#show ip dhcp pool Mitarbeiter10
Pool Mitarbeiter10 :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 1
Excluded addresses : 1
Pending event : none
1 subnet is currently in the pool
Current index IP address range Leased/Excluded/Total
192.168.10.1 192.168.10.1 - 192.168.10.254 1 / 1 / 254这指的是以下网络

可以到达该网络的路由器接口为ip 192.168.10.1。为什么这个ip是dhcp池的一部分?我知道,默认情况下,路由器将从dhcp池中排除分配给其接口的地址。但是,当前的索引不就是分配给下一个客户机的ip地址吗?
同时显示run _i排除-地址不列出任何排除的地址。
路由器配置:
ip dhcp pool Mitarbeiter10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 209.165.102.6
!
!
!
no ip cef
ipv6 unicast-routing
!
no ipv6 cef
!
!
!
username ISP password 0 Passw0rd
!
!
license udi pid CISCO1941/K9 sn FTX1524OR3V
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
ip address 192.168.20.1 255.255.255.0
!
interface Tunnel0
ip address 192.168.2.1 255.255.255.252
mtu 1476
tunnel source Serial0/0/0
tunnel destination 209.165.101.10
!
!
interface Tunnel6
no ip address
mtu 1476
ipv6 address 2001:DB8:A:1::1/64
tunnel source Serial0/0/0
tunnel destination 209.165.101.10
tunnel mode ipv6ip
!
!
interface GigabitEthernet0/0
ip address 209.165.102.1 255.255.255.240
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
ip nat inside
duplex auto
speed auto
ipv6 address 2001:DB8:A:10::1/64
!
interface Serial0/0/0
ip address 209.165.101.2 255.255.255.248
encapsulation ppp
ppp authentication chap
ip nat outside
clock rate 2000000
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
passive-interface GigabitEthernet0/1
network 192.168.10.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 1
!
ip nat inside source list ACL_NAT interface Serial0/0/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
ip flow-export version 9
!
ipv6 route 2001:DB8:A:20::/64 2001:DB8:A:1::2
!
ip access-list extended ACL_NAT
deny ip 192.168.10.0 0.0.0.255 192.168.30.0 0.0.0.255
permit ip 192.168.10.0 0.0.0.255 any
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end发布于 2023-01-01 21:30:32
ip dhcp pool Mitarbeiter10
network 192.168.10.0 255.255.255.0该配置将所有合法子网地址添加到池中。然而,路由器本身的地址被隐式地排除在外,所以它永远不会提供给客户端。
https://networkengineering.stackexchange.com/questions/81042
复制相似问题