Skip to content

Host Using Created Test Namespace as Default #445

Description

@xooxo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions