[mdlug] dual homed and dual default routes?
Wojtak, Greg
GregWojtak at quickenloans.com
Fri Feb 8 10:36:53 EST 2008
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
More information about the mdlug
mailing list