The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to change the ip address in solairs box phatan Forum Support Area for Unregistered Users & Account Problems 1 01-29-2008 09:49 AM
How to change current working directory for dbx on UNIX? login0001 UNIX for Dummies Questions & Answers 5 04-26-2007 07:47 AM
Change a Unix IP address randy1 IP Networking 8 12-26-2006 05:58 AM
How to change the IP address on SUN Solaris? gkr SUN Solaris 3 12-07-2006 09:06 AM
How to change IP address itservices IP Networking 2 11-01-2006 01:37 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-09-2004
tamemi tamemi is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 78
change my current IP address

Dear All ,

I have Sun Solaris 8 machine . during installation i gave the machine ip address 192.168.0.50 and gatway 192.168.0.1 .

now i hvae to change the IP address and the gateway ! how ??

i know i have to use ifconfig , but how can i change it and the gateway ???

also where from i can have a .zip or .tar.gz or any compressed full patches for sun solaris 8 ???

thanks alot
  #2 (permalink)  
Old 03-09-2004
cw1972 cw1972 is offline
Registered User
  
 

Join Date: Sep 2003
Posts: 23
in SuSE linux you would set the default gatewat in the file /etc/sysconfig/network/routes

and in RedHat Linux you would set the defaul gateway in /etc/sysconfig/network-scripts/ifcfg-eth0 by adding the 'GATEWAY=' option

no idea about solaris though, sorry
  #3 (permalink)  
Old 03-09-2004
rhfrommn rhfrommn is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2003
Location: Minnesota
Posts: 420
You set your gateway in /etc/defaultrouter. Edit that file with the new IP you need.

To set the IP of the machine you change the entry in /etc/hosts for the hostname of the machine. Make sure /etc/hostname.hme0 (or whichever interface you are using) has the correct hostname in it.

Change both of those and reboot and you'll be all set. If you want to do it without rebooting, make those changes so it does come up correctly next time then do the following:

1. Use the route command to set your default route on the fly. It should be

route add default IP_OF_GATEWAY

but check man route to be sure you get the syntax right for what you're needing to do.

2. Use ifconfig to change the IP address of the interface on the fly. It should be

ifconfig hme0 down
ifconfig hme0 NEW_IP_ADDR
ifconfig hme0 up

Again, use the correct interface if you're not on hme0.

Good luck!

Ralph
  #4 (permalink)  
Old 03-09-2004
rhfrommn rhfrommn is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2003
Location: Minnesota
Posts: 420
Oh yeah, on the patches part you should download the "Recommended Solaris 8 Patch Set" from Sun's website. That contains the kernel jumbo patch and all other critical and security patches for Solaris. It is pretty easy to find, just go to www.sun.com, then click on support and there should be a "patchfinder" link or something named similar to that.
  #5 (permalink)  
Old 03-10-2004
tamemi tamemi is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 78
Hi rhfrommn ,

Thanks for your good information .
it worked with me .
and i found the set of patches .

Good Day
Sponsored Links
Closed Thread

Bookmarks

Tags
suse linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0