ifconfig - making netmask & broadcast address permanent?

hi,

I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address.

I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated.

before reboot:

eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.xxx.xxx.xxx netmask ffffff00 broadcast 10.244.210.255

after reboot:

eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.xxx.xxx.xxx netmask ff000000 broadcast 10.255.255.255

i've added the right setting in /etc/netmasks:
10.xxx.xxx.xxx 255.255.255.0
but still no joy - it resets after each reboot.

Any ideas?

vi /etc/hostname.eri0

10.xxx.xxx.xxx netmask + broadcast + up

or

10.xxx.xxx.xxx netmask 255.255.255.0 broadcast + up

many thanks - it turns out the stuff i blanked out was infact wrong. I was using the ipaddress, when it should have been the network address. doh!

all sorted now!

Or you could have put:

# Network   Mask
#
10.0.0.0    255.255.255.0

into /etc/netmasks.

See: http://www.charvolant.org/~doug/network/html/node9.html#SECTION00063123000000000000