proxy arp and routing
Hello,
Given the network map below, I am able to ping any ip on all networks from the linux box. However, from the cisco router, I cannot ping past eth1 on the linux box. The reverse is also true; I cannot ping past eth0 from a host on LAN. proxy-arp is enabled on the linux box and the route to a.b.c.0/24 is added to the cisco router. I haven't a clue why either way, I can only get to the far side of the linux box but no further.
On second thought, maybe this is not an application for proxy-arp. Your thoughts are appreciated.
T1 to ISP
|
| /30 net
|
+----------------+
| cisco router |
+----------------+
| FastEthernet0/0
| a.b.c.1/28
|
(possible switch/hub here in future)
(ip range = a.b.c.1-15)
|
| a.b.c.2/28
| eth0
+----------------+
| |
| eth1 |---a.b.c.16/24-public-net-----> LAN
| | (ip range = a.b.c.16-255)
| linux box |
| eth2 |---192.168.1.0/24-- *
| | * (not revelant to discussion)
+----------------+David Koski
[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
I am not sure what you mean by that but ifconfig shows the correct ip/netmask/broadcast for each ip. Did I miss something?
David
Quoted 13 lines · On Fri, 1 Feb 2002 23:27:28 -0500 "Admin Nplus" <[email protected]> wrote:
did you tell the linux box what ip is where on what side ?
----- Original Message -----
From: "David Koski" <[email protected]>
To: "LARTC" <[email protected]>
Sent: Friday, February 01, 2002 5:41 PM
Subject: [LARTC] proxy arp and routingQuoted 3 lines
Hello,
Given the network map below, I am able to ping any ip on all networks from
the
Quoted 43 lines
Quoted 1 line
linux box. However, from the cisco router, I cannot ping past eth1 on the
linux
Quoted 1 line
box. The reverse is also true; I cannot ping past eth0 from a host on
LAN.
Quoted 1 line
proxy-arp is enabled on the linux box and the route to a.b.c.0/24 is added
to
Quoted 1 line
the cisco router. I haven't a clue why either way, I can only get to the
far
Quoted 35 lines
side of the linux box but no further.
On second thought, maybe this is not an application for proxy-arp. Your thoughts are appreciated.
T1 to ISP | | /30 net | +----------------+ | cisco router | +----------------+ | FastEthernet0/0 | a.b.c.1/28 | (possible switch/hub here in future) (ip range = a.b.c.1-15) | | a.b.c.2/28 | eth0 +----------------+ | | | eth1 |---a.b.c.16/24-public-net-----> LAN | | (ip range = a.b.c.16-255) | linux box | | eth2 |---192.168.1.0/24-- * | | * (not revelant to discussion) +----------------+David Koski
[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 6 lines · On Sat, 2 Feb 2002 10:19:13 +0100 Leen Besselink <[email protected]> wrote:
Quoted 3 lines · * David Koski ([email protected]) wrote:
I am not sure what you mean by that but ifconfig shows the correct ip/netmask/broadcast for each ip. Did I miss something?
maybe you could show us the routing table(s) ?
also did you turn on ip forwarding (/proc/sys/net/ipv4/ip_forward) ?
That would be tough because I had to revert back to get it back working. Currently, the public block is routed arround the linux box instead of through it, just to keep it going. But it looked just as I would expect given the ifconfig and /etc/sysconfig/* settings.
I have a howto on an alternate method of proxy arp'ing. It uses identical assignments on eth0 and eth1 instead of using different netmasks. But it uses static routes. Maybe I'll try that. But I would still like to know why the other did not work. Is it possible that with the method I tried, proxy arp is not necessary and only interferes?
David
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Sorry, yes. forwarding is enabled.
David
Quoted 73 lines · On Sat, 2 Feb 2002 13:36:23 -0500 "Admin Nplus" <[email protected]> wrote:
does ipforwarding is enabled ?
=1 ?----- Original Message -----
From: "David Koski" <[email protected]>
To: "LARTC" <[email protected]>
Sent: Saturday, February 02, 2002 12:13 AM
Subject: Re: [LARTC] proxy arp and routingQuoted 20 lines
I am not sure what you mean by that but ifconfig shows the correct ip/netmask/broadcast for each ip. Did I miss something?
David
Quoted 12 lines · On Fri, 1 Feb 2002 23:27:28 -0500 "Admin Nplus" <[email protected]> wrote:
did you tell the linux box what ip is where on what side ?
----- Original Message -----
From: "David Koski" <[email protected]>
To: "LARTC" <[email protected]>
Sent: Friday, February 01, 2002 5:41 PM
Subject: [LARTC] proxy arp and routingQuoted 3 lines
Hello,
Given the network map below, I am able to ping any ip on all networks
from
Quoted 2 lines
Quoted 2 lines
the
Quoted 1 line
linux box. However, from the cisco router, I cannot ping past eth1 on
the
Quoted 4 lines
Quoted 4 lines
linux
Quoted 1 line
box. The reverse is also true; I cannot ping past eth0 from a host on
LAN.
Quoted 1 line
proxy-arp is enabled on the linux box and the route to a.b.c.0/24 is
added
Quoted 2 lines
Quoted 2 lines
to
Quoted 1 line
the cisco router. I haven't a clue why either way, I can only get to
the
Quoted 4 lines
Quoted 4 lines
far
Quoted 3 lines
side of the linux box but no further.
On second thought, maybe this is not an application for proxy-arp.
Your
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
thoughts are appreciated.
T1 to ISP | | /30 net | +----------------+ | cisco router | +----------------+ | FastEthernet0/0 | a.b.c.1/28 | (possible switch/hub here in future) (ip range = a.b.c.1-15) | | a.b.c.2/28 | eth0 +----------------+ | | | eth1 |---a.b.c.16/24-public-net-----> LAN | | (ip range = a.b.c.16-255) | linux box | | eth2 |---192.168.1.0/24-- * | | * (not revelant to discussion) +----------------+
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
David Koski
[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:Quoted 5 lines
Quoted 1 line
Quoted 1 line
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 6 lines · David Koski
Given the network map below, I am able to ping any ip on all networks from the linux box. However, from the cisco router, I cannot ping past eth1 on the linux box. The reverse is also true; I cannot ping past eth0 from a host on LAN. proxy-arp is enabled on the linux box and the route to a.b.c.0/24 is added to the cisco router. I haven't a clue why either way, I can only get to the far side of the linux box but no further.
I do not care about your ascii art, just about the following:
ip route show /proc/sys/net/ipv4/conf/eth[012]/proxy_arp /proc/sys/net/ipv4/conf/eth[012]/rp_filter /proc/sys/net/ipv4/ip_forward
1) proxy_arp must be set to 1
2) rp_filter: you might start with 0
3) ip_forward should be set to 1
4) all routes must be sane:
ip route add a.b.c.0/28 dev eth0
ip route add a.b.c.0/24 dev eth1
ip route add 192.168.1.0 dev eth2
ip route add default via a.b.c.1
Then you should be able to arp-ping the whole world from anywhere inside your network.
Signature · 7 lines
<[email protected]> Telegraaf Elektronische Media http://wwwijzer.nl http://leerquoten.monster.org/ http://www.faqs.org/rfcs/rfc1855.html Let your government know you value your freedom. Sign the petition: http://petition.eurolinux.org/ _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 2 lines · On Mon, 4 Feb 2002 15:59:44 +0100 Ard van Breemen <[email protected]> wrote:
Quoted 1 line · David Koski
Given the network map below, I am able to ping any ip on all networks from
the
Quoted 1 line
Quoted 1 line
linux box. However, from the cisco router, I cannot ping past eth1 on the
linux
Quoted 2 lines
Quoted 2 lines
box. The reverse is also true; I cannot ping past eth0 from a host on LAN. proxy-arp is enabled on the linux box and the route to a.b.c.0/24 is added
to
Quoted 1 line
Quoted 1 line
the cisco router. I haven't a clue why either way, I can only get to the
far
Quoted 16 lines
Quoted 1 line
side of the linux box but no further.
I do not care about your ascii art, just about the following:
ip route show /proc/sys/net/ipv4/conf/eth[012]/proxy_arp /proc/sys/net/ipv4/conf/eth[012]/rp_filter/proc/sys/net/ipv4/ip_forward
1)proxy_arpmust be set to 1
2)rp_filter: you might start with 0
3)ip_forwardshould be set to 1
4) all routes must be sane:
ip route add a.b.c.0/28 dev eth0
ip route add a.b.c.0/24 dev eth1
ip route add 192.168.1.0 dev eth2
ip route add default via a.b.c.1
Quoted 2 lines
Then you should be able to arp-ping the whole world from anywhere inside your network.
You did not mention:
/proc/sys/net/ipv4/conf/eth[012]/forwarding
It is set to 1 also. The only difference I have with your settings above is rp_filter. I'll change it to 0 and see what happens. Since the settings were reverted back and I don't have access to it right now, I cannot dump the routing table. But it was verified to be correct and consistant with the above settings.
Thank you,
David Koski
[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/