Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Share Mobile broadband to Ethernet

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
jokris100
Posts: 2
Joined: 2018-11-20 07:15

Share Mobile broadband to Ethernet

#1 Post by jokris100 »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Share Mobile broadband to Ethernet

#2 Post by Head_on_a_Stick »

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
deadbang

jokris100
Posts: 2
Joined: 2018-11-20 07:15

Re: Share Mobile broadband to Ethernet

#3 Post by jokris100 »

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)

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Share Mobile broadband to Ethernet

#4 Post by Head_on_a_Stick »

Read my wiki link, you missed some steps.
deadbang

Post Reply