how to change the subnet mask of interface

Hi all,

could you please tell me how to Change the subnet mask of interface aded:1 from ffffffc0 to ffffff80

regards
Krishna

You can use ifconfig and you should also update /etc/netmasks

give some examples please.

regards
Krishna

1) Edit /etc/inet/netmasks with the subnet and netmask information for
example:

# 10.82.3.0 255.255.255.0

2) If the interfaces are already plumbed/up on that particular server
than issue the following:

# ifconfig -a netmask + broadcast + <ENTER>

This will change the netmask on the fly as well as persistantly.

Hi incredible,

I am OK with your example, but i have still doubt on change the subnet mask value.

where i can change this value ffffffc0 to ffffff80. please give another example.

Many thanks for your help on this.

regards
Krishna

Using the search function of this website or google would get you plenty of examples. There are man pages for both included in the Solaris OS and Sun Microsystems Documentation has detailed documents. You have to do some of the work yourself.

ffffffc0 is 255.255.255.192 and ffffff80 is 255.255.255.128.

Use the decimal notation in your /etc/netmasks file.

Hi incredible,

Thank you for your help.

regards
Krishna