Description

How to change the netmask and gateway on a solaris sunfire server

Symptoms


Solution

To change the subnet mask, edit this file: /etc/netmasks

and changed the subnet mask to what you require.

Next, to change the default gateway, edit this file:

/etc/defaultrouter

and I changed the default gateway to what you require.

Lastly, reboot the box when you are completed and then go back and view that the chnages are still there...

  To change a Solaris ip address, merely:
- Edit /etc/inet/hosts and change the ip addresses.
 Then reboot.

To see your current ip address, netmask, just use:
/usr/sbin/ifconfig -a

Former Article Id

nskb8146