Different hostnames with reboot while lan cable, no lan cable

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Different hostnames with reboot while lan cable, no lan cable
# 1  
Old 08-19-2010
Different hostnames with reboot while lan cable, no lan cable

I am facing strange problem regarding hostname on my Linux(2.6.18-164.el5xen x86_64 GNU/Linux), the hostname changes if reboot with lan cable and with NO lan cable


Reboot with lan cable:
  1. The hostname is ubunut
  2. Unable to connect Oracle database using sqlplus some times database is not started due to ORA-00600 error : internal error code, arguments: [keltnfy-ldmInit],[46],[1],[],[],[]
  3. If I change the hostname to localhost then able to start the database.
  4. Able to browse internet.
Reboot with no lan cable:
  1. hostname is localhost.localdomain,
  2. Oracle database started.
  3. Connected lan cable later but unable to browse internet( changed hostname as ubuntu , even though unable to connect to internet)
In both above two cases
/etc/hosts file has the blow entry:
127.0.0.1 localhost.localdomain localhost
/etc/syscinfig/network file has the below entry:
HOSTNAME=localhost.localdomain

To conclude , there are two issues, if the hostname is ubuntu unable to start database , if lan cable is connected after the reboot then unable to browse internet.


My system has two partintions, one is for windows, other one is for linux.
The windows partion also has ubuntu virtual machine.
Is this ubuntu vm is causing any issue while rebooting to linux portion while lan cable is connected?

Please suggestme to solve these issues,

Thanks
# 2  
Old 08-20-2010
Check if hostname is picked from dhcp when network cord connected..
# 3  
Old 08-20-2010
The issue has been resolved after changing the default hostname to some other name as below:
/etc/hosts file has been modified as:
127.0.0.1 myhost

/etc/syscinfig/network file has been modified as :
HOSTNAME=myhost

thank you
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Hardware

Cable for SUN x4200 DC

Hello, I have a spare SUN server X4200 with a DC PSU (oracle part number 300-2186) The PSU is the one in the photo I was looking in the net about what cable i can order but i couldn't find anything that fit there :) Any idea? Thanks! (2 Replies)
Discussion started by: @dagio
2 Replies

2. UNIX for Dummies Questions & Answers

question on RJ-45 cable

Hi, Quick question on RJ-45 cable. I ran ethernet cable, this cable is about 200 feet long. I only need 100 feet cable, does the extra length going to hurt in terms of speed or signal? Please advise. Thanks. (3 Replies)
Discussion started by: samnyc
3 Replies

3. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

4. Solaris

Cable link down

We are unable to ping from Sun Ultra 60 to Ultra 10 machine and vice versa. We are getting an error message Cable Link Down ?. It was working fine. Troubleshooting steps taken. 1) Changed the IPaddresses on both machines 192.168.10.10 and 192.168.10.20. These machines connected through 8 port... (2 Replies)
Discussion started by: vijaykrishna
2 Replies

5. AIX

need AIX console cable

Hello ... I am newbie and will be very grateful for any help. I need a serial console cable for my AIX boxes (seems we have lost the one we had!). However I am confused about the one one to order - UK based if possible. I wonder if anyone can point me at a specific one or the exact spec i need to... (0 Replies)
Discussion started by: tim441
0 Replies

6. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies

7. Solaris

Is the cable you are using a null modem cable or a modem cable

Hi all, Is there any difference between a null modem cable or a modem cable ? i assume that a null modem cable is a normal cable that i used from cpu serial ports to a modem for dialup. please correct if i am wrong, thks (2 Replies)
Discussion started by: waterbear
2 Replies

8. BSD

cable modem problem

hi I want to setup my cable modem under OpenBSD. I did not configure my network while installing the system. When I type, I get # ifconfig -a lo0 : .... ... ... rl0 : .... ... ... vr0 : ... ... ... I have two network cards (the machine will be a router). I created... (1 Reply)
Discussion started by: fnoyan
1 Replies

9. UNIX for Dummies Questions & Answers

cable modem to sparc

hi , i have sparc machine , i want to connect my le0 (ethernet interface) directly to cable modem , i have created a file resolv.conf,hosts, dhcp.le0,defaultrouter,nisswitch,hostname.le0. i dont know my cable companies <domain name> and <name server assigned to me> , also they even dont know how... (5 Replies)
Discussion started by: raju
5 Replies
Login or Register to Ask a Question