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

Host Using Created Test Namespace as Default #445

Open
xooxo opened this issue Oct 28, 2024 · 2 comments
Open

Host Using Created Test Namespace as Default #445

xooxo opened this issue Oct 28, 2024 · 2 comments

Comments

@xooxo
Copy link

xooxo commented Oct 28, 2024

Hello,

Question is a bit dumb; but I can't figure out one thing. After using testenv script for setting up veth, my internet connection gets dropped since (as far as I guess) my connections are now using newly created interface as default:

$ ip route
0.0.0.0 dev veth-basic02 scope link 
default dev veth-basic02 scope link 
default via 192.168.1.1 dev wlp1s0 
169.254.0.0/16 dev veth-basic02 proto kernel scope link src 169.254.121.169 
169.254.0.0/16 dev wlp1s0 scope link metric 1000 
192.168.1.0/24 dev wlp1s0 proto kernel scope link src 192.168.1.6 

I try to delete via sudo ip route del default dev veth-basic02 but no luck. Other entries are gone when I use exact same command except default dev veth-basic02 scope link . which seems to persist. I'm new to all these network namespace stuff (only used ebpf for tracing) and this becomes huge inconvenience.

If I delete the namespace, everything is fine; however whenever I need to surf the web while testing my assignments, it becomes a problem.

@tohojo
Copy link
Member

tohojo commented Oct 28, 2024 via email

@xooxo
Copy link
Author

xooxo commented Oct 28, 2024

The testenv doesn't set that default route, looks like maybe you have some other network management daemon that does that?

Highly possible. Is there a way to verify that? I have both NetworkManager and systemd-networkd but for nmcli does not have anything ordinary and systemd-networkd does not have (at least there is nothing under /etc/systemd/network) persistent artifacts.

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

2 participants