Skip to contentSkip to conversation

routing in the same subnet

LARTC Adam Gawda 3 participants 3 messages Dec 16, 2005

lore
Share & tools
lore

Adam Gawda

author
#0 lore raw

Hi,

I have IP 64.10.12.64/26 (example)
and there's gateway 64.10.12.65 and I want doing something like this:

-------------------------------------64.10.12.65 GW

--------------------------- ROUTER ----------- --------------------clients

          eth0 64.10.12.66               eth1  64.10.12.66                      from 64.10.12.67 to 126
          255.255.255.192             255.255.255.192                           255.255.255.192
                                                                                                          GW 64.10.12.65

I want have all clients behind router (traffic shaper, firewall , etc). May I do it other method than subneting ? - because now doesn't work

----------------------------------------------------
Pamiêtaj o wszystkich/ -im w te ¶wiêta!
Zajrzyj na swieta.wp.pl i wygraj aparaty cyfrowe Panasonic!
Kliknij: http://klik.wp.pl/?adr=www.swieta.wp.pl&sidY9

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

#1 lore raw

Any ugly trick is to active proxy_arp on the interfaces of the router (/proc/sys/net/ipv4/conf/*/proxy_arp).
Then the external interface will scream "i have it!" on all of the arp requests for the other ip addresses (as
soon as the router has the other machines in his arp-table). if you have ip_forward enabled and your clients
using the internal interface address of the router as gateway you have what you want.

Quoted 22 lines · Adam Gawda

Hi,

I have IP 64.10.12.64/26 (example)
and there's gateway 64.10.12.65 and I want doing something like this:

-------------------------------------64.10.12.65 GW

--------------------------- ROUTER ----------- --------------------clients

          eth0 64.10.12.66               eth1  64.10.12.66                      from 64.10.12.67 to 126
          255.255.255.192             255.255.255.192                           255.255.255.192
                                                                                                          GW 64.10.12.65

I want have all clients behind router (traffic shaper, firewall , etc). May I do it other method than subneting ? - because now doesn't work

----------------------------------------------------
Pamiêtaj o wszystkich/ -im w te ¶wiêta!
Zajrzyj na swieta.wp.pl i wygraj aparaty cyfrowe Panasonic!
Kliknij: http://klik.wp.pl/?adr=www.swieta.wp.pl&sidY9

Quoted 5 lines

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

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

#2 lore raw
In reply to Adam Gawda

Why would you not just bridge them? Proxy arp I have found to be a pain and it has caused me more wierd problems with switching loops. Have a look at brctl and ebtables if fantastic.

Quoted 38 lines · Andreas Unterkircher

Any ugly trick is to active proxy_arp on the interfaces of the router (/proc/sys/net/ipv4/conf/*/proxy_arp).
Then the external interface will scream "i have it!" on all of the arp requests for the other ip addresses (as
soon as the router has the other machines in his arp-table). if you have ip_forward enabled and your clients
using the internal interface address of the router as gateway you have what you want.

Quoted 22 lines · Adam Gawda

Hi,

I have IP 64.10.12.64/26 (example)
and there's gateway 64.10.12.65 and I want doing something like this:

-------------------------------------64.10.12.65 GW

--------------------------- ROUTER ----------- --------------------clients

          eth0 64.10.12.66               eth1  64.10.12.66                      from 64.10.12.67 to 126
          255.255.255.192             255.255.255.192                           255.255.255.192
                                                                                                          GW 64.10.12.65

I want have all clients behind router (traffic shaper, firewall , etc). May I do it other method than subneting ? - because now doesn't work

----------------------------------------------------
Pamiętaj o wszystkich/ -im w te święta!
Zajrzyj na swieta.wp.pl i wygraj aparaty cyfrowe Panasonic!
Kliknij: http://klik.wp.pl/?adr=www.swieta.wp.pl&sidY9

Quoted 5 lines

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

Quoted 4 lines

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

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