You are not logged in.

#1 2016-12-26 13:57:38

skprime
Member
Registered: 2016-12-26
Posts: 4

Sharing internet from USB modem to WAN

Hi! smile

I'm trying to share my internet connection from USB modem connected to my Arch to WAN input on my router through Ethernet.
I did it two years ago on my old Arch, but now after searching the internet I'm not able to do that.

I created new Ethernet profile with "Shared to other computers" enabled, but it fails when I'm trying to switch it on.

sch.png

Offline

#2 2016-12-26 16:00:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: Sharing internet from USB modem to WAN


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-12-26 18:45:42

skprime
Member
Registered: 2016-12-26
Posts: 4

Re: Sharing internet from USB modem to WAN

ewaller wrote:

Yes, but my router doesn't see my PC connected to WAN.

Offline

#4 2016-12-26 19:15:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: Sharing internet from USB modem to WAN

First, how do you know that?  Are you logged into the router from one of the PCs on the downstream LAN ports?
Are the link lights on?
On the Arch box, what is the output of ip addr ?
What kind of upstream protocol is the router expecting on the WAN port? PPP? DHCP? Static address?

We may need to set up a DHCP server for that link.

Let us dig deeper. 
What is the network address of the link between the Arch Box and the WAN port of the router going to be? 192.168.1.x/24 ? 
What is the network address of the router and downstream LAN ports going to be? 192.168.2.x/24?
Is the router going to provide DHCP services down stream, or is that going to be delegated to the Arch Box?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-12-26 22:01:36

skprime
Member
Registered: 2016-12-26
Posts: 4

Re: Sharing internet from USB modem to WAN

@ewaller
I'm unable to enable Ethernet profile with "Shared to other computer" method enabled.
Router is unable to obtain network parameters when I go to 192.168.1.1 and check its status (checking form different PC connected to this router to LAN input).

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: net0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.100/24 brd 192.168.8.255 scope global dynamic net0
       valid_lft 86145sec preferred_lft 86145sec
    inet6 fe80::45d:f3da:3439:5013/64 scope link 
       valid_lft forever preferred_lft forever
3: net1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 8c:89:a5:c2:07:14 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::3ffb:d953:ff05:1139/64 scope link 
       valid_lft forever preferred_lft forever

net0 - 3G/4G USB Modem
net1 - Ethernet

And I want to share from net0 to net1.

WAN connection type (on router) is set to Dynamic IP. I can switch between Dynamic, Static, PPPoE.
I always set the type to Dynamic, and it worked fine two years ago.
I had profile with method set to "Shared to other computers" with ability to enable it.

This time I followed the article, did everything fine and simply created new Ethernet profile using nm-connection-editor with "Shared to other computers" enabled.
My router is TP-LINK TL-WR340G.

When I hit profile with sharing method enabled, it instantly switches to default profile, and tells me that activation of network connection failed.

Last edited by skprime (2016-12-27 21:02:29)

Offline

#6 2016-12-28 16:26:24

skprime
Member
Registered: 2016-12-26
Posts: 4

Re: Sharing internet from USB modem to WAN

I installed dnsmasq package, and it solved my problem.
Mark as solved, thanks for your help!

Offline

Board footer

Powered by FluxBB