LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network connections cut-out but pinging IP works: two lan cards+dhcp server+www (https://www.linuxquestions.org/questions/linux-networking-3/network-connections-cut-out-but-pinging-ip-works-two-lan-cards-dhcp-server-www-789119/)

Cyberman 02-14-2010 08:21 PM

Network connections cut-out but pinging IP works: two lan cards+dhcp server+www
 
Alright, here is the ordeal...


Ethernet port (wired internet) <---> Desktop 1 <---> Server 1

Server 1 details:
Debian Linux box with DHCP3-server setup.
Gives Desktop 1 its IP address after IP request.
Desktop 1 connects to Server 1's SSH server.

Ethernet port details:
Comes from wall
Gives Desktop 1 it's wired connection

Desktop 1 details:
Main computer that connects to LCD monitor
Used to connect to Ethernet Internet and Server 1.
Runs using Windows XP and Debian Lenny

PROBLEM:
After connecting to the ethernet port and Server 1, Desktop 1 eventually cannot resolve dotcom addresses. A recent trial with pinging the IP address of google (74.something.something.something) allowed me to ping the website. As such, I have come to consider this is a DNS issue.

I have no clue as to why this is an issue. It makes NEGATIVE ONE sense to me.

ODD FACT:
It would appear that Windows XP does not have a problem with being assigned an IP address from the ethernet port nor from the Linux Server 1 computer AT THE SAME TIME. I want two cards working, but their getting their IP addresses from different setups. I don't know why Windows on the Desktop seems to be working ok and that when I use Debian Lenny on the Desktop things go down for me.

Weird DNS issue to say the least.
I'm not sure what to do.

I have forced a dhclient eth0 and dhclient eth1 in the rc.local script, so they do get their ip addresses at start. I've also uninstalled firestarter with the thought that it was messing with things. I also have disabled network manager, because it didn't like me using two cards at once. So, yes, rc.local is what's making things connect now. However, I'm still getting some weird issue.

What's the solution, folks?

krquinby 02-14-2010 08:43 PM

When your desktop stops resolving DNS names, what DNS server is it trying to use? If it is trying to use your Server1, is Server allowed to send Internet bound traffic through the desktop (is the desktop set up to allow routing between two networks)? Does server1 have a DNS server (or at least query forwarding) enabled?

Cyberman 02-14-2010 08:53 PM

Server 1 does not act as a DNS server. It serves only to access as an SSH server from Desktop 1.
Desktop 1 and Server 1 are in the same room, as is the ethernet port.

I'm also noticing something funny.
Maybe someone can refresh my memory as to how Debian Linux works, because maybe someone just implemented something new in the Debian system.

Isn't rc.local suppose to be executed before GDM? Because it's not being executed before nautilus is done loading, which I thought it was suppose to be... hmm...

Anyway, I've been noticing that on startup that ethernet 1 is requesting an IP address but eth0 is not requesting an ethernet address. Furthermore, after forcing eth0 to get an address, it would appear that the resolv.conf turns toward wanting Server 1 (eth0 connects to Server 1) to resolve the DNS addresses.

I recently went to...

System > Administration > Network and signified some criteria for eth0.
I set a static IP and the netmask.
The dhcpd.conf on Server 1 is setup to give Desktop 1's eth0 card the static IP address.

I notice that eth1 does get the correct DNS server information in resolv.conf but once I start trying to get an IP address for eth0, it would appear that Desktop 1 thinks that Server 1 is the DNS server, which is just not right.

I've also begun to notice that rc.local is executed after nautilus loads. I thought it was the other way around: rc.local is executed before nautilus is executed. Either way, I suspect if I insert a "pkill gdm;gdm &" command into rc.local, then that should straighten things out.

Still, I think the Desktop's DNS confusion is odd, and I'm not sure if I'll have it solved after this rc.local alteration I'm about to commit.

krquinby 02-14-2010 09:07 PM

Server1's DHCPH config is over writing resolv.conf which gets back to my original question. Change the DHCPH config to not give out a DNS server. Are you using DHCP for experience? I don't see another point if there is only one client computer.

Cyberman 02-14-2010 09:30 PM

Alright, I went into dhcpd.conf on Server 1 and disabled the DNS option.
I think that will make sure it doesn't move over to the Server 1's DNS property again.

Still, this rc.local issue is bothering me.
I'll have to figure that out next.
I think my issue is figured for now on the DNS ground.
Thanks.


All times are GMT -5. The time now is 07:36 AM.