pls, its urgent... change IP,netmask and broadcast on solaris 8- make them permanent after reboo

Hi,

I want to change an IP and netmask and broadcast of a machine using solaris 8 but after I reboot the changes are lost. The IP is remembered but the netmask and broadcast are lost. In /etc/netmasks the last line has the new netmask that I established, all the lines before this line are comment.

I do:

ifconfig bge0 down

ifconfig bge0 new_IP netmask new_netmask broadcast new_broadcast

ifconfig bge0 up

It works for the moement, but after I reboot it does not work any more and I have to do it all again. What should I do to make the changes permanent?

Thank you for your help!

Serban

[797 byte] By [poli] at [2007-11-25 22:42:52]
# 1

To make the netmask permanent and with the result the broadcast as well you need to make changes to the /etc/netmask file.

You say that u have done it but it seems that the entry is not right.

The way to make the entries is to have the proper network no followed by the netmask.Calculate the Network Number based on the IP and netmask and put in the right entries.

The entry shd be like

192.168.1.0255.255.255.0

Which means that for all the IP addresses in the range 192.168.1 would have the subnet mask of 255.255.255.0

And i suppose u have the right ip address in the /etc/hosts file.

Aamirsaleem at 2007-7-5 14:22:39 > top of Java-index,General,Network Configurations...