LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 09:19 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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 09:20 AM.
 
  


Reply



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
Can't ping gateway, even with correct network settings Hugo2009 Red Hat 3 11-20-2018 06:53 AM
network HP ColorLaserJet 3600 - Yast on openSUSE 11.1 with KDE 3.5 - unable to access chavezgvg Linux - Hardware 2 01-07-2009 09:49 AM
configuring network in opensuse tru yast ic_torres SUSE / openSUSE 1 12-19-2007 02:22 AM
Using openSUSE 10.2 as a gateway for a local network karnaf SUSE / openSUSE 8 05-30-2007 06:24 PM
Yast - Network Settings Hanging... AHinMaine SUSE / openSUSE 5 01-19-2007 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration