Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th October 2012, 09:59 PM
w2ibc Offline
Registered User
 
Join Date: Oct 2012
Location: Anderson,Indiana
Posts: 21
linuxfirefox
WLAN0 to ETH0 sharing problem

OK. so I moved over to fedora I like it. pretty happy with it. but one issue. I cant seem to get WLAN to share to ETH like i could in debian/ubuntu systems.

https://help.ubuntu.com/community/Ea...nectionSharing

dhcp is installed.
ip forward is on
but im hung up on a couple things.

1st. for some reason my eth interface is listed as p3p1 for some odd reason.

anyway now on ubuntu id go in the network/interfaces and set eth0 to static not managed by network manager.

using 10.29.33.1 as this machines static ip and dhcp server should issue between 10.29.33.10-20 however i set my other machine to static as well. 10.29.33.10

WLAN is of course dhcp from the wifi router.

problem I have is I can activate eth0 in NM and it connects i can ping the other machine and the other machine can ping back. ok no problem.

I can d/c eth and connect wlan and get to the net no problem.

when ever i have both active then the problem shows up. both eth and wlan connected and no internet. d/c eth i have internet. connect back eth no internet reconnect wlan no internet.

so something is hanging wilan up when eth is connected.

now in ubuntu/debian you append this to the network interfaces file

pre-up /sbin/iptables-restore /etc/network/iptables

and run these 2 commands in cli

sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

sudo iptables-save | sudo tee /etc/network/iptables

but since fedora dont use network/interfaces file how do i go about getting that done? and getting this working?


EDIT------------------------

ok i got it working but I noticed this.. im losing the WLAN gateway with both connected

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.29.33.1 0.0.0.0 UG 0 0 0 p3p1
10.29.33.0 0.0.0.0 255.255.255.0 U 0 0 0 p3p1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0

route add default gw 192.168.1.1 wlan0

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 10.29.33.1 0.0.0.0 UG 0 0 0 p3p1
10.29.33.0 0.0.0.0 255.255.255.0 U 0 0 0 p3p1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0

am I going to have to do the add gw command each time i reboot?

Last edited by w2ibc; 5th October 2012 at 10:44 PM. Reason: add more info
Reply With Quote
  #2  
Old 6th October 2012, 02:19 AM
cazo Online
Registered User
 
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 334
linuxchrome
Re: WLAN0 to ETH0 sharing problem

The 'easy' way to do this is by selecting Use as Hotspot from Network Settings. The only problem with that way is, it no longer allows WPA security (only None or WEP).
Attached Thumbnails
Click image for larger version

Name:	Wireless_Hotspot.png
Views:	57
Size:	32.7 KB
ID:	23852  
Reply With Quote
  #3  
Old 7th October 2012, 03:32 AM
w2ibc Offline
Registered User
 
Join Date: Oct 2012
Location: Anderson,Indiana
Posts: 21
linuxfirefox
Re: WLAN0 to ETH0 sharing problem

well. I get my internet from WIFI and am passing it to ethernet.

I got it all working except for having to do the
route add default gw 192.168.1.1 wlan0
on reboot
Reply With Quote
  #4  
Old 7th October 2012, 03:51 AM
gossamer Offline
Registered User
 
Join Date: Oct 2011
Posts: 49
linuxfirefox
Re: WLAN0 to ETH0 sharing problem

Quote:
Originally Posted by w2ibc View Post
well. I get my internet from WIFI and am passing it to ethernet.

I got it all working except for having to do the
route add default gw 192.168.1.1 wlan0
on reboot
Try creating a file called /etc/sysconfig/network-scripts/route-wlan0 with the following:

192.168.1.0/255.255.255.0 dev wlan0

That should create the proper static route.
Reply With Quote
  #5  
Old 8th October 2012, 04:17 AM
w2ibc Offline
Registered User
 
Join Date: Oct 2012
Location: Anderson,Indiana
Posts: 21
unknownmidori
Re: WLAN0 to ETH0 sharing problem

Quote:
Originally Posted by gossamer View Post
Try creating a file called /etc/sysconfig/network-scripts/route-wlan0 with the following:

192.168.1.0/255.255.255.0 dev wlan0

That should create the proper static route.
this seems to have worked.
Reply With Quote
  #6  
Old 9th October 2012, 08:12 PM
gossamer Offline
Registered User
 
Join Date: Oct 2011
Posts: 49
linuxfirefox
Re: WLAN0 to ETH0 sharing problem

Quote:
Originally Posted by w2ibc View Post
this seems to have worked.
Ah, that's great to hear! Glad I could help.
Reply With Quote
Reply

Tags
eth0, problem, sharing, wlan0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up bridge? (wlan0-eth0) szymex Servers & Networking 18 21st December 2011 01:36 AM
NAT eth0 -> wlan0 Zero-Override Servers & Networking 3 7th February 2008 01:00 AM
Trying to bridge wlan0 and eth0 Etanisla Servers & Networking 3 24th November 2006 07:56 PM
wlan0 doesn't work without eth0? LinuxHippy Servers & Networking 6 24th July 2005 11:50 PM
eth0 or wlan0 - which to use? essdeeay Servers & Networking 1 15th October 2004 11:28 PM


Current GMT-time: 07:54 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat