Page 1 of 1

Advanced Networking- I'd like to modify netmask

Posted: Fri Jul 02, 2010 9:25 am
by volkswagner
Greetings all....Great job to the Devs on the Amahi project.

I'm new to Fedora and Amahi. I would like to set my netmask. The default is not the same as my network.

My network:

router = pfsense = 192.168.1.1 with netmask 255.255.255.128
hda = 192.168.1.2 this is ok, but I want to set the netmask to 255.255.255.128, currently the default is 255.255.255.0

Can I modify the scripts that create? And if so, what/where are they?

Code: Select all

/etc/sysconfig/network-scripts/ifcfg-eth0
and

Code: Select all

/etc/dhcp/dhcpd.conf
Are there any other dynamically modified network files?

I set my network up with several PC's with the above scheme, most with Static IP's. The reason for the modified netmask, was it was needed to use WOL via the internet with my WRT54g.

How can I change the network settings, and have it sustain a reboot?

Thanks

Re: Advanced Networking- I'd like to modify netmask

Posted: Mon Aug 16, 2010 8:34 pm
by gruvtech
I am looking to do this as well. Is there anyone out there who can walk through how to change the Netmask (i.e. subnet)??

I've VNC'd into my HDA and changed the static settings on the eth0 but even after reboot of HDA and then laptop it still serves out the default 192.168.1.x 255.255.255.0
Checking over ssh I can even see the "ifconfig" shows that the HDA has the subnet changed, so it saved over reboot, but the DHCP server doesn't look at that.

Re: Advanced Networking- I'd like to modify netmask

Posted: Tue Aug 17, 2010 8:11 am
by gruvtech
I dug around a bit and I think I found the solution. It seems to work with my setup.

Code: Select all

nano /etc/dhcp/dhcpd.conf
edit the "option subnet" Line #14 (not line #11)

http://www.linuxhomenetworking.com/wiki ... HCP_Server

Code: Select all

/usr/sbin/dhcpd

Code: Select all

service dhcpd restart

Re: Advanced Networking- I'd like to modify netmask

Posted: Tue Aug 17, 2010 12:40 pm
by moredruid
take note that Amahi pulls a lot of config values out of it's main MySQL database. So if you want to change this permanently you'll have to dig around in MySQL and modify the values accordingly; otherwise your change won't survive a reboot.

Re: Advanced Networking- I'd like to modify netmask

Posted: Thu Aug 19, 2010 2:32 pm
by gruvtech
take note that Amahi pulls a lot of config values out of it's main MySQL database. So if you want to change this permanently you'll have to dig around in MySQL and modify the values accordingly; otherwise your change won't survive a reboot.
I'm glad you pointed that out. I would have been obliviously happy that my server was issuing the correct subnet...until I had to reboot (which is happening a lot since I'm still adding shares, etc).
I tried a reboot and it definitely does revert back to what it was.

I looked at http://forums.amahi.org/viewtopic.php?f=8&t=1567 and will try that.