Visit The New, Modern Unix Linux Community


AIX How to exchange hostname and IP address between two AIX servers?


 
Thread Tools Search this Thread
Operating Systems AIX AIX How to exchange hostname and IP address between two AIX servers?
# 1  
AIX How to exchange hostname and IP address between two AIX servers?

Hi all,

I am trying to exchange hostname and IP address of two AIX machines.

But i am confused as how to change it ?
do i need to use "smitty mktcpip" or "smitty tcpip" ?

what is the difference between smitty mktcpip and smitty tcpip ?

Also anymore steps to follow or just updating using smitty is enough (hoping that no reboot is required)

Also below is the procedure i want to use for the whole process of swapping hostname and IP address:

1) remove server A from network and update hostname and IP address (to Server B's hostname and IP) using smitty

2) move network connection cables from server B to server A

3) update hostname and IP of server B (to that of server A's old values)

4) attach network cables removed from server A to server B

Does this procedure is good to go ?

Thanks in advance!
# 2  
Quote:
Originally Posted by lramsb4u
what is the difference between smitty mktcpip and smitty tcpip ?
These are so-called "fastpaths". Instead of calling "smitty" (which takes you to a main menu) and going through a series of smitty-panels you can go to a certain panel directly. If unsure, just use "smitty" and follow the panels, they are pretty self-explanatory.

Quote:
Also anymore steps to follow or just updating using smitty is enough (hoping that no reboot is required)
No, that is enough. Hostname and IP address only take a "touchdown" (stop/start) of the network. Depending on the IP addresses involved you might need to change also the routing, but this need no reboot too.


Quote:
1) remove server A from network and update hostname and IP address (to Server B's hostname and IP) using smitty

2) move network connection cables from server B to server A

3) update hostname and IP of server B (to that of server A's old values)

4) attach network cables removed from server A to server B
Looks good. The only thing you have to avoid is to have the same IP address twice on the network. Pulling cables is a pretty sure way of avoiding to be on the network, regardless of the validity of the IP address. ;-))

I hope this helps.

bakunin
# 3  
i believe the short cut would be

Code:
smitty inet

# 4  
smitty tcpip - fastpath to general tcpip menu selection
smitty inet - fastpath to change/add ip address only
smitty mktcpip - fastpath to set ip address, hostname, default route, dns info all in one dialog. Normally, mktcpip should only be used once because it also updates /etc/hosts. The common error is to use the mktcpip for multiple NIC (interfaces) and the single hostname gets set multiple times in /etc/hosts to different addresses.

So, what I would add to your procedure is to review /etc/hosts on both systems and verify no double/incorrect entries remain behind or get added.

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

Test Your Knowledge in Computers #562
Difficulty: Easy
Normally, the control flow of a program is sequential: each statement is executed right-to-left the next statement before the current statement.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

AIX Syslog where the hostname sit

Dear all experts, I would like to know where can I find the hostname located as when I receive the syslog, I can only see as below : (showing in localhost instead of the hostname) Feb 6 15:31:31 localhost syslog:info syslogd: restart Feb 6 15:31:50 localhost syslog:info syslogd: restart Feb... (13 Replies)
Discussion started by: kwliew999
13 Replies

2. UNIX for Advanced & Expert Users

AIX - Sendmail - add hostname to subject of outgoing mail

Hello, I'm configuring sendmail on an AIX 7.1 server (bos.net.tcp.client 7.1.1.15). I've gotten sendmail to send mail through our Novell GroupWise server, so that mail from a user on the server appears to come from their GroupWise account, and replies to the email would go to their GroupWise... (0 Replies)
Discussion started by: eyebeam
0 Replies

3. AIX

Enable send email through smtp - exchange on AIX 6.1

Please help, i can not to send email from AIX 6.1 to outside network through STMP - Exchange. Any one can help ? (1 Reply)
Discussion started by: ichsan
1 Replies

4. AIX

pwage-aix for IBM AIX servers

This is the password aging script for aix just completed. So far tested and still testing on one of our aix server running 5.3.0.0. So anyway as you can see it is very similar to pwage-hpux-T the only difference on aix /etc/passwd file looks in this format. Also for this script to work you need to... (0 Replies)
Discussion started by: sparcguy
0 Replies

5. AIX

CD Rom shared for many AIX servers.

Guy's I have more than 20 servers available in different locations and I want to configure CD Rom as NFS between these servers to be sharedCan any one explain the configuration how can NFS or share CD rom between more than 20 servers available in different locationsto be used in one time from all... (5 Replies)
Discussion started by: Mr.AIX
5 Replies

6. AIX

AIX Servers Ugrading to 6.1

Hi, I am very new & I am upgrading the AIX OS 5.3 to 6.1 by CD/DVD media. Before Upgrading I must backup the data, right? I have to boot from CD then the server will start the process. So during the upgrading, the applications of this AIX Box will be accessible to the Apps users or not? ... (1 Reply)
Discussion started by: Tahniet
1 Replies

7. AIX

Synchronize time on several AIX servers ?

Hi, I want to synchronize time on several AIX servers - I don't want to set very precise time value, but I want all the servers to have same time value. How do I do that ? thanks Vilius (2 Replies)
Discussion started by: vilius
2 Replies

8. AIX

aix email integration with exchange

Hi All, I realized now that the root email is integrated with exchange. All the email of root is now being sent also to the aliases of aixadmin or to my email. I would like to know how is AIX integrated to exchange. What would be modified on AIX? Probably modify these files: /etc/hosts,... (0 Replies)
Discussion started by: itik
0 Replies

9. UNIX for Dummies Questions & Answers

Fax Servers for Linux/AIX

At the company where I work, use a product called VSI-FAX. It works nicely, but the maintenance has proven to be very poor grade. So, I'm interested in any experiences using other fax servers that run on Linux or AIX and what issues/gotchas were run into and overcome and how. I'm considering... (0 Replies)
Discussion started by: kpearson
0 Replies

10. UNIX for Dummies Questions & Answers

Changed the hostname/IP and broke it (AIX)

A buddy of mine bought an older RS/6000 CAD workstation runing AIX to learn on, and had me put it on his LAN at home. I used smit to change the hostname/IP. After a reboot I try to login, and get a message saying that DTMessage cannot start, and gives a changed hostname as one of the possible... (3 Replies)
Discussion started by: 98_1LE
3 Replies

Featured Tech Videos