Welcome to the Linux Foundation Forum!

Typo in Lab 2.2 - Namespaces?

Bring up the devices while assigning them IP addresses:

[email protected]:~# ip netns exec namespace1 ip link set dev veth1 up
[email protected]:~# ip netns exec namespace2 ip link set dev veth2 up
[email protected]:~# ip netns exec namespace1 ifconfig veth1 192.168.1.1 up
[email protected]:~# ip netns exec namespace2 ifconfig veth2 192.168.1.2 up

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

I used instead:

[email protected]:~# ip netns exec namespace1 ip addr add 192.168.1.1/24 dev veth1
[email protected]:~# ip netns exec namespace2 ip addr add 192.168.1.2/24 dev veth2

Comments

  • chrispokornichrispokorni Posts: 1,026

    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

Sign In or Register to comment.