Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static ip allocation does not work #17

Closed
kutschkem opened this issue Apr 15, 2019 · 2 comments
Closed

static ip allocation does not work #17

kutschkem opened this issue Apr 15, 2019 · 2 comments

Comments

@kutschkem
Copy link

I am calling netns like this:

netns --ip 192.168.124.1/24 --static-ip 192.168.124.123 --bridge br_mathsoverlay

This results in an error

adding route 192.168.123.1 to interface ethc26318 failed: network is unreachable

Removing the static ip removes the error.

@kutschkem
Copy link
Author

This was a problem of the network configuration, I was missing

iptables -I FORWARD -i netns0 -o netns0 -j ACCEPT

@kutschkem
Copy link
Author

The actual issue I had was that I had the bridge already created using a different IP, removing the old bridge resolved the issue.

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

No branches or pull requests

1 participant