Re: routing within the same network? is it possible?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Victor Catten wrote:
Hello,
> Is routing within the same network possible?
If it is, what configuration should I put for the firewall/router shown
> below? I basically want the host debian13 to be able to send packets via
> a multi-homed firewall. I think the multi-homed firewall involve some
> routing.
+-------------------+
|debian13           |
|eth0:192.168.0.13  |
+-------------------+
         |eth0
         |
         |eth0
+--------------------------+
|firewall/router(linux-box)|
|which configuration here? |
+--------------------------+
         |eth1
         |
         +----------------------+
         |                      |
         |eth0                  |eth0
+-------------------+  +-------------------+
|eth0:192.168.0.15  |  |eth0:192.168.0.16  |
|debian15           |  |debian16           |
+-------------------+  +-------------------+

Hello,


see http://lartc.org/howto/lartc.bridging.proxy-arp.html or try this:

on router:

ifconfig eth0 192.168.0.1 netmask 255.255.255.255 -broadcast
ifconfig eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
route add -host 192.168.0.13 device eth0
echo 1 >/proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 >/proc/sys/net/ipv4/conf/eth1/proxy_arp
echo 1 >/proc/sys/net/ipv4/ip_forward

on debianXY:
ifconfig eth0 192.168.0.XY netmask 255.255.255.0 broadcast 192.168.0.255

HTH,

--
Martin

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux