Jean-François Le Ray jfleray at club-internet.fr
Sun Dec 3 02:21:45 PST 2000

Jesse Tie Ten Quee wrote:
> Yo,
> On Sun, Dec 03, 2000 at 10:50:40AM +0100, Jean-François Le Ray wrote:
> > Where you see that the default route has been added by ppp.
> > Do you know when setting a default route through eth0 is mandatory ?
> Yes, it wasn't for you DHCP or PPPoE or PPP users, this was for your
> average LAN user.
> All those clients do that stuff for you, when you have todo it the
> manual way, it's just an extra two steps.
> ifconfig eth0 <ip> boardcast <boardcast> netmask <netmask>
> route add default gw <gateway> metric 1

OK, thanks for that clarification. To be able to handle both
cases at once, maybe the bootscript coud be modified like that :

case "1" in
        echo -n "Bringing up the eth0 interface..."
        /sbin/ifconfig eth0 $IP broadcast $BROADCAST netmask $NETMASK

	if [ "$GATEWAY" != "" ]; then
          echo -n "Setting up routing for eth0 interface..."
          /sbin/route add default gw $GATEWAY metric 1



Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list