LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-16-2010, 06:35 AM   #1
slingshot
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
OpenSuSE/Yast/Network Settings: how to gateway eth0 through wlan1?


I have a laptop running OpenSuSE 11.2. I use the Yast menu to set up network settings via "traditional" ifconfig setup (not NetworkManager), because I found NM unusable in prior releases when doing network gymnastics such as router re-flashing, LAN reconfiguration, etc. where I needed control of the IP address, netmask, DHCP, tftp, etc.

My laptop works fine with Yast "traditional" ifconfig configuration for eth0 connected to router to Internet. Works fine with Yast ifconfig configuration for USB WiFi as wlan1 to WiFi router to Internet. Also works fine for virtual machines on vmnets NAT-ed to the Internet. Works fine as long as there is only one network connection, that is.

Now, I have a second laptop. I want to network laptop #2 eth0 to laptop #1 eth0 for file transfer and/or Internet access WHILE laptop #1 is is linked to the Internet through wlan1.

Unfortunately, I have not figured out how to get Yast/Network Configuration to do that. I have not been able to get Yast/Network Configuration to see both wlan1 and eth0 at the same time--when the Yast utility finishes, I do >ifconfig and >route, and I find that I have lost either eth0 or wlan1. Thus, when I do direct-connect file transfers, I loose the WiFi Internet connection on both machines.

I suspect that it might have something to do with Yast/Network Configuration utility not being able to handle two network interfaces on the host with different IP addresses.

Can anyone tell me how to properly put an OpenSuSE machine on two networks simultaneously? And then how to turn on IP forwarding so that I can use laptop #1's WiFi as an Internet gateway for laptop #2?
 
Old 12-16-2010, 10:19 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
As I understand it, you want to make laptop #1 into a router. There are several packages that allow you to generate iptables scripts which will establish this functionality. Some are GUI based, such as shorewall and many others. Others are canned, configurable packages scripts that do the same thing. My personal preference in this category is HomeLANSecurity, which I have used for many years with great success.
Since you are dealing with a laptop, there are probably implications for such a system, since I presume that you will run the laptop in other environments, where the router functionality would be inappropriate. I will leave it to others to comment on how you might deal with that. It probably wouldn't be difficult to simply run the iptables firewall script, or not, depending on where you are running the laptop.
The functionality you require is done routinely using this kind of method.
--- rod.

Last edited by theNbomr; 12-16-2010 at 10:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
network HP ColorLaserJet 3600 - Yast on openSUSE 11.1 with KDE 3.5 - unable to access chavezgvg Linux - Hardware 2 01-07-2009 10:49 AM
Can't ping gateway, even with correct network settings Hugo2009 Red Hat 1 01-06-2009 02:24 PM
configuring network in opensuse tru yast ic_torres Suse/Novell 1 12-19-2007 03:22 AM
Using openSUSE 10.2 as a gateway for a local network karnaf Suse/Novell 8 05-30-2007 07:24 PM
Yast - Network Settings Hanging... AHinMaine Suse/Novell 5 01-19-2007 05:14 PM


All times are GMT -5. The time now is 05:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration