New IT forum
12 August 2022, 02:15:39 pm *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: [1]

Author Topic: Changed wireless (uap0) to 192.168.11.1, still old range handed out  (Read 9380 times)

Mektub

  • Newbie
  • *
  • Posts: 2


Since my eth0 (cable modem) is on the 192.168.1.x range, it was conflicting with the default uap0 range,
so I changed init_setup.sh:

Code: [Select]
from

ifconfig uap0 192.168.1.1 up

to

ifconfig uap0 192.168.11.1 up

and /etc/udhcpd.conf to:

Code: [Select]
start 192.168.11.100
end 192.168.11.200
interface uap0
opt      lease  86400
opt     router  192.168.11.1
opt     subnet  255.255.255.0
opt     dns     192.168.11.1
opt     domain     localdomain
max_leases     101
lease_file     /var/lib/udhcpd.leases
auto_time       5

This comes up correctly, but my client PC still gets handed the address 192.168.1.101, and I have to change
it by hand.

What am I missing here ?

Mektub


Logged

rfrazier

  • New IT customer
  • Jr. Member
  • *
  • Posts: 60
    • RLF

The address that it hands out is determined by the DHCP server, which, in this case, is udhcpd.  The configuration file for it is in /etc.  Change the lease block setting at the very top of the file to your prefered values, then restart it at root (with sudo or su, or at the console).  Here's how to restart it, with "#" being the prompt.

# /etc/init.d/udhcpd restart

Best wishes,
Bob


Logged

Mektub

  • Newbie
  • *
  • Posts: 2

rfrazier,

thanks for the answer. If you reread my post, you will see that I had changed the udhcpd configuration file in /etc.

However now the problem is solved. I had read somewhere that the IP's were cached, only I couldn't find any cache file.

So I changed the lease interval hoping to force the DHCP server to hand out new addresses, amd be it because of this or not, now
my client is getting a correct IP.

Mektub
Logged

rfrazier

  • New IT customer
  • Jr. Member
  • *
  • Posts: 60
    • RLF

Whoops.  Sorry.  It is early, and I was reading too fast.

Best wishes,
Bob
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!