Florian Philipp schrieb: > Dan Farrell schrieb: >> On Sun, 02 Sep 2007 05:12:11 -0500 >> Dale <[EMAIL PROTECTED]> wrote: >> >>> Florian Philipp wrote: >>>> Hi list! >>>> >>>> I'm trying to set up my laptop as the router for my PC. >>>> ... >>>> My problem: As soon as set up eth0 with "ifconfig 192.168.1.1 >>>> netmask 255.255.255.0 eth0" ppp0 is no longer used. >>> I do this too and I have this in my /etc/conf.d/net file on the one >>> that connects to the internet. >>> >>> gateway="ppp0" >>> >>> You may want to try that. >>> >>> Dale >> Yes, this is your problem Florian. You need to make sure the default >> route is not set to eth0, which will probably be done automatically for >> eth0 when you bring it up. >> >> In other words, follow Dale's advice. > > Thanks! At least they can ping each other now but routing still doesn't > work: "Destination host unreachable". > > Is there anything wrong with the server script in the howto? I've > already tried to deactivate ipv6 on the server.
I'll attach relevant ifconfig, route and iptables -L output.
eth0 Protokoll:Ethernet Hardware Adresse 00:1A:4D:7B:9F:1B inet Adresse:10.8.0.2 Bcast:10.8.0.255 Maske:255.255.255.0 inet6 Adresse: fe80::21a:4dff:fe7b:9f1b/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:192 errors:0 dropped:0 overruns:0 frame:0 TX packets:538 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:18818 (18.3 KiB) TX bytes:53935 (52.6 KiB) Interrupt:21 Basisadresse:0xa000 lo Protokoll:Lokale Schleife inet Adresse:127.0.0.1 Maske:255.0.0.0 inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:55 errors:0 dropped:0 overruns:0 frame:0 TX packets:55 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:0 RX bytes:5221 (5.0 KiB) TX bytes:5221 (5.0 KiB)
eth0 Link encap:Ethernet HWaddr 00:19:B9:7A:74:31 inet addr:10.8.0.1 Bcast:10.8.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:375 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:36156 (35.3 Kb) TX bytes:1124 (1.0 Kb) Interrupt:17 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) ppp0 Link encap:Point-to-Point Protocol inet addr:10.129.141.215 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:7088 errors:0 dropped:0 overruns:0 frame:0 TX packets:6488 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:6071662 (5.7 Mb) TX bytes:846226 (826.3 Kb)
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- 10.8.0.1 anywhere ACCEPT all -- anywhere 10.8.0.1 DROP all -- !10.8.0.1 anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination
Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface 10.8.0.0 * 255.255.255.0 U 0 0 0 eth0 link-local * 255.255.0.0 U 1000 0 0 eth0 default HOMER-KUBUNTU64 0.0.0.0 UG 0 0 0 eth0 default 10.8.0.1 0.0.0.0 UG 0 0 0 eth0
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0 10.8.0.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0