Re: DHCP Range in Network Manager
- From: Dan Williams <dcbw redhat com>
- To: Peter Foulkes <peter foulkes nilpanic co uk>
- Cc: networkmanager-list gnome org
- Subject: Re: DHCP Range in Network Manager
- Date: Tue, 30 Mar 2010 13:05:22 -0700
On Tue, 2010-03-23 at 21:41 +0000, Peter Foulkes wrote:
> On Tue, 2009-09-22 at 15:41 -0500, Andy Ringsmuth wrote:
>
> > My question is this - the default range IP range dished out by
> > NetworkManager is 10.42.43.10 to 10.42.43.254.
> >
> > I would like to change that to 192.168.1.10 to 192.168.1.99 but for
> > the life of me I cannot figure out what to change to make that happen.
>
> And Dan Williams replied:
> >Nope, it's currently hardcoded for user-created "shared" networks.
> >Didn't really see a great need to change it at the time I did connection
> >sharing last year. Mind sharing your use-case here? I'm curious.
>
> If I wanted to change the hardcoded IP would it just be a case of changing
> the single reference to 10.42.43.1 that I can find in src/nm_device.c to the
> range to suit my requirements?
>
> ...
> guint32 start = (guint32) ntohl (0x0a2a2b01); /* 10.42.43.1 */
> guint32 count = 0;
> ...
Yup, that would be the place. To fix this for real, we allow users
modify shared connections in the connection editor, then maybe add some
keys to NMSettingIP4Config for "shared subnet" and "shared netmask".
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]