changing ip and hostname on solaris


 
Thread Tools Search this Thread
Operating Systems Solaris changing ip and hostname on solaris
# 1  
Old 06-11-2007
changing ip and hostname on solaris

dears

does any one know in steps how can i change ip and hostname on solaris
# 2  
Old 06-11-2007
Dear Murad,

for change your ip, first add your new ip in /etc/hosts file
than for activate your new ip can using this command
Code:
ifconfig [interface] [yournewip] subnetmask [yoursubnetmask] up

for see that you new Ip was activated use
Code:
ifconfig -a

for change hostname i'm not yet know Smilie

regards,

heru
# 3  
Old 06-11-2007
put hostname in /etc/hostname.[interface]

eg /etc/hostname.le0 or /etc/hostname.hme0

and

/etc/nodename

Last edited by porter; 06-11-2007 at 06:22 AM..
# 4  
Old 06-11-2007
On Solaris 10 you (may) need to update all of the following files.
Code:
     /etc/defaultdomain
     /etc/defaultrouter
     /etc/hostname.interface
     /etc/inet/hosts
     /etc/inet/netmasks

or Solaris < 10 yo may also need to update
Code:
     /etc/net/*/hosts

bear in mind also that may applications use this kind of information, and may break if you change it.
# 5  
Old 06-11-2007
Additionally, on Solaris 10, you'll need to modify /etc/inet/ipnodes.

Cheers,
ZB
# 6  
Old 06-11-2007
Quote:
Originally Posted by zazzybob
Additionally, on Solaris 10, you'll need to modify /etc/inet/ipnodes.

Cheers,
ZB
Yes, I forgot that one.
# 7  
Old 06-11-2007
thats why when i see this thread,
i prefer to sys-unconfig -- erase them all, restart from scratch blank system,
there are to many to change.

cheers.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris Hostname

Hi, I am installing Solaris 11.3 as a local system using no remote connections. The installer asks for a computer name or would be used as the hostname. Can I select any name ? Like solaris 11 or localhost ? I noticed this is added into the /etc.hosts file later. ie example. localhost ... (2 Replies)
Discussion started by: dylan69
2 Replies

2. UNIX for Dummies Questions & Answers

Solaris - How to get IP Address from a hostname?

We are using Solaris as our database OS. Can you please help me to know how can i get the IP address of a solaris machine in my network from its hostname? e.g. We have a remote database server with the hostname as xyz. Without connecting to the database OS, can i get the IP address of xyz OS from... (1 Reply)
Discussion started by: Anmol Sharma
1 Replies

3. Solaris

SVM - Metadevices are offline after changing hostname solaris x86

Hi , We are facing an issue on one of our solaris x86 server, After changing the hostname and a orderly reboot , all metadevices shows offline. please let us know the steps to restore back all metadevices to working state with this new hostname (3 Replies)
Discussion started by: karthick.sh
3 Replies

4. Solaris

changing hostname on Solaris 8 ?

hi, does anyone had experience changing hostname on Solaris 8 ? any idea how is it done ? (4 Replies)
Discussion started by: Exposure
4 Replies

5. Solaris

hostname on Solaris

Hi All, I am wondering how does the hostname command decides what is the actual hostname. Where does the command take the information from? (7 Replies)
Discussion started by: lmishkind
7 Replies

6. UNIX for Dummies Questions & Answers

Changing IP & hostname

I have to do this twice. First, A) change IP address, subnet & default gateway. then a few days later B) change IP address again (same subnet & gateway) & hostname. (why twice? To get the vlan stuff out of the way in advance) what is the best way to do A? can all be done through... (5 Replies)
Discussion started by: LisaS
5 Replies

7. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

8. UNIX for Advanced & Expert Users

How to stop DHCP from changing hostname

Hi, greetings. I have installed OS 10 on sunfire 240. FOr now let dhcp to give IP address but it keeps chaning hostname. How do I stop this? thanks Jaya (3 Replies)
Discussion started by: vr76413
3 Replies

9. UNIX for Dummies Questions & Answers

Hostname lost when changing user

Hello to all, Does anyone have a clue for the following problem? When I enter into a terminal console window logged as axadmin user, what I find in the prompt is: “axadmin@sunhost$”. But, when I switch to root user, with the command “su -“ and enter the correct password, user root is... (4 Replies)
Discussion started by: Pablo_BR
4 Replies

10. UNIX for Dummies Questions & Answers

what happen when changing Hostname?

I 'm using RH 7.2 Genome in the Network Configuration I change therer are two places one for static hostname for my machine and in DNS hostname I don't know what happen when restarting my PC when connecting using dialer I can't browse the Internet also I can't use sendmail .......Server timeout... (2 Replies)
Discussion started by: atiato
2 Replies
Login or Register to Ask a Question