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
On Sat, Feb 23, 2002 at 09:13:35AM +0800, Glynn S. Condez wrote:> 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. > ThanksI 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 -- 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
On Sat, Feb 23, 2002 at 07:43:17PM +0100, bert hubert wrote:> On Sat, Feb 23, 2002 at 09:13:35AM +0800, Glynn S. Condez wrote: > > 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. -- <ard@telegraafnet.nl> 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/