Share Mobile broadband to Ethernet

Kernels & Hardware, configuring network, installing services

Share Mobile broadband to Ethernet

Postby jokris100 » 2018-11-20 07:29

Hi,

I am currently working on a project with two computers running Debian, but i'm sorta stuck on a problem.

The goal is to share the internet connection from computer 1 to computer 2. We'll just call them PC1 and PC2. PC1 has a built-in modem module, so PC1 gets internet access with a SIM-card.

I've tried making a bridge with "Bridge-Utils" first with ethernet to ethernet (PC1 has two ethernet ports) just to see that it works, and I got it working perfectly. Then I tried to do the same but with the mobile connection instead (Mobile to Ethernet) but with no success.

Worth noting is that i'm pretty new at doing these kinds of things in Linux.
jokris100
 
Posts: 2
Joined: 2018-11-20 07:15

Re: Share Mobile broadband to Ethernet

Postby Head_on_a_Stick » 2018-11-20 16:00

jokris100 wrote:HI tried to do the same but with the mobile connection instead (Mobile to Ethernet) but with no success.

Please explain in detail exactly what you did so that we can tell you where you went wrong. Thanks!

EDIT: for bridging a wireless interface, see https://wiki.debian.org/BridgeNetworkCo ... reless_NIC
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8322
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Share Mobile broadband to Ethernet

Postby jokris100 » 2018-11-21 08:38

OK, first I got "bridge-utils"

Then I did this in root terminal:

brctl addbr br0
brctl addif br0 wwp0s20u5u1i4 (mobile modem)
nano /etc/network/interfaces

added this line:
auto br0
iface br0 inet static
bridge_ports wwp0s20u5u1i4
address 10.44.169.8
netmask 255.255.255.0
gateway 10.44.169.11

/etc/init.d/networking restart
brctl addif br0 enp2s0 (ethernet port)
jokris100
 
Posts: 2
Joined: 2018-11-20 07:15

Re: Share Mobile broadband to Ethernet

Postby Head_on_a_Stick » 2018-11-21 19:45

Read my wiki link, you missed some steps.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8322
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable