Changing IP Addresses, Gateways, and Masks for Solaris 2.6

Changing IP Addresses, Gateways, and Masks for Solaris 2.6

Post by Timothy R. Coggin » Sat, 22 Sep 2001 23:10:23



I need to change the IP address, gateway, and network masks for new sun
ultras running solaris 2.6.  i set these parameters when i loaded new
software or during initial installation.  what command should i use just to
set these parameters?  Thanks in advance for your assistance.

thanks,

tim coggins


=======================================================

 
 
 

Changing IP Addresses, Gateways, and Masks for Solaris 2.6

Post by Robert Sherma » Sat, 22 Sep 2001 17:58:18



> I need to change the IP address, gateway, and network masks for new sun
> ultras running solaris 2.6.  i set these parameters when i loaded new
> software or during initial installation.  what command should i use just to
> set these parameters?  Thanks in advance for your assistance.

man ifconfig

man defaultrouter

man netmasks

if you are using a name service (NIS or DNS) you may also want to:

man nsswitch.conf

man resolv.conf

--
robert sherman
css, cee
georgia institute of technology
atlanta, ga, usa

 
 
 

Changing IP Addresses, Gateways, and Masks for Solaris 2.6

Post by Lisa Ko » Sun, 23 Sep 2001 06:36:49


edit the file /etc/inet/hosts  and change the IP number
edit the file /etc/defaultrouter and change the gateway
edit the file /etc/netmasks and change the netmask

As Timothy  said, if you're using nis and/or dns, you should
also edit the following two files and update the info
nsswitch.conf and resolv.conf

Then reboot the server and have fun



> > I need to change the IP address, gateway, and network masks for new sun
> > ultras running solaris 2.6.  i set these parameters when i loaded new
> > software or during initial installation.  what command should i use just to
> > set these parameters?  Thanks in advance for your assistance.

> man ifconfig

> man defaultrouter

> man netmasks

> if you are using a name service (NIS or DNS) you may also want to:

> man nsswitch.conf

> man resolv.conf

 
 
 

Changing IP Addresses, Gateways, and Masks for Solaris 2.6

Post by drps » Sun, 23 Sep 2001 13:00:47


type 'sys-unconfig'.  follow the prompts.

/sam



> I need to change the IP address, gateway, and network masks for new sun
> ultras running solaris 2.6.  i set these parameters when i loaded new
> software or during initial installation.  what command should i use just
to
> set these parameters?  Thanks in advance for your assistance.

> thanks,

> tim coggins


> =======================================================