LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-21-2014, 10:00 AM   #1
thaiiceland
LQ Newbie
 
Registered: Aug 2012
Location: Hofn, Iceland
Distribution: Linux Mint 17.1 "Rebecca"
Posts: 29

Rep: Reputation: Disabled
Sharing Mobile Internet to wireless Router


I have USB mobile Internet connection. I am able to share it but there is some small problem I like to find solution for.

I have a wireless router with 4 LAN ports. I shared my LAN connection eth0 and then cable connected to one of the LAN ports on the router. On the router I activate "Static Routing" and give the router the ip-address for my shared eth0.
The wireless network have different ip-address (my wireless home network).
This make me possible to share my mobile Internet-connection to other devices on my wireless home network.
But every-time when I restart my computer, other devices on my wireless network cannot connect to the Internet until I have change my wlan0 connection to hot-spot for short time (I wait until the connection will be active, then I can turn off the hot-spot, and the wlan0 can connect to the router again - to my home network). After I have changed my wlan0 to hotspot and back, other devices can connect to the Internet (for example Android phones), but before that, these devices are not able to connect to Internet, but of course able to connect to the router wireless network (my home network).

Of course I have no problems to connect to the Internet on my PC, that share the connection, but I am not able to connect other devices until I have turn on the hot-spot for just a minute.

Is it possible for me to do something so I don't need to make this step with hot-spot every-time, so after I turn on my mobile connection, all devices can just start using the Internet.
Why dos this happen, is it that the LAN connection isn't actually sharing the Internet-connection until finish this step?

I am using Linux Mint 15 "olivia" Cinnamon 64-bit

thanks.
thaiiceland
 
Old 01-22-2014, 04:29 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,428

Rep: Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591Reputation: 2591
I didn't see you mention forwarding. This is disabled by default. You can enable it for IPV4 as follows:

echo 1 > /proc/sys/net/ipv4/ip_forward
 
1 members found this post helpful.
Old 01-22-2014, 07:26 AM   #3
thaiiceland
LQ Newbie
 
Registered: Aug 2012
Location: Hofn, Iceland
Distribution: Linux Mint 17.1 "Rebecca"
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thank you

Somehow things are working late yesterday and today. I didn't do anything so I don't know why. I will wait to see and if I get the problem again, I will do this.

edited 22 Jan 14 - GMT 13:34
I did open the "/proc/sys/net/ipv4/ip_forward" and I see it have "1" in it. That means it allow ip forwarding. I will look at it next time when I will not be able to connecting the Internet using my phone.


Thank you.
thaiiceland

Last edited by thaiiceland; 01-22-2014 at 07:36 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
Make Ubuntu Linux work as a wireless router--wireless Internet sharing erossmith Linux - General 6 04-21-2013 09:59 PM
Sharing Internet with a Windows Mobile Device teqsun Linux - Software 2 02-03-2009 10:21 PM
Sharing internet without a router or wireless? Anithen Linux - Wireless Networking 15 06-10-2008 11:41 AM
Internet sharing through router Pyr00 Linux - Networking 17 02-28-2005 01:59 PM
Sharing Internet through Linksys Router ! SuseBoy Linux - Networking 2 09-01-2003 02:09 PM

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

All times are GMT -5. The time now is 01:35 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