Options

DHCP exclude range ?

jibbajabbajibbajabba Member Posts: 4,317 ■■■■■■■■□□
I am a bit puzzled.

My local range is 192.168.13.0/24

Router is 192.168.13.254 and I need to exclude two IP (13.254, 13.240) and a range (13.200-210) but I can't find the command to do so

Here the config so far, as you can see I have a lot of lines in there to get what I want - but it isn't pretty :)
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.13.240 192.168.13.254
ip dhcp excluded-address 192.168.13.200 192.168.13.201
ip dhcp excluded-address 192.168.13.202 192.168.13.203
ip dhcp excluded-address 192.168.13.204 192.168.13.205
ip dhcp excluded-address 192.168.13.206 192.168.13.207
ip dhcp excluded-address 192.168.13.208 192.168.13.209
ip dhcp excluded-address 192.168.13.210
!
ip dhcp pool MikeHome
   import all
   network 192.168.13.0 255.255.255.0
   domain-name xx
   default-router 192.168.13.254 
   dns-server 85.232.32.10 85.232.44.10 
   update arp

Could someone give me a hint how I can achieve the same without using yards of lines :p

edit: ah, so that IS already a range
ip dhcp excluded-address 192.168.13.208 192.168.13.209

means a range from 208-209 lol - I thought those are two individual IPs
My own knowledge base made public: http://open902.com :p

Comments

  • Options
    CodeBloxCodeBlox Member Posts: 1,363 ■■■■□□□□□□
    ip dhcp excluded-address 192.168.13.254 
    ip dhcp excluded-address 192.168.13.240
    ip dhcp excluded-address 192.168.13.200 192.168.13.210
    

    This excludes those addresses
    Currently reading: Network Warrior, Unix Network Programming by Richard Stevens
Sign In or Register to comment.