xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

Host Using Created Test Namespace as Default

Open xooxo opened this issue 1 year ago • 2 comments

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.

xooxo avatar Oct 28 '24 20:10 xooxo

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

tohojo avatar Oct 28 '24 20:10 tohojo

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.

xooxo avatar Oct 28 '24 20:10 xooxo