Help!

confused routes with multiple nics


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Networking RSS
Next:  IPTables with Virtual Interfaces and Multiple Pub..  
Author Message
kevincw01
External


Since: Aug 03, 2007
Posts: 5



PostPosted: Mon Aug 06, 2007 8:11 pm    Post subject: confused routes with multiple nics
Archived from groups: comp>os>linux>networking (more info?)

I've got 2 NICs I'm not able to reach my dns servers on eth0 unless I
disable eth1. Obviously, my routes are incorrect but my medeling with
them has caused more problems than not. Here is my setup:

eth0
ip 129.200.32.46
subnet 255.255.255.192
gateway 129.200.32.1
dns 129.200.101.3
dns 129.172.51.4

eth1
ip 10.0.0.211
subnet 255.255.255.0
gateway 10.0.0.1
no dns

I can ping hosts with 10.0.0.2xx IPs and hosts with 129.200.32.xxx IPs
but I cannot ping the DNS server IPs. When I do it tells me its using
the 10.0.0.211 interface(eth1). Any suggestions on how I should setup
my routes?
Back to top
Robert Harris
External


Since: Aug 14, 2005
Posts: 166



PostPosted: Mon Aug 06, 2007 9:16 pm    Post subject: Re: confused routes with multiple nics [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

kevincw01 wrote:
> I've got 2 NICs I'm not able to reach my dns servers on eth0 unless I
> disable eth1. Obviously, my routes are incorrect but my medeling with
> them has caused more problems than not. Here is my setup:
>
> eth0
> ip 129.200.32.46
> subnet 255.255.255.192
> gateway 129.200.32.1
> dns 129.200.101.3
> dns 129.172.51.4
>
> eth1
> ip 10.0.0.211
> subnet 255.255.255.0
> gateway 10.0.0.1
> no dns
>
> I can ping hosts with 10.0.0.2xx IPs and hosts with 129.200.32.xxx IPs
> but I cannot ping the DNS server IPs. When I do it tells me its using
> the 10.0.0.211 interface(eth1). Any suggestions on how I should setup
> my routes?
>
You have two gateways to the rest of the internet; you should only have one!

Robert
Back to top
kevincw01
External


Since: Aug 03, 2007
Posts: 5



PostPosted: Mon Aug 06, 2007 10:04 pm    Post subject: Re: confused routes with multiple nics [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 6, 2:16 pm, Robert Harris <robert.f.har....DeleteThis@blueyonder.co.uk>
wrote:
> kevincw01 wrote:
> > I've got 2 NICs I'm not able to reach my dns servers on eth0 unless I
> > disable eth1. Obviously, my routes are incorrect but my medeling with
> > them has caused more problems than not. Here is my setup:
>
> > eth0
> > ip 129.200.32.46
> > subnet 255.255.255.192
> > gateway 129.200.32.1
> > dns 129.200.101.3
> > dns 129.172.51.4
>
> > eth1
> > ip 10.0.0.211
> > subnet 255.255.255.0
> > gateway 10.0.0.1
> > no dns
>
> > I can ping hosts with 10.0.0.2xx IPs and hosts with 129.200.32.xxx IPs
> > but I cannot ping the DNS server IPs. When I do it tells me its using
> > the 10.0.0.211 interface(eth1). Any suggestions on how I should setup
> > my routes?
>
> You have two gateways to the rest of the internet; you should only have one!
>
> Robert

So, you're saying I should remove the gateway for eth1?
Back to top
phil-news-nospam
External


Since: Nov 16, 2006
Posts: 329



PostPosted: Wed Aug 08, 2007 2:13 am    Post subject: Re: confused routes with multiple nics [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 06 Aug 2007 22:04:38 -0000 kevincw01 <kevin.RemoveThis@netkev.com> wrote:
| On Aug 6, 2:16 pm, Robert Harris <robert.f.har....RemoveThis@blueyonder.co.uk>
| wrote:
|> kevincw01 wrote:
|> > I've got 2 NICs I'm not able to reach my dns servers on eth0 unless I
|> > disable eth1. Obviously, my routes are incorrect but my medeling with
|> > them has caused more problems than not. Here is my setup:
|>
|> > eth0
|> > ip 129.200.32.46
|> > subnet 255.255.255.192
|> > gateway 129.200.32.1
|> > dns 129.200.101.3
|> > dns 129.172.51.4
|>
|> > eth1
|> > ip 10.0.0.211
|> > subnet 255.255.255.0
|> > gateway 10.0.0.1
|> > no dns
|>
|> > I can ping hosts with 10.0.0.2xx IPs and hosts with 129.200.32.xxx IPs
|> > but I cannot ping the DNS server IPs. When I do it tells me its using
|> > the 10.0.0.211 interface(eth1). Any suggestions on how I should setup
|> > my routes?
|>
|> You have two gateways to the rest of the internet; you should only have one!
|>
|> Robert
|
| So, you're saying I should remove the gateway for eth1?

Out which interface do you want the packets destined for the internet to go?

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-08-07-2247.RemoveThis@ipal.net |
|------------------------------------/-------------------------------------|
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Networking All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum