Advanced Networking- I'd like to modify netmask

User avatar
volkswagner
Posts: 4
Joined: Fri Jul 02, 2010 9:16 am
Location: NY's 1st Capital
Contact:

Advanced Networking- I'd like to modify netmask

Postby volkswagner » Fri Jul 02, 2010 9:25 am

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
Nothing is ever easy, but if it is difficult you must be doing it wrong.
My wife's invention doll carrier

gruvtech
Posts: 6
Joined: Sun Jul 11, 2010 8:38 pm

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

Postby gruvtech » Mon Aug 16, 2010 8:34 pm

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.

gruvtech
Posts: 6
Joined: Sun Jul 11, 2010 8:38 pm

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

Postby gruvtech » Tue Aug 17, 2010 8:11 am

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

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

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

Postby moredruid » Tue Aug 17, 2010 12:40 pm

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.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

gruvtech
Posts: 6
Joined: Sun Jul 11, 2010 8:38 pm

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

Postby gruvtech » Thu Aug 19, 2010 2:32 pm

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.

Who is online

Users browsing this forum: Google [Bot] and 21 guests