Welcome to the Linux Foundation Forum!

Typo in Lab 2.2 - Namespaces?

Bring up the devices while assigning them IP addresses:

root@ubuntu:~# ip netns exec namespace1 ip link set dev veth1 up
root@ubuntu:~# ip netns exec namespace2 ip link set dev veth2 up
root@ubuntu:~# ip netns exec namespace1 ifconfig veth1 192.168.1.1 up
root@ubuntu:~# ip netns exec namespace2 ifconfig veth2 192.168.1.2 up

exec of "ifconfig" failed: no such file or directory

I used instead:

root@ubuntu:~# ip netns exec namespace1 ip addr add 192.168.1.1/24 dev veth1
root@ubuntu:~# ip netns exec namespace2 ip addr add 192.168.1.2/24 dev veth2

Comments

  • chrispokorni
    chrispokorni Posts: 2,340

    Hi @Bertheau,

    Thanks for your suggestion. I shall update the course with a note for ip.
    With ifconfig getting deprecated, it may or may not be found in certain distributions, but it can still be installed when not found.

    Regards,
    -Chris

Categories

Upcoming Training