Welcome to the Linux Foundation Forum!

Lab 2.2: Error with namespaces

magnezone150
magnezone150 Posts: 14
edited October 2022 in LFS253 Class Forum

I have Arch Linux running KVM VMs and as the Lab 1.1 asked for I created an Ubuntu Server VM and all other labs are working so far. Wondering if this is just a networking issue with KVM/QEMU or is there more to it than that?!

sudo ip netns exec namespace1 ip addr add 192.168.1.1/24 devveth1
Error: either "local" is duplicate, or "devveth1" is a garbage.

Answers

  • As Discussed with @chrispokorni, I'll try to run this Lab again via Virtual Box on one of my KVM VMs to see I experience the same issue.

  • anugreh
    anugreh Posts: 1

    I also get the same error - for the same lab. What must be the problem? And, how to fix it?

    Error: either "local" is duplicate, or "veth1" is a garbage.

  • chrispokorni
    chrispokorni Posts: 2,113

    Hi @anugreh,

    What OS release runs your lab VM?

    Also, depending on your environment, copy/paste may not transfer correctly some commands into the terminal:

    sudo ip netns exec namespace1 ip addr add 192.168.1.1/24 dev veth1

    sudo ip netns exec namespace2 ip addr add 192.168.1.2/24 dev veth2

    Regards,
    -Chris

Categories

Upcoming Training