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.
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
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Share Mobile broadband to Ethernet
Please explain in detail exactly what you did so that we can tell you where you went wrong. Thanks!jokris100 wrote:HI tried to do the same but with the mobile connection instead (Mobile to Ethernet) but with no success.
EDIT: for bridging a wireless interface, see https://wiki.debian.org/BridgeNetworkCo ... reless_NIC
deadbang
Re: Share Mobile broadband to Ethernet
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)
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)
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times