[mdlug] dual homed and dual default routes?

Dave Arbogast mdlug3 at arb.net
Fri Feb 8 12:24:03 EST 2008


In the classic sense "Duel homed" would refer to both interfaces being 
world facing with world routable addresses - Like if you had one on DSL 
and the other on a cable modem with another provider. In your case, you 
appear to be talking about a gateway host between an inside non-world 
routable network (like 10.x.x.x) and the outside world.  If this is the 
case, Greg is describing what you need to do - one default route on your 
outside interface.

The first one of these I setup was on kernel 1.12.22 and you had to 
compile 1.12.1 and apply patches one by one to get to .22 . Oh the bad 
old days :-)
-dave

Wojtak, Greg wrote:

>After editing sysctl.conf, running sysctl -p will make the changes active.
>Echoing the values into the appropriate files in /proc will have the same
>effect.  
>
>Also note that having more than one default gateway on a system can have
>expected results.  A default gateway, as the name implies is a catchall.
>Based on your setup, you should have two gateways defined: one to point at
>your internal network (looks like 10.10.1.0/24) and your default gateway
>should be the directroute.eda. entry from your routing table.  So something
>like this:
>
>Destination    Gateway         Genmask         Flags Metric Ref    Use Iface
>host-130-16-128 alpine11        255.255.255.255 UGH   0      0        0 eth1
>10.10.1.0       directroute.eda 255.255.255.255 UGH   0      0        0 eth0
>192.9.70.0      *               255.255.255.0   U     0      0        0 eth1
>10.10.1.0       *               255.255.255.0   U     0      0        0 eth0
>169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
>10.10.1.0       alpine11        255.255.255.0   UG    0      0        0 eth1
>default         directroute.eda 0.0.0.0         UG    0      0        0 eth0
>
>The other thing to consider is that you do not even need a router for your
>internal network if your entire internal network is flat (on the same
>subnet).
>
>Greg
>
>
>On 2/8/08 9:48 AM, "Raymond McLaughlin" <driveray at ameritech.net> wrote:
>
>  
>
>>Rich Clark wrote:
>>    
>>
>>>On Fri, 8 Feb 2008, Dean Durant wrote:
>>>
>>>      
>>>
>>>>Hello, I am trying to create a dual homed machine, that routes packets,
>>>>& runs squid.
>>>>        
>>>>
>>>>SNIP> 
>>>>        
>>>>
>>>Do you have the following line in /etc/sysctl.conf?
>>>
>>>net.ipv4.ip_forward=1
>>>
>>>Check that first, as it's the most likely problem. If you do and it's set
>>>to 0, change it to 1.
>>>      
>>>
>>Don't you need to reboot for this to have any effect? Or atleast restart
>>networking? That's my general understanding of the files under /etc/.
>>
>>Isn't there a similar flag under /var, like /var/run/<something> that
>>can do this on the fly?
>>_______________________________________________
>>mdlug mailing list
>>mdlug at mdlug.org
>>http://mdlug.org/mailman/listinfo/mdlug
>>    
>>
>
>_______________________________________________
>mdlug mailing list
>mdlug at mdlug.org
>http://mdlug.org/mailman/listinfo/mdlug
>  
>



More information about the mdlug mailing list