LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2008, 09:32 AM   #1
neuromancer101
LQ Newbie
 
Registered: May 2008
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Thumbs down Configuring a dual network Debian etch webserver


Hi guys,

I'm currently configuring an old Dell poweredge 750 as a webserver. It has 2 network ports, so I was planning to use one for internal LAN and the other for WAN. The problem I'm having is that every so often the WAN side just drops off, and it's no longer reachable on the WAN interface (eth0). I suspect it's something to do with routing and having 2 default gateways.

Routing table as follows: (apologies if it doesn't display properly)


Destination Gateway Genmask Flags Iface
62.189.19.xxx 0.0.0.0 255.255.255.128 U eth0
192.168.50.xxx 0.0.0.0 255.255.255.0 U eth1
0.0.0.0 62.189.19.xxx 0.0.0.0 UG eth0
0.0.0.0 192.168.50.xxx 0.0.0.0 UG eth1



output from /etc/network/interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 62.189.19.xxx
netmask 255.255.255.128
network 62.189.19.xxx
broadcast 62.189.19.255
gateway 62.189.19.xxx
dns-nameservers 192.129.12.xxx 195.129.12.xxx 195.129.12.xxx
dns-search local

allow-hotplug eth1
iface eth1 inet static
address 192.168.50.xxx
netmask 255.255.255.0
network 192.168.50.xxx
broadcast 192.168.50.255
gateway 192.168.50.xxx
dns-nameservers 192.168.50.xxx
dns-search local


I've also noticed that doing simple things like apt updates takes a very long time, so there must be some networking issue somewhere in the config.

I also have an iptables firewall configured to do the usual, though I doubt that config is causing the problem as it's still present even when I turn the firewall off.

Any help would be appreciated.
 
Old 05-29-2008, 02:03 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Is the 192.168.50.X a flat network ? (No more privately addressed networks inside your organization)

Drop the default route for 192.168.50.0 it should not be needed since everything in that address range is directly connected in a flat network space, at least that would be where I would start..

A default route statement basically says, "Any traffic that you don't have a specific route for in the routing table send out this interface.." your system could be trying to send internet traffic out the eth1 interface since it is set as a default route. Obviously traffic destined for the Internet will never get anywhere if it's directed to your internal network by that bogus default route statement.

You have a route for the 192.168.50.x network in the statement 192.168.50.xxx 0.0.0.0 255.255.255.0 U eth1 a default route is not needed to reach this network.
 
Old 06-02-2008, 04:27 AM   #3
neuromancer101
LQ Newbie
 
Registered: May 2008
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

That did the trick, thanks!!
 
  


Reply

Tags
debian, routing



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble configuring 2 network cards.in Debian Etch that Linux guy Linux - Networking 1 05-27-2008 06:40 PM
Configuring wireless adapter in Debian etch ehsantux Linux - Wireless Networking 6 03-06-2008 08:30 PM
Configuring Exim routing Debian Etch wonderd Linux - Server 3 06-18-2007 06:42 PM
Dual boot Debian Etch and XP with GRUB - Debian installed First - one HDD bence8810 Debian 11 01-07-2007 10:45 AM
configuring pixma ip1000 under debian etch Kirmonkey Linux - Hardware 1 04-20-2006 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration