Networking Forums

Networking Forums > Computer Networking > Linux Networking > eth1 and eth0 different networks and not accessible

Reply
Thread Tools Display Modes

eth1 and eth0 different networks and not accessible

 
 
H. S.
Guest
Posts: n/a

 
      05-20-2005, 12:09 AM

Hi,

I am connecting to an ADSL connection through a linux box(CompR below)
used as a router with two NICs. Here is the setup:

CompR
,-----------.
(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
`-----------'


I have my iptables script and have enables masquerading and my LAN
computers can browse the web and connect to external VPN servers and all
is well.

However, after just talking to Bell Sympatico's help centre, I have
discovered that the ADSL modem has an internal IP address (of the
network interface that connects to my eth1 above) of 192.168.2.1. I have
given the eth1 an address of 192.168.2.10.

But I am not sure how to access that config page. "lynx 192.168.2.1" (or
browsing through firefox) times out. I was wondering if anybody can
suggest which iptables rules to use to accomplish this (192.162.0.x
network is able to talk to 192.168.2.x network and vice versa).

Here is my /etc/network/interfaces file:
#----------------------------------------------------------------------
# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
#gateway 192.168.2.10
dns-nameservers 192.168.0.1

auto eth1
iface eth1 inet static
address 192.168.2.10
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# please do not modify the following line
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
up /etc/iptables-hs/fw-masq.sh start
#----------------------------------------------------------------------


thanks,
->HS

--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      05-20-2005, 12:51 AM
"H. S." <(E-Mail Removed)> writes:


>Hi,


>I am connecting to an ADSL connection through a linux box(CompR below)
>used as a router with two NICs. Here is the setup:


> CompR
> ,-----------.
>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
> `-----------'



>I have my iptables script and have enables masquerading and my LAN
>computers can browse the web and connect to external VPN servers and all
>is well.


>However, after just talking to Bell Sympatico's help centre, I have
>discovered that the ADSL modem has an internal IP address (of the
>network interface that connects to my eth1 above) of 192.168.2.1. I have
>given the eth1 an address of 192.168.2.10.


As root do

route add -host 192.168.2.1 eth1
Now anything for that ip will go out eth1, and thus to the router.



 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      05-20-2005, 01:06 AM
Apparently, _Unruh_, on 19/05/05 20:51,typed:
> "H. S." <(E-Mail Removed)> writes:
>
>
>
>>Hi,

>
>
>>I am connecting to an ADSL connection through a linux box(CompR below)
>>used as a router with two NICs. Here is the setup:

>
>
>> CompR
>> ,-----------.
>>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
>> `-----------'

>
>
>
>>I have my iptables script and have enables masquerading and my LAN
>>computers can browse the web and connect to external VPN servers and all
>>is well.

>
>
>>However, after just talking to Bell Sympatico's help centre, I have
>>discovered that the ADSL modem has an internal IP address (of the
>>network interface that connects to my eth1 above) of 192.168.2.1. I have
>>given the eth1 an address of 192.168.2.10.

>
>
> As root do
>
> route add -host 192.168.2.1 eth1
> Now anything for that ip will go out eth1, and thus to the router.
>
>
>


hmm .. seems like I already have this:

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
64.230.197.68 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 64.230.197.68 0.0.0.0 UG 0 0 0 ppp0

and something else seems to be lacking.

->HS

--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-20-2005, 05:52 PM
H. S. <(E-Mail Removed)> wrote:
> Apparently, _Unruh_, on 19/05/05 20:51,typed:
>> "H. S." <(E-Mail Removed)> writes:
>>
>>>Hi,

>>
>>>I am connecting to an ADSL connection through a linux box(CompR below)
>>>used as a router with two NICs. Here is the setup:

>>
>>> CompR
>>> ,-----------.
>>>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
>>> `-----------'

>>
>>>I have my iptables script and have enables masquerading and my LAN
>>>computers can browse the web and connect to external VPN servers and all
>>>is well.

>>
>>>However, after just talking to Bell Sympatico's help centre, I have
>>>discovered that the ADSL modem has an internal IP address (of the
>>>network interface that connects to my eth1 above) of 192.168.2.1. I have
>>>given the eth1 an address of 192.168.2.10.

>>
>> As root do
>>
>> route add -host 192.168.2.1 eth1
>> Now anything for that ip will go out eth1, and thus to the router.
>>


> hmm .. seems like I already have this:


> # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 64.230.197.68 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 64.230.197.68 0.0.0.0 UG 0 0 0 ppp0


> and something else seems to be lacking.


If the router Ethernet interface is configured not to respond to
ARP requests then only a host route will succeed. It may not be
the problem but seems worth a try. AIUI, the PPPoE client Ethernet
interface is not meant be configured with an IP address.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      05-20-2005, 06:12 PM
On Thu, 19 May 2005 20:09:28 -0400, H. S. wrote:
>
> Hi,
>
> I am connecting to an ADSL connection through a linux box(CompR below)
> used as a router with two NICs. Here is the setup:
>
> CompR
> ,-----------.
> (INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
> `-----------'
>
>
> I have my iptables script and have enables masquerading and my LAN
> computers can browse the web and connect to external VPN servers and all
> is well.


Guessing you are running slackware.
On Mandriva (mandrake) I have to enable ip_forward in /etc/sysctl.conf
and add masquarding rules in iptables to allow lan pcs access to wan.

 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      05-20-2005, 08:15 PM
Apparently, _Bit Twister_, on 20/05/05 14:12,typed:
> On Thu, 19 May 2005 20:09:28 -0400, H. S. wrote:
>
>>Hi,
>>
>>I am connecting to an ADSL connection through a linux box(CompR below)
>>used as a router with two NICs. Here is the setup:
>>
>> CompR
>> ,-----------.
>>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
>> `-----------'
>>
>>
>>I have my iptables script and have enables masquerading and my LAN
>>computers can browse the web and connect to external VPN servers and all
>>is well.

>
>
> Guessing you are running slackware.
> On Mandriva (mandrake) I have to enable ip_forward in /etc/sysctl.conf
> and add masquarding rules in iptables to allow lan pcs access to wan.
>



Debian Sarge, kernel 2.6.10.

IP forwarding works perfectly. LAN (192.168.0.0) computers are able to
browse the internet. They are able to talk to each other. I am just not
able to ping the LAN port the of the ADSL modem which seems to have an
IP address of 192.168.2.1 (according to Bell Sympatico's tech support)
which gives access to its web interface.

So ADSL LAN 192.168.2.1 is not visible to my eth1 (192.168.2.10), but
ppp0 works okay for all my LAN comps through eth0.

->HS

--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      05-20-2005, 09:07 PM
"H. S." <(E-Mail Removed)> writes:

>Apparently, _Bit Twister_, on 20/05/05 14:12,typed:
>> On Thu, 19 May 2005 20:09:28 -0400, H. S. wrote:
>>
>>>Hi,
>>>
>>>I am connecting to an ADSL connection through a linux box(CompR below)
>>>used as a router with two NICs. Here is the setup:
>>>
>>> CompR
>>> ,-----------.
>>>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
>>> `-----------'
>>>
>>>
>>>I have my iptables script and have enables masquerading and my LAN
>>>computers can browse the web and connect to external VPN servers and all
>>>is well.

>>
>>
>> Guessing you are running slackware.
>> On Mandriva (mandrake) I have to enable ip_forward in /etc/sysctl.conf
>> and add masquarding rules in iptables to allow lan pcs access to wan.
>>



>Debian Sarge, kernel 2.6.10.


>IP forwarding works perfectly. LAN (192.168.0.0) computers are able to
>browse the internet. They are able to talk to each other. I am just not
>able to ping the LAN port the of the ADSL modem which seems to have an
>IP address of 192.168.2.1 (according to Bell Sympatico's tech support)
>which gives access to its web interface.


routers do not respond to pings. Connect to them with a web browser.


>So ADSL LAN 192.168.2.1 is not visible to my eth1 (192.168.2.10), but
>ppp0 works okay for all my LAN comps through eth0.


HOw do you know it is not visible? ping is NOT a good test.


>->HS


>--
>Please remove the underscores ( the '_' symbols) from my email address
>to obtain the correct one. Apologies, but the fudging is to remove spam.

 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      05-20-2005, 09:11 PM
Apparently, _Unruh_, on 20/05/05 17:07,typed:
> "H. S." <(E-Mail Removed)> writes:
>
>
>>Apparently, _Bit Twister_, on 20/05/05 14:12,typed:
>>
>>>On Thu, 19 May 2005 20:09:28 -0400, H. S. wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>I am connecting to an ADSL connection through a linux box(CompR below)
>>>>used as a router with two NICs. Here is the setup:
>>>>
>>>> CompR
>>>> ,-----------.
>>>>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
>>>> `-----------'
>>>>
>>>>
>>>>I have my iptables script and have enables masquerading and my LAN
>>>>computers can browse the web and connect to external VPN servers and all
>>>>is well.
>>>
>>>
>>>Guessing you are running slackware.
>>>On Mandriva (mandrake) I have to enable ip_forward in /etc/sysctl.conf
>>> and add masquarding rules in iptables to allow lan pcs access to wan.
>>>

>
>
>
>>Debian Sarge, kernel 2.6.10.

>
>
>>IP forwarding works perfectly. LAN (192.168.0.0) computers are able to
>>browse the internet. They are able to talk to each other. I am just not
>>able to ping the LAN port the of the ADSL modem which seems to have an
>>IP address of 192.168.2.1 (according to Bell Sympatico's tech support)
>>which gives access to its web interface.

>
>
> routers do not respond to pings. Connect to them with a web browser.


I did (see my first post in this thread).


>
>
>>So ADSL LAN 192.168.2.1 is not visible to my eth1 (192.168.2.10), but
>>ppp0 works okay for all my LAN comps through eth0.

>
>
> HOw do you know it is not visible? ping is NOT a good test.
>


see above.

->HS


--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      05-20-2005, 11:30 PM
"H. S." <(E-Mail Removed)> writes:

>Apparently, _Unruh_, on 20/05/05 17:07,typed:
>> "H. S." <(E-Mail Removed)> writes:
>>
>>
>>>Apparently, _Bit Twister_, on 20/05/05 14:12,typed:
>>>
>>>>On Thu, 19 May 2005 20:09:28 -0400, H. S. wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I am connecting to an ADSL connection through a linux box(CompR below)
>>>>>used as a router with two NICs. Here is the setup:
>>>>>
>>>>> CompR
>>>>> ,-----------.
>>>>>(INTERNET) -->ppp0--->eth1 eth0-----> LAN (192.168.0.xyz)
>>>>> `-----------'
>>>>>
>>>>>
>>>>>I have my iptables script and have enables masquerading and my LAN
>>>>>computers can browse the web and connect to external VPN servers and all
>>>>>is well.
>>>>
>>>>
>>>>Guessing you are running slackware.
>>>>On Mandriva (mandrake) I have to enable ip_forward in /etc/sysctl.conf
>>>> and add masquarding rules in iptables to allow lan pcs access to wan.
>>>>

>>
>>
>>
>>>Debian Sarge, kernel 2.6.10.

>>
>>
>>>IP forwarding works perfectly. LAN (192.168.0.0) computers are able to
>>>browse the internet. They are able to talk to each other. I am just not
>>>able to ping the LAN port the of the ADSL modem which seems to have an
>>>IP address of 192.168.2.1 (according to Bell Sympatico's tech support)
>>>which gives access to its web interface.

>>
>>
>> routers do not respond to pings. Connect to them with a web browser.


>I did (see my first post in this thread).



>>
>>
>>>So ADSL LAN 192.168.2.1 is not visible to my eth1 (192.168.2.10), but
>>>ppp0 works okay for all my LAN comps through eth0.

>>
>>
>> HOw do you know it is not visible? ping is NOT a good test.
>>


>see above.


"Above" says that you tried ping.
So, to see if your routing is OK, at a time when all y our other computers
are switched off or at least network inactive, ping 192.168.2.1 and see if
the light on the eth1 card flashes about once a second. If it does, you
know that the ping is being routed out to the router. If it does not, then
you know your routing has problems.

If your routing is OK, it is still possible that the router address you
were given is wrong. 192.168.2.1 seems a strange address for the router. I
would try 192.168.1.1 or .0.1 instead. Put in a temp entry into the
routing table routing just thos host addresses out on eth1. and see if
either of them respond to http requests.

Or find the name of the modem and look on the manufacturer's web site to
see if there is a manual which gives the IP of the router.
It is also possible that someone changed the ip address the router responds
to. In that case you would have to reset it to factory defaults.

 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      05-21-2005, 01:57 AM
Unruh <unruh-(E-Mail Removed)> wrote:
>
>routers do not respond to pings. Connect to them with a web browser.


Routers *do* respond to pings.

Some of them also happen to have a web server, but that isn't guaranteed
either.

--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 and eth1 on same subnet using netmask Martin Klar Linux Networking 3 09-15-2007 02:35 PM
eth0 answering for eth1 ?? hobbzilla Linux Networking 1 07-24-2006 09:47 PM
Eth0 and eth1 Captain Beefheart Linux Networking 7 07-22-2004 06:39 PM
LOAD BALANCING ON ETH0 n ETH1 Urban_legend Windows Networking 3 04-28-2004 03:08 PM
Order eth0, eth1, ... Visvanath Ratnaweera Linux Networking 4 11-13-2003 08:00 PM



1 2 3 4 5 6 7 8 9 10 11