Skip to content

Docker bridge to act as main interface for lan,static host ip, assert revert namespace of wlan0#14

Open
hllhll wants to merge 5 commits into
oofnikj:masterfrom
hllhll:master
Open

Docker bridge to act as main interface for lan,static host ip, assert revert namespace of wlan0#14
hllhll wants to merge 5 commits into
oofnikj:masterfrom
hllhll:master

Conversation

@hllhll
Copy link
Copy Markdown

@hllhll hllhll commented Oct 10, 2020

This addresses the issues I encountered in #12
and also wlan0 would not return to host stack occasionally, so I've added it explicitly.

hll added 3 commits October 10, 2020 15:19
- On bridge mode, the host will not get it's IP from OpenWrt, Rather it would be the static IP allocated by docker bridge (usually .1)
Comment thread run.sh
Comment on lines +48 to +50
echo "* Rolling back ip address for main if"
sudo service dhcpcd start
sudo dhclient -r
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I'm not sure I understand the reason why this is necessary in your case.

  2. While dhcpcd is usually run as a separate service on Raspberry Pi OS, this is not the case for other intended targets, so I'd rather add some checks to this first.

Also, I would prefer not to add an additional dependency on dhclient if we are already using dhcpcd. They are not the same thing.

@oofnikj
Copy link
Copy Markdown
Owner

oofnikj commented Oct 11, 2020

Hi, thanks for opening this PR. I've added a couple of inline comments.

I think making WAN optional and the WiFi namespace commits are unrelated issues, so it would be best to open them as separate PRs.

hll added 2 commits November 10, 2020 09:39
…ities to the host, assign name for the lan interface bridge, some notes...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants