You are not logged in.

#1 2015-01-17 14:30:39

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Use network bridge on Laptop

Hi,

on my Desktop PC I use a bridge to be able to use VMs that are automatically integrated in the network.
I wanted to have the same setup on my laptop to have a as similar as possible environment.

However I failed to do so: I currently use NetworkManager to manage different WiFi Profiles. My first idea was to create a bridge with netctl, attach ethernet and wlan NIC to it and run dhcpcd on it. Then I tried to disable automatic IP (i.e. DHCP) on the network profiles. However I could not get it to work, dhcpcd always reported a timeout.
I think it would be easier and less error prone (some networks might combine wireless authentication and IP allocation, e.g. eduroam?) to have NetworkManager take care of the IP addresses and simply attach an bridge to the device that VMs or containers can attach to. Is this possible somehow?

Offline

#2 2015-01-17 23:40:50

Hydranix
Member
Registered: 2013-02-10
Posts: 56

Re: Use network bridge on Laptop

Use a static address on the bridge.

Offline

#3 2015-01-18 15:51:54

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Re: Use network bridge on Laptop

This will not work properly because I switch networks regularly.
There are two solutions I`ve come up with
1.: Use etables to mask the MAC address for outgoing packets (NAT on OSI Layer 2) as described on the debian wiki
2.: Do normal NAT

I have yet to try those, I will first try to setup etables, this will allow to copy the setup from my desktop PC. If that wont work I use option 2.

Last edited by SpacePirate (2015-01-18 15:52:33)

Offline

Board footer

Powered by FluxBB