[Techtalk] interfacing ppp0 with eth0 ?

mic mic at linefeed.org
Fri Jan 2 14:18:24 EST 2004


background:
-debian computer
-the lan works fine (thanks hamster)

i am unable to connect to the outside world from the gateway.  it is not
clear to me where ppp0 interfaces eth0

i have led myself to believe that ppp0 is connected to the outside world,
however ppp0 is not really connected anything on the gateway comp.  i set
out to try to understand why...

i marked my ramblings of my misadventures in networking with
### marks below.  thanks in advance for takin time to read it.

-su-2.05b# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

#wan
auto eth0
iface eth0 inet ppp

#lan
auto eth1
iface eth1 inet static
        address 10.0.0.1
        netmask 255.0.0.0
        gateway 10.0.0.1


-su-2.05b# netstat -rn
Kernel IP routing table
Destination    Gateway    Genmask          Flags   MSS Window  irtt Iface
67.119.11.254  0.0.0.0    255.255.255.255  UH      0   0       0    ppp0
10.0.0.0       0.0.0.0    255.0.0.0        U       0   0       0    eth1
0.0.0.0        10.0.0.1   0.0.0.0          UG      0   0       0    eth1


###i then tried:
-su-2.05b# route add default netmask 255.0.0.0 gw 10.0.0.1
-su-2.05b# netstat -rn
Kernel IP routing table
Destination    Gateway    Genmask          Flags   MSS Window  irtt Iface
67.119.11.254  0.0.0.0    255.255.255.255  UH        0 0          0 ppp0
0.0.0.0        10.0.0.1   255.0.0.0        UG        0 0          0 eth1
10.0.0.0       0.0.0.0    255.0.0.0        U         0 0          0 eth1
0.0.0.0        10.0.0.1   0.0.0.0          UG        0 0          0 eth1


###but still get
-su-2.05b# ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
>From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
[snip]


### alittle more background checks:

-su-2.05b# plog
Jan  2 13:17:52 feral pppd[832]: Connect: ppp0 <--> /dev/pts/0
Jan  2 13:17:53 feral pppd[832]: PAP authentication succeeded
Jan  2 13:17:53 feral pppd[832]: not replacing default route to eth1
[10.0.0.1]
Jan  2 13:17:53 feral pppd[832]: Cannot determine ethernet address for
proxy ARP
[snip]
### then i do get allocated local and remote ip's and dns's.


-su-2.05b# cat /etc/ppp/peers/dsl-provider
[snip]
pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"
[snip]


### with the hope that iptables (which am i working towards understanding)
### could solve my problems, i tried


-su-2.05b# modprobe ipt_MASQUERADE
-su-2.05b# iptables -F; iptables -t nat -F; iptables -t mangle -F
-su-2.05b# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
-su-2.05b# echo 1 > /proc/sys/net/ipv4/ip_forward
-su-2.05b# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


###but still can't ping outside ip.
ideas?
thanks.
mic


---------------------------------------------------------------------
************* A Network can be the Opposite of a Hierachy ***********





More information about the Techtalk mailing list