change my current IP address

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Special Forums IP Networking change my current IP address
# 1  
change my current IP address

Dear All ,

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

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  
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  
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!

# 4  
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, then click on support and there should be a "patchfinder" link or something named similar to that.
# 5  
Hi rhfrommn ,

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

Good Day
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #213
Difficulty: Medium
OSPF-TE is an extension to OSPF extending the expressivity to allow for traffic engineering and use on non-IP networks.
True or False?

10 More Discussions You Might Find Interesting

1. IP Networking

Cannot change mac address

ubuntu / xubuntu 13.10 and 14.04 (this issue should exist in debian as well) I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the original mac address, macA, and the new mac address, macB. I do the following: ifconfig wlan0... (2 Replies)
Discussion started by: arpagon
2 Replies

2. UNIX for Dummies Questions & Answers

How can i change the ip address in RHEL 6?

I need to change the ip address in RHEL 6 . Please tell me the files to be edited....complete procedure.......... Don't tell the graphical method ........ Explain everything in CLI ........... Thanks in Advance:b: (3 Replies)
Discussion started by: vamshigvk475
3 Replies

3. Slackware

/boot: how do I change the current kernel?

Slackware 14.0 Hi: I once changed the smp kernel running in my system by another one in /boot. What I did was to relink /boot/, /boot/vmlinuz and /boot/config. But I don't remember if I did something else. Would that alone be OK. (4 Replies)
Discussion started by: stf92
4 Replies

4. UNIX for Dummies Questions & Answers

Change time with current year

Hi, How can i change the time below (red font) with the current year? Thank You in advance. hostname 2007-Feb-9 /u100/DEVCO/Patching a.log hostname 2010-Jun-25 /u100/DEVCO/DumpCleaner a.log hostname 2011-Jun-25 /u100/DEVCO/DumpCleaner/sample a.log hostname 23:44-Jun-25... (2 Replies)
Discussion started by: lienyca
2 Replies

5. AIX

Change specific (not current) date to timestamp

Hello to all. I work at AIX system without perl installed and I am restricted user, so I am limited to bash. In script that I am writing, I have to read line from file and transform date that I found inside to Unix timestamp. Line in file look something like this: Tue Mar 29 06:59:00... (5 Replies)
Discussion started by: Hyperborejac
5 Replies

6. HP-UX

How to change the email from address?

Hi Friends, I am facing one issue with my hpux server. I used to send mail from the hpux server directly to the customer id. By default the from address includes the complete hostname(eg:- My domain name is registered, but this individual hostname is not... (1 Reply)
Discussion started by: arumon
1 Replies

7. Shell Programming and Scripting

change from address in mailx

Hi, i am sending mails regulary for updation of data. The from addresses dispaly like i want display like can u help me on this. (1 Reply)
Discussion started by: koti_rama
1 Replies

8. UNIX for Dummies Questions & Answers

How to change current working directory for dbx on UNIX?

How to change current working directory for dbx on UNIX? means I'll run pgm from one directory , but getcwd() should return path which I want to be, which is not d current dir :) (5 Replies)
Discussion started by: login0001
5 Replies

9. IP Networking

Change a Unix IP address

I have purchased a Dec unix Ver 3.2c machine that is about ten years old. I need to get this machine on our network (windows 2003 domain) so I can copy files to it. I know I need to change the IP address, but where and how do I change it? What else do I chang? Thanks Randy (8 Replies)
Discussion started by: randy1
8 Replies

10. IP Networking

How to change IP address

Can anyone tell me how to change the IP address on a unix server, as I have no idea whatsoever. Thanks (2 Replies)
Discussion started by: itservices
2 Replies

Featured Tech Videos