I do see two problem in the network.conf file you posted, though it is
unclear to me if, alone or together, they are causing the routing failure
you reported in your earlier message.

Problem 1 -- the line 

        GW0_IFNAME=$IF0_NAME

should read 

        GW0_IFNAME=$IF0_IFNAME

This is an ancient typo in the file, one that keeps getting fixed, then
unfixed somehow.

Problem 2 -- you are trying to make an address on eth0 your default gateway,
with these lines:

>GW0_IPADDR=10.0.0.138
>GW0_IFNAME=$IF0_NAME
>GW0_METRIC=1

But you are also trying to MASQ traffic from 10.0.0.0/24, with this line:

>NET0_IPMASQ=YES

These two settings do not go together, and I don't know without testing what
behavior this inconsistency would produce.

Your earlier message only mentioned needing to configure eth0 by hand; it
didn't even indicate that you had an eth1 interface. Do both interfaces fail
to configure, or only eth0 (before you do anything by hand, what do
"ifconfig -a" and "netstat -nr" report)?

As I haven't used ppp in ages (except for Kenneth Hadley's PPPoE image),
I'll lave that question to someone wih fresher experience. But you might
want to consider switching to Ken's image (available somewhere at
leaf.sourceforge.net - look around for it) rather than struggling with
whatever you have ... if you are actually running PPPoE with you DSL
service, something that isn't clear to me from what you posted.

At 10:44 PM 9/10/01 +0200, [EMAIL PROTECTED] wrote:
>I'm sorry about the ppp question, I guess that was pretty obvious. I was
asking about the routing problem so I just added it. 
>
>Now there's a new problem, I think I now what it is, but not how to solve
it. How do I get PPPD to run (add it to inittab(and how)??) where do I put
it and with what parameters? My modem's IP is 10.0.0.138, it's an ADSL
modem(512kb/s downstream; 64kb/s upstream) if you need anymore info, mail me.
>
>About the manually adding routes, here's my network.conf, I hope you can
find anything in it:
>
>###############################################################################
># Auto configuration bypass  (Say NO to use this file)
>###############################################################################
>DIRECT_SETTINGS_ONLY=NO
>
>###############################################################################
># Default Settings
>###############################################################################
>
>VERBOSE=YES
>MAX_LOOP=2
>DHCP_SLEEP=15
>
>IPFWDING_KERNEL=YES
>IPFWDING_FW=YES
>
>IPMASQ_DLOOSE=NO
>
>CONFIG_HOSTNAME=YES
>
>CONFIG_HOSTSFILE=NO
>
>CONFIG_DNS=YES
>
>###############################################################################
># Interfaces
>###############################################################################
>
>IF0_IFNAME=eth0
>IF0_IPADDR=10.0.0.150
>IF0_NETMASK=255.255.255.0
>IF0_BROADCAST=10.0.0.255
>IF0_IP_SPOOF=YES
>
>IF1_IFNAME=eth1
>IF1_IPADDR=192.168.0.150
>IF1_NETMASK=255.255.255.0
>IF1_BROADCAST=192.168.0.255
>IF1_IP_SPOOF=YES
>
>#IF2_IFNAME=eth1:0
>IF2_IPADDR=192.168.0.1
>IF2_NETMASK=$IF1_NETMASK
>IF2_BROADCAST=$IF1_BROADCAST
>IF2_IP_SPOOF=NO
>
>###############################################################################
># Hosts
>###############################################################################
>
>#HOST0_IPADDR=192.168.7.123
>HOST0_GATEWAY_IF=default
>HOST0_GATEWAY_IP=192.168.1.200
>HOST0_IPMASQ=NO
>HOST0_IPMASQ_IF=default
>
>###############################################################################
># Networks
>###############################################################################
>
>NET0_NETADDR=10.0.0.0
>NET0_NETMASK=255.255.255.0
>NET0_GATEWAY_IF=default
>NET0_GATEWAY_IP=default
>NET0_IPMASQ=YES
>NET0_IPMASQ_IF=default
>
>NET1_NETADDR=192.168.0.0
>NET1_NETMASK=255.255.255.0
>NET1_GATEWAY_IF=default
>NET1_GATEWAY_IP=default
>NET1_IPMASQ=YES
>NET1_IPMASQ_IF=default
>
>###############################################################################
># Gateways (Default Routes)
>###############################################################################
>
>GW0_IPADDR=10.0.0.138
>GW0_IFNAME=$IF0_NAME
>GW0_METRIC=1
>
>###############################################################################
># Port Fowarding
>###############################################################################
>#PF0_IFNAME=$IF0_IFNAME
>PF0_DESTIP=192.168.0.10
>PF0_TPORTS=53:5353,80:80,25:25,110:110,21:21,20:20,22:22
>PF0_UPORTS=53:5353
>
>
>###############################################################################
># Hostname                                     Requires: CONFIG_HOSTNAME=YES
>###############################################################################
>HOSTNAME=Tux-Guard
>
>###############################################################################
># Hosts file (Static domainname entires)       Requires: CONFIG_HOSTSFILE=YES
>###############################################################################
>#      IP              FQDN                            hostname alias1 alias2..
>HOSTS0="$IF1_IPADDR    $HOSTNAME.psychosis.com         $HOSTNAME t"
>
>###############################################################################
># Domain Search Order and Name Servers         Requires: CONFIG_DNS=YES
>###############################################################################
>
>DOMAINS="xs4all.nl"
>
>DNS0=194.109.6.66
>DNS1=194.109.9.99
>
>
>###############################################################################
># Brief instructions for this file
>###############################################################################
>#
># DIRECT_SETTINGS_ONLY=(YES/NO)                Default: YES 
># Bypass automatic configuration using this file's settings, 
># and only execute the commands in /etc/network_direct.conf
>#
># VERBOSE=(YES/NO)                     Default: Yes
># Be verbose about settings.
>#
># MAX_LOOP=(int)                       Default: 10
># Maximum number of incrementable entries to search for.
># IE: If you create a DNS7=, and MAX_LOOP=7, it will not be reached.
># (DNS0 - DNS7 == 8 entires)
># Setting this value too high will decrease the speed of the configuation
># system.
>#
># IPFWDING_KERNEL=(YES/NO)             Default: NO
># Enable IP forwarding in the kernel.
>#
># IPFWDING_FW=(YES/NO)                 Default: NO
># Set firewall forwarding policy to 'allow'.
>#
># CONFIG_HOSTNAME=(YES/NO)             Default: NO
># Create /etc/hostname file using HOSTNAME entry.
># Any current hostname file will be **OVERWRITTEN**
>#
># CONFIG_HOSTSFILE=(YES/NO)            Default: NO
># Create /etc/hosts file using HOSTSx entries.
># Any current hosts file will be **OVERWRITTEN**
>#
># CONFIG_DNS=(YES/NO)          Default: NO
># Create /etc/resolv.conf file using DOMAINS and DNSx entries.
># Any current resolv.conf file will be **OVERWRITTEN**
># If you use dhcpc, let dhclient handle DNS configuration.
>#
>###############################################################################
># End
>###############################################################################
>
>
>
>
>-- Original Message --
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED],[EMAIL PROTECTED]
>Send: 2001-09-08
>Subject: [LRP] PPP problems
>
>I'm running (or at least trying to run)LRP 2.9.8 with the 2.0.36 kernel on a
>486. I recently encountered the following problems:
>
>1] each time I boot my machine I have to bring up my NIC's manually and
manually
>add to the routing tables (why did I fill in my network.conf?). I have to
>use:
># ifconfig eth0 10.0.0.150 netmask 255.255.255.0 broadcast 10.0.0.255
># ifconfig eth0 up
># route add -net 10.0.0.0 netmask 255.255.255.0 eth0
>
>2] when I try to log on to my ADSL provider with 
># /usr/sbin/pptp 10.0.0.138 file /etc/ppp/options.adsl 
>I get an error message saying: 
>Can't read from /etc/pptp.conf, defaulting to 'pc1'
>ioctl(TIOCSETD(PPP)): Invalid argument(22)
>/usr/sbin/pppd: this system lacks kernel support for PPP. This could be because
>the PPP kernel module could not be loaded, or because PPP was not included in
>the kernel configuration. If PPP was included as a module, try '/sbin/modprobe
>-v ppp'. If that fails, check t.
>
>So, how do I get LRP to use 'network.conf' and how do I add PPP support to the
>kernel?
>
>Thanks, bartosz
>
>P.S. how do I add the patches found on the www.linuxrouter.org site?



--
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to