[opensuse] internet connection sharing problem on home network problem
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 22 May 2007 01:03, Gustav Degreef wrote:
First, is this possible? Yes.
You need to setup the default gateway on machine (2) to point to the address on machine (1). Machine (1) must have ip forwarding turned on of course. On machine (2): In yast select network devices-->network card--> edit then click "routing". Enter the address of the machine (1). retry. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Success!!!!
Mark,
Thanks for the really fast response and tip. I thought I had tried
that before, but what I must have done before was to put the machine 2
address in the gateway under the expert configuration tab of the
routing section in yast2. Now both machines are connected to the
internet. I really appreciate your help. I am in a small village
outside of Novi Sad in Serbia since the past month and so had no one
to personally turn to for help. Gustav
On 5/22/07, M Harris
On Tuesday 22 May 2007 01:03, Gustav Degreef wrote:
First, is this possible? Yes.
You need to setup the default gateway on machine (2) to point to the address on machine (1). Machine (1) must have ip forwarding turned on of course.
On machine (2): In yast select network devices-->network card--> edit then click "routing".
Enter the address of the machine (1).
retry.
-- Kind regards,
M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 22 May 2007 05:57, Gustav Degreef wrote:
Success!!!!
Mark, Thanks for the really fast response and tip. You are most welcome.
... good day to you. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Gustav Degreef
-
M Harris