Skip to content

Commit

Permalink
tunspace: switch to macvlan passthru, more robust
Browse files Browse the repository at this point in the history
With bridge mode we failed to get a USB LTE stick on eth1 working.

Signed-off-by: Packet Please <[email protected]>
  • Loading branch information
pktpls committed Mar 19, 2024
1 parent 59187a5 commit 52d6c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tunspace/tunspace.uc
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ function uplink_maintenance(nsid, netns, ifname) {
// shell_command("ip -n "+netns+" link set "+ifname+" up");
// shell_command("ip -n "+netns+" link set "+ifname+" name "+netnsifname);

// or create a macvlan bridge:
shell_command("ip link add "+netnsifname+" link "+ifname+" type macvlan mode bridge");
// or create a macvlan passthru:
shell_command("ip link add "+netnsifname+" link "+ifname+" type macvlan mode passthru");
shell_command("ip link set dev "+netnsifname+" netns "+netns);
shell_command("ip -n "+netns+" link set up "+netnsifname+"");

Expand Down

0 comments on commit 52d6c2c

Please sign in to comment.