LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IP address and gui mode problem (https://www.linuxquestions.org/questions/linux-newbie-8/ip-address-and-gui-mode-problem-911371/)

loveulinux 11-01-2011 08:05 PM

IP address and gui mode problem
 
Hi..All,
Few days back we turned off the servers to remove the dust. All of the servers are working fine after switching on.
But one server(ubuntu 9.04) is not able to boot to GUI mode and GUI mode will cuts off in the middle while booting to GUI and monitor shows to check display.
In the same server, the IP address is frequently changing itself to dhcp even static IP address given in /etc/network/interface. Here is the output of those files.
Quote:

cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

auto eth4
iface eth4 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
Quote:

cat /etc/resolv.conf
nameserver 192.168.0.1
There are only two NICs. Although it is showing eth4 instead of eth1 if run
Quote:

mii-tool
The cable is connected to eth4 and no one cable is connected to eth0. Everything will be working fine only for 1 or 2 days in ubuntu 9.04 server. We are not coming to know when and why eth4 address is changing to dhcp.
Please help me masters in fixing up GUI mode and permanent static IP to eth4.

malekmustaq 11-01-2011 08:34 PM

Hard wired connection. I don't say do this, but if I was in your shoes I will do the ff:
Try shut down the machine. Carefully detach cable and all lan cards (eth0 and eth4); clean the contact pins, re-attach eth0 card properly in its place see that all pins take the bite; do not re-attach the eth4; attach the lan cable into the eth0 (meanwhile condemn eth4). In your /etc/network/interfaces comment everything about eth4 and leave eth0 configuration as is. Reboot. Observe. Come back.

Gui in a server? I don't believe servers need GUI. Anyway that's Ubuntu right? Check your xorg.conf.

Hope that helps.

loveulinux 11-01-2011 11:52 PM

IP address and gui mode problem
 
Thanks for reply.
We are having Intel Xeon server, so both eth0 and eth1 are built into the motherboard and we can't remove LAN cards. So how can I fix this IP address problem master?
And you are right, the server doesn't need GUI mode. But other admins don't have much experience about CLI. So if the server has GUI, they can fix up such problems on my behalf.



Quote:

Originally Posted by malekmustaq (Post 4513726)
Hard wired connection. I don't say do this, but if I was in your shoes I will do the ff:
Try shut down the machine. Carefully detach cable and all lan cards (eth0 and eth4); clean the contact pins, re-attach eth0 card properly in its place see that all pins take the bite; do not re-attach the eth4; attach the lan cable into the eth0 (meanwhile condemn eth4). In your /etc/network/interfaces comment everything about eth4 and leave eth0 configuration as is. Reboot. Observe. Come back.

Gui in a server? I don't believe servers need GUI. Anyway that's Ubuntu right? Check your xorg.conf.

Hope that helps.


hen770 11-02-2011 12:20 AM

Just to be clear, there is just one cable that is attached to the serevr correct?
What ifconfig brings?

loveulinux 11-02-2011 07:51 AM

IP address and gui mode problem
 
Yes, only one cable is connected to eth4. ifconfig brings up 3 interface eth0-192.168.1.2, eth4-192.168.0.2 and lo. I have given static IP to eth0 because if I give dhcp and since no one cable is connected to eth0, it will not get any dhcp address and takes long time to complete
"/etc/init.d/networking restart" command. Please see the mii-tool output.
Quote:

#mii-tool
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
No MII transceiver present!.
SIOCGMIIREG on eth4 failed: Input/output error
SIOCGMIIREG on eth4 failed: Input/output error
eth4: negotiated 1000baseT-FD flow-control, link ok

Quote:

Originally Posted by hen770 (Post 4513824)
Just to be clear, there is just one cable that is attached to the serevr correct?
What ifconfig brings?



All times are GMT -5. The time now is 01:01 PM.