Skip to contentSkip to conversation

Pls help with proxyarp

LARTC Glynn S. Condez 3 participants 3 messages Feb 23, 2002 – Feb 24, 2002

lore
Share & tools
lore
#0 lore raw

Hello everyone, pls help me to make this work. I really need to have a tunnel who have the same subnet and I cant make it work. Here is my simple setup with my network A and network B, it working fine with differnt subnet. Pls correct this for same left/right ip address. I really need it. Thanks

#Network A
/sbin/echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ /sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ

/sbin/insmod ip_gre
/sbin/ip tunnel add alas mode gre remote x.x.x.x local y.y.y.y ttl 255 /sbin/ip link set netb up
/sbin/ip addr add 192.168.1.1 dev netb
/sbin/ip route add 192.168.2.0/24 dev netb
---------------------------------------------------------------------------
---
#Network B
/sbin/echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

/sbin/insmod ip_gre
/sbin/ip tunnel add text mode gre remote y.y.y.y local x.x.x.x ttl 255 /sbin/ip link set neta up
/sbin/ip addr add 192.168.2.1 dev neta
/sbin/ip route add 192.168.1.0/24 dev neta

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#1 lore raw
Quoted 5 lines · Glynn S. Condez

Hello everyone, pls help me to make this work. I really need to have a tunnel who have the same subnet and I cant make it work. Here is my simple setup with my network A and network B, it working fine with differnt subnet. Pls correct this for same left/right ip address. I really need it. Thanks

I haven't read your message exactly yet, but do note that the HOWTO used to list the explanation of proxy arp the wrong way round. Please recheck with the current HOWTO (http://ds9a.nl/lartc) if you are doing the right thing.

Regards,

bert

Signature · 7 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
#2 lore raw
In reply to Glynn S. Condez
Quoted 9 lines · bert hubert
Quoted 5 lines · Glynn S. Condez

Hello everyone, pls help me to make this work. I really need to have a tunnel who have the same subnet and I cant make it work. Here is my simple setup with my network A and network B, it working fine with differnt subnet. Pls correct this for same left/right ip address. I really need it. Thanks

I haven't read your message exactly yet, but do note that the HOWTO used to list the explanation of proxy arp the wrong way round. Please recheck with the current HOWTO (http://ds9a.nl/lartc) if you are doing the right thing.

Eh, he does nothing with proxy-arp.
So I am really puzzled here. Especially the MASQ entries? Why? What?

Glynn, would you care to explain your setup, more like what are you trying to do?
Because: yes: you can have a proxy-arp "bridge" (remember, it will not learn anything) using a tunnel, connecting the same subnets. Both ends of the tunnel must exactly know where each system resides with respect to the tunnel. And no, this has nothing to do with netfilter, masquerading, etc. . You still are in the pure routing domain.

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/