change my current IP address


 
Thread Tools Search this Thread
Special Forums IP Networking change my current IP address
# 1  
Old 03-09-2004
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  
Old 03-09-2004
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  
Old 03-09-2004
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  
Old 03-09-2004
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  
Old 03-10-2004
Hi rhfrommn ,

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

Good Day
Login or Register to Ask a Question

Previous Thread | Next Thread

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. Debian

How to change local IP address?

I have a new Ethernet device that has a default IP address on a different subnet and need to change it. I have a Debian 6.0 host connected to the device with a crossover cable and have changed the host /etc/hosts and /etc/networks files to the same subnet as the new device and rebooted. Ping... (2 Replies)
Discussion started by: snorkack59
2 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/System.map, /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:- user1@hostname.domain.com). 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 POP.RECH@skk182.com i want display like oracle@skk182.com 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
Login or Register to Ask a Question