Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change IP address

Status
Not open for further replies.

ahmedmt1981

Technical User
Nov 22, 2006
20
AE
Dears
I have V210 and it has an already installed interfaces with IP addresses
how could I change the IP's with the gateway
thanks
 
I don't entirely understand what you want to do.

To change a Solaris system's IP Address, all you need to do is edit /etc/hosts and reboot the system.

To change the Gateway IP Address, all you need to do is edit /etc/defaultrouter and enter the [new] Gateway IP Address.

I hope that helps.

Mike
 
Mike is right, however if the box is running Solaris 10 you need to edit two files to change the IP address:

1. /etc/hosts
2. /etc/inet/ipnodes

Steve
 
I am running an Ultra 60 with solaris v8. I run the command

#ifconfig –a --- to check the configuration
#ifconfig qfe0 plumb --- to enable the first Network Interface Card
#ifconfig qfe0 <ip address> netmask <subnet> up --- to bind IP address, subnet, and enable the configuration

I also edit the etc/defaultrouter and insert the default gateway.

All IP address and subnet mask information is correct.
The default gateway seems to be ignored when i try to ping off net. I insert a route (route add) and then everything works.

My biggest issue is that on a reboot all of this information is erased and my adapter has no configuration. How do i make the ip address and default gateway stick?

All help is very much appreciated...
 
From SUN FAQ

Static routes are usually only used in conjunction with a /etc/defaultrouter. You might do so if you had a couple of networks which you did not want to go through your defaultrouter. In that case, you will probably want to make the routes permanent, by adding the route commands to the /etc/init.d/inetinit file.

You can not use the above method to add static routes if you are running in.routed, as in.routed will automatically remove them after 90 seconds. If you are using in.routed, but want to include a few static routes, you can do this with the /etc/gateways file.


A simpler approach to this question would be to create an init script and add your routes:

vi /etc/rc2.d/S76static-routes

route add net 192.168.10.0 netmask 255.255.255.0 192.168.10.1 1

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top