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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server IP address 2

Status
Not open for further replies.

grega

Programmer
Feb 2, 2000
932
GB
Easy (dumb?) question ... how do I change the IP address of my server?

Greg. [sig][/sig]
 
By far the cleanest way of doing this is by running /usr/sbin/sys-unconfig

This will let you re-enter all those install type questions .. hostname, IP address, nameservices etc,etc.. Although bear in mind this will also invove a reboot [sig][/sig]
 
FYI .. I managed to do this, but all I had to do was change the IP in /etc/hosts, reboot and hey presto!

Greg.
[sig][/sig]
 
You might have a problem here, the IP address for your server is not just recorded in /etc/hosts. [sig]<p>Ged Jones<br><a href= > </a><br>Top man[/sig]
 
It sounds like you left something out ?

/etc/hosts is a way to resolve host to ip address.

[sig]<p>-Danny<br><a href=mailto: > </a><br><a href= > </a><br><br>
<br>
[/sig]
 
Hmmm .. thought it sounded easy ... but everything seems to work fine. ifconfig -a shows what I expect to see, etc. It's a very simple setup .. I have 2 Sparcs talking to each other over our LAN and all appear well. I took the advice from a colleague who's been at this for years. He advised me to change the IP in /etc/hosts, reboot .. and then mumbled something about hme0 picking up the new setting. As I say, I'm not an experienced admin but I trust him!

Greg.
[sig][/sig]
 
Hi,
I used do by changing the things in /etc/hosts and
/etc/netmasks and reboot. Everything works fine. In etc/netmasks you have to give both IP address and subnet mask. Any suggestions about this method.

Suresh. [sig][/sig]
 
hi,
u can change the IP addr of your server by

#ifconfig lo0:0 inet <ip-address> netmask<subnetmask>
broadcast<broadcast addr> down

#ifconfig le0 up
 
hi,
u can change the IP addr of your server by

#ifconfig lo0:0 inet <ip-address> netmask<subnetmask>
broadcast<broadcast addr> down

#ifconfig le0 up

Piyush
 
That method might or might not do it depending on whether or not the OP has a NIC card installed and, if so, the name of his interface is &quot;le0.&quot;

sys-unconfig isn't a bad way to go providing you have all the information it asks for after the reboot (which you probably should).

Russ
bobbitts@hotmail.com
 
I heard that sys-uncomfig for Solaris 8 does not work and/or
does bad things. Something to think about.

me
 
Not a problem ... I've just upgraded to 2.6 !!!

Greg.
 
unconfig works ok in solaris 8 used it recently ...
 
How abt the gateway?

I didn't specify a gateway since I don't know where to set it up. Then I sent an ICMP echo to one PC and then it said something like: Host Unreachable from gateway <ip add of machine> for ICMP echo from <ip add of machine>. So it's mistaking my box's IP for a gateway.
 
umm ... your local ip address is your gateway onto the local network ...

if the PC you were trying to contact was on a different network then you might need to tell your solaris box about the next gateway ...

if it is on the same network, and your netmasks are correct, and your IP address is correct, then you shouldn't have a problem ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top