Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Differences in hostname and netstat -i

Status
Not open for further replies.

grepper

Technical User
Jun 4, 2003
49
US
I have a server we cloned that is having some issues using rsh. I think the reason is differences in hostname and netstat -i.

When I issue hostname I get the correct hostname. When I issue netstat -i I still get the old hostname. I've removed the en0 interface and reconfigured it with no help. Anything in ODM that is holding that old hostname? I can't find anything. Any suggestions would be great.
 
How did you change the hostname on the new server?

What do you see when you smit tcpip, minimum config on the primary ethernet card (enX)? This should be the enX displayed with netstat -i. This might be the problem.



 
Setting a new hostname is not changing your Ethernet Adapters.

Run "smitty chinet" select the appropriate adapter and change the old IP Adress to the new IP Adress

Axel
 
All the setups are correct. Turned out the DNS sever was not changed.... Thanks for the suggestions.
 
If you changed the hostname and IP address and we can assume the mac address is different (different server) how could the DNS possibly think it was the old server ?
Unless the new server was using the same port on the switch and the switch thought that port was the old machine, or the hostname was mapped to that switch port !! can you do that ?
Must brush up on my networking if that is the case.
 
I didn't build the server, just asked to fix the rsh problem. They might have changed the network config of an older server, leaving the old MAC, and didn't update DNS.
 
Do you have any entries in the hosts file with the old hostname?
What does uname -n return?


"If you always do what you've always done, you will always be where you've always been."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top