Mailinglist Archive: opensuse (2876 mails)

< Previous Next >
[opensuse] internet connection sharing problem on home network problem
  • From: "Gustav Degreef" <gustav97@xxxxxxxxx>
  • Date: Tue, 22 May 2007 08:03:18 +0200
  • Message-id: <f29c8dd30705212303m64bad1c8qc069c3dd822805f9@xxxxxxxxxxxxxx>
I'm having trouble setting up a home network to share one internet
connection.  I have two laptops both with ethernet cards and both with
wireless cards.  One laptop is connected to a wireless access point
and I am trying to use that machine as a router to share the internet
connection with the second laptop (via wireless).  First, is this
possible?

I ask because I've had no success.  I have followed the basic
instructions on these two pages:

http://www.novell.com/coolsolutions/feature/16579.html

and

http://www.novell.com/coolsolutions/feature/16022.html


Machine 1 Running Suse 10.1 updated regularly.  Isp access via a
wireless network.  Machine 1 has access to the network via eth0 linked
via an ethernet cable to a wireless access point.  The isp assigns
fixed ip 192.168.xxx.202.  The access point is not hooked up to a
wireless router.  The isp gateway is 192.168.xxx.254.  eth1 is the
wireless card which I have given the fixed ip 192.168.2.1  I have
internet access without problems on this machine

eth0      Link encap:Ethernet  HWaddr 00:16:D3:04:7E:AA
         inet addr:192.168.xxx.202  Bcast:192.168.xxx.255  Mask:255.255.255.0
         inet6 addr: fe80::216:d3ff:fe04:7eaa/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:10245 errors:0 dropped:0 overruns:0 frame:0
         TX packets:6164 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:2408404 (2.2 Mb)  TX bytes:818320 (799.1 Kb)

eth1      Link encap:Ethernet  HWaddr 00:13:02:6D:0D:20
         inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
         inet6 addr: fe80::213:2ff:fe6d:d20/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:75 errors:1 dropped:1 overruns:0 frame:0
         TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:2108 (2.0 Kb)  TX bytes:1094 (1.0 Kb)
         Interrupt:185 Base address:0xc000 Memory:d4000000-d4000fff

machine 1:~ # /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.xxx.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.xxx.254 0.0.0.0         UG    0      0        0 eth0


Machine 2 - running suse 10.0 online update regularly.  I can ping
machine 1 but I get not ping the default gateway nor other sites.  The
result I get is that the network is unreachableI have enabled ip
forwarding and ip masquerading on machine 1.  I have tried turning off
the firewalls,

wlan0     Link encap:Ethernet  HWaddr 00:90:4B:F9:A4:AF
        inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
        inet6 addr: fe80::290:4bff:fef9:a4af/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:19 errors:0 dropped:0 overruns:0 frame:0
        TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:1724 (1.6 Kb)  TX bytes:2734 (2.6 Kb)
        Memory:b0104000-b0105fff

machine 2:~ # /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0
wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0
wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
presario:~ #


wlan0     Link encap:Ethernet  HWaddr 00:90:4B:F9:A4:AF
        inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
        inet6 addr: fe80::290:4bff:fef9:a4af/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:19 errors:0 dropped:0 overruns:0 frame:0
        TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:1724 (1.6 Kb)  TX bytes:2734 (2.6 Kb)
        Memory:b0104000-b0105fff

Any pointers would be much appreciated.  Gustav
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups