> Hi there,
>
> [EMAIL PROTECTED] wrote:
>> Chris, why do you have a default route to your lan? as i have said:
>>
>> your distro will have quite simple gui tools to say whether or not eth0
>> should set up a default route
>>
>> your distro will have quite simple gui tools to say whether or not ppp
>> should set up a default route
>>
>> what do those tools say?
>
> Yes, Mandrake has drakconnect, which is run from within Mandrake Control
> Center, or from console as root. That allows one to setup all network
> devices, and then select which is to be used as the default internet
> gateway. My issue with drakconnect is that when you click 'Finish' or
> 'Apply' to use the new settings it gracefully freezes, and does not
> respond to anything but a 'kill'. Then the settings for eth0 and the
> modem may be garbled, and the default route remains eth0, which of
> course only connects to my 'mini-net' (my laptop!).
>

sorry did not realise drakconnect was giving problems. I see that presents
a difficulty.


> I can currently only get internet via my modem by disabling LAN from
> the BIOS.

Should be no need to disable in bios. Try

service network stop (as root)

to stop eth0, which should disable its default route. when you stop the
modem and want the lan again

service network start

Of course this is not a permanent fix, just an easier way of disabling the
lan in the meantime.

Alternatively you can use the route command to set and disable all routes.
Again not a permanent fix.


> I can enable the LAN, and not use drakconnect to configure
> it (it works with SMB anyway), but then eth0 will become the default
> gateway to the internet. Somehow drakconnect gets upset when I try to
> tell it to specify the modem to be the default net gateway...

Now on a more permanent basis, without using drakconnect, look in
/etc/sysconfig. There is likely to be a file in there relating to eth0, in
which it should be possible to set an environment variable to tell the box
not to set a default route on eth0 coming up. I am working from an old
version of redhat, which has the same origins as mandrake, but I suspect
there are some changes from what I am looking at. However look for a file
named something like /etc/sysconfig/network-scripts/ifcfg-eth0. On this
redhat box I am looking at that file is read by
/etc/sysconfig/network-scripts/ifup, which in turn has these lines:

 # Set a default route.
    if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
        # set up default gateway
        if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}
2>/dev/
null`" = "NETWORK=${NETWORK}" ]; then
            ip route add default via ${GATEWAY}
            DEFGW=${GATEWAY}
        elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then
            ip route add default dev ${REALDEVICE}
        fi
    fi

I am very poor at reading bash scripts but this seems to tell me that the
setting of a default route is dependent on the settings of the GATEWAYDEV
and REALDEVICE settings in the /etc/sysconfig/network-scripts/ifcfg-eth0
file. Personally I would fiddle with the GATEWAYDEV setting and bring the
eth0 up and down a few times (with the service command as above) and see
if it continues setting the default route. back up the file before you
play with it. And look for differences in the more up to date mandrake
system that you have.


>
> --
> Kind regards,
>
> Chris Wilkinson, Christchurch, New Zealand.
>
>
>

Reply via email to