Network Namespaces Basics Explained in 15 Minutes

🆓Join our Slack Community for FREE: kode.wiki/JoinOurSlackCommunity
Get introduced to the basics of Network Namespaces in Linux.
Access full course here: kodekloud.com/p/certified-kub...
Network Namespaces are used by containerization technologies like Docker to isolate network between containers.
We’ll start with a simple host. As we know already containers are separated from the underlying host using namespaces. So what are namespaces?
When the container is created we create a network namespace for it that way it has no visibility to any network-related information on the host. Within its namespace the container can have its own virtual interfaces, routing and ARP tables. The container has an interface.
To create a new network namespace on a Linux host, run the ip nets add command. In this case we create two network namespaces read and blue. To list the network namespaces run the ip netns command.
To list the interfaces on my host, I run the ip link command. I see that my host has the loopback interface and the eth0 interface. Now, how do we view the same within the network namespace we created? How do we run the same command within the red or blue namespace? Pre-fix the command with the command ip netns exec followed by the namespace name which is red. Now the ip link command will be executed inside the red namespace. Another way to do it is to add the -n option to the original ip link command. Both of these are the same, the second one is simpler though. But remember this only works if you intend to run the ip command inside the namespace. As you can see it only lists the loopback interface. You cannot see the eth0 interface on the host. So with namespaces we have successfully prevented the container from seeing the hosts interface.
#NetworkNamespacesBasics #KodeKloud

Пікірлер: 211

  • @KodeKloud
    @KodeKloud4 жыл бұрын

    Learning Kubernetes is essential for any DevOps professional. Learn, practice, and get certified on Kubernetes: kodekloud.com/p/certified-kubernetes-administrator-with-practice-tests

  • @abobakrabdellah7598
    @abobakrabdellah759828 күн бұрын

    I rarely comment on any video. But this amazing video forces me to comment. Great explanation. Thanks!

  • @manishfoodtechs
    @manishfoodtechs4 жыл бұрын

    This took me 1 month to learn by self and you visualized in 15 minutes. Believe me.. you covered everything. Good Work

  • @Papun590

    @Papun590

    4 жыл бұрын

    brother please if you understand make me understand it because ididint understand any thing

  • @agytjax
    @agytjax3 жыл бұрын

    Wow. Entire Namespace condensed to 15 min and explained well as well. This should be the go-to tutorial for networking with Namespaces

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Welcome🙏. All our videos are simple and easy to understand. Please subscribe to our channel & help us create more such videos.

  • @nikhilpurwant5030
    @nikhilpurwant50302 жыл бұрын

    Great Work KodeKloud! If the pings do not work - make sure you add ip addresses as 192.168.15.1/24 and 192.168.15.2/24 and for the bridge example make sure you also bring up the peer devices (veth-red-br and veth-blue-br) using following commands - sudo ip link set veth-red-br up and sudo ip link set veth-blue-br up before testing the pings.

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Hi Nikhil, thanks for checking out our tutorial and for sharing the information. Do subscribe to our channel to stay posted on upcoming tutorials. Cheers!

  • @christianposta

    @christianposta

    2 жыл бұрын

    Yeah, this helped me as well. The last thing that helped me was, the bridge traffic will traverse iptables by default… so either turn that off, or enable an “allow” policy for Forwarded traffic with “iptables -policy FORWARD ACCEPT”

  • @mintymintfresh

    @mintymintfresh

    Жыл бұрын

    this is what i was missing.

  • @helgestegemoen73

    @helgestegemoen73

    Жыл бұрын

    That helped me. Thanks :)

  • @zahurulhaque6377
    @zahurulhaque63773 жыл бұрын

    Awesome video, Love this guy helped me pass my kube certs. BTW on amazon linux 2, I had to use 192.168.15.1/24 and 192.168.15.2/24 for red and blue namespaced network, otherwise could not ping.

  • @michalkosinski4459

    @michalkosinski4459

    Жыл бұрын

    Same for me in Fedora , in other case I got Network is unreachable and cannot even ping own iface . Br, Michal

  • @helgestegemoen73

    @helgestegemoen73

    Жыл бұрын

    Thanks. This worked for me on Ubuntu :)

  • @calebflenoury178

    @calebflenoury178

    7 сағат бұрын

    Yes same for me! I looked into this and apparently it's because the default subnet mask when creating the IP addresses for each namespace is 32 bits. This means that the namespaces act as single hosts that don't belong to a network. This prevents the Address Resolution Porotcol from finding the host that the IP address belongs to because it relies on a broadcast message and you can not broadcast on a network of one device. To fix this without changing the subnet mask on the IP's to be '/24' (24 bit) instead, i had to manually enter the IP address and corresponding interface into the routing table of each namespace. Like so: sudo ip netns exec red ip route add 192.168.15.2/32 dev veth-red sudo ip netns exec blue ip route add 192.168.15.1/32 dev veth-blue This allowed me to ping the namespaces successfully Also, I believe changing the subnet masks are also a completely valid way to achieve the same goal. I just wanted to give an alternative solution 😃

  • @yoavklein123
    @yoavklein1232 жыл бұрын

    Hi thanks for the video ! When following along, I noticed that there are 2 important things not mentioned in this video in order for this to work: 1. We need to set up the interfaces that are mastered by the bridge network. 2. We need to enable ip forwarding for the machine, i.e.: sysctl -w net.ipv4.ip_forward=1

  • @shrutidalvi9202
    @shrutidalvi92024 жыл бұрын

    This is the best explanation ever! Thank you so much.

  • @sandeepr5007
    @sandeepr50072 жыл бұрын

    Awesome video with so much details compressed yet very much clear and precise explanation. Analogy was simply superb which I could not find in any videos and articles till now. Thank you :)

  • @Kodreanu23
    @Kodreanu234 жыл бұрын

    Fantastic video! So short, down to the point. Thank you! Subscribed.

  • @NoProblem76
    @NoProblem764 жыл бұрын

    oh wow i've been trying to learn this for years and u made it so clear.

  • @TrungLe-lw4zm
    @TrungLe-lw4zm4 жыл бұрын

    This is probably one of the best video that could explain this concept

  • @christymathew9035
    @christymathew90352 жыл бұрын

    God level teaching....Im literally speechless.Was struggling with openstack ping issues.this saved my life.

  • @leamon9024
    @leamon90244 жыл бұрын

    Awesome explanation! Thanks for all the hard work. Appreciate your effort.

  • @saiyjin98
    @saiyjin984 жыл бұрын

    This is by FAR the best description of network namespaces I've ever seen! Thank you for putting this together!

  • @UlissesESA
    @UlissesESA4 жыл бұрын

    That is completely perfect! Thank you vary much. It looks like that it's worth enough following this channel.

  • @pengdu7751
    @pengdu77513 жыл бұрын

    best 15 minutes I've spent today! thanks!

  • @zyymcu
    @zyymcu4 жыл бұрын

    Great work ! This video deserves more thumb up! Thank you very much.

  • @iammrchetan
    @iammrchetan2 жыл бұрын

    This is just awesome. Docker kept rolling in my mind for the entire video and helped me understand the implementation. Well, the first time, it went a little over my head because of less networking understanding. Watching it for many times to grasp everything. Thank you again, you're the best teacher!

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    WooHoo! We are so happy you love our videos. Please do keep checking back in. We put up new videos every week on all your favorite topics. Whenever you have the time, you must also check out website @kodekloud.com and tell us what you think. Have a good day!

  • @spoown007
    @spoown0073 жыл бұрын

    Very clear technical explanation , you can understand how networking is working within container, and between them! Really excellent, please continue...

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks for stopping by. Hope you saw our other videos on DevOps and other important tools.👍

  • @sudhiris056
    @sudhiris0564 жыл бұрын

    Excellent explanations. Super liked it... Thank you so much for this.

  • @HosseinHosseinvand
    @HosseinHosseinvand3 жыл бұрын

    Simple and Amazing. God bless you

  • @mrashad_com
    @mrashad_com2 жыл бұрын

    WOW, in 15 mints you explained one of the most complicated subjects I didn't understand, simply by telling us the "why" I hope I can make 1000 like, thank you

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    We are glad you found our video helpful. Like and share our video with your peers and also do not forget to subscribe to our channel for not missing video updates. We will be coming up with more such videos. Cheers!

  • @drakezen
    @drakezen5 жыл бұрын

    Great explanation. Much appreciated!

  • @sir_enuf
    @sir_enuf Жыл бұрын

    This visualisation is just amazing. Thanks

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!

  • @pankajchaurasia9105
    @pankajchaurasia9105 Жыл бұрын

    Awesome explanation. Simply superb video

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)

  • @shrish75
    @shrish754 жыл бұрын

    One of the best explanation in 15 mins

  • @samoh96
    @samoh962 жыл бұрын

    more than good level. great. thanks for sharing this smartly and clearly summarized video to public.

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)

  • @crutz3064
    @crutz30642 жыл бұрын

    This is actually explained so well

  • @jbragg33
    @jbragg334 ай бұрын

    Amazing explanation, very clear, thank you

  • @KodeKloud

    @KodeKloud

    3 ай бұрын

    Glad it was helpful!

  • @oshoashram
    @oshoashram4 жыл бұрын

    Thanks ,wonderful explanation !!

  • @upsangelhk
    @upsangelhk2 ай бұрын

    Great tutorial. The title can also be how to create a virtual Linux router. It s basically what a router do, besides the iptables rules then it completed.

  • @user-gl1fv2tu3h
    @user-gl1fv2tu3h3 жыл бұрын

    Watching this video for the second time and it is as helpful as it was before, thank you so much 😁

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks😊 We make sure all the concepts are clearly explained. We have experts in our team who make even complex things look very easy. Please subscribe to our channel & help us create more such videos.

  • @zaherer2008
    @zaherer20083 жыл бұрын

    Teaching is a talent and you are amazingly talented. Best explanation ever

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Wow, thank you! 😊

  • @mortezanik1148
    @mortezanik11482 жыл бұрын

    Thank you for Awesome explanation!

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    You're very welcome!

  • @a143r
    @a143r3 жыл бұрын

    excellent explanation, I. would watch this video 100 times, thanks

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Wow, thanks! Please subscribe to the channel and support us.

  • @fase29
    @fase294 жыл бұрын

    very well explained, great job!

  • @HXYZZZ
    @HXYZZZ4 жыл бұрын

    wow. Great explanation. thanks for putting this together.

  • @leelathati2280
    @leelathati22805 жыл бұрын

    Great explanation!! Thanks.

  • @ofiry
    @ofiry6 ай бұрын

    Amazing video. you basically answered all my questions!

  • @KodeKloud

    @KodeKloud

    6 ай бұрын

    Thank you for the appreciation. You can check our videos related to DevOps and subscribe to our channel to stay updated with all the latest tools.

  • @hsubyron2277
    @hsubyron2277 Жыл бұрын

    So well explained!!

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Glad it was helpful!

  • @sujjalsheth2576
    @sujjalsheth25763 жыл бұрын

    Appreciated, very simple and effective...

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Glad it helped. Please subscribe to our channel for more such videos 😊

  • @ravindra6028
    @ravindra60283 жыл бұрын

    again this video is such a master piece. Never saw any great video like this. Thanks from bottom of heart. This is what education should be. Figuring out from man pages it too much stressful

  • @AnantaAkash.Podder
    @AnantaAkash.Podder Жыл бұрын

    You are the Best Explainer Man... You truly make Difficult Topics understandable very easily...❤❤❤

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Hey, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)

  • @imanebt8617
    @imanebt86173 жыл бұрын

    Please do more in depth courses like these (cgroups, overlay networks). I'm currently interested in what are pods concretely. From what I understood until now, it's just a bunch of containers (i.e a bunch of uts+pid+network+ipc) that belongs to the same network namespace.

  • @KimsesizKedi
    @KimsesizKedi Жыл бұрын

    I can't skip without commenting. It was great! I enjoyed watching. For some reason mine didn't work but overall I learned A LOT.

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Glad you enjoyed it! Check out our Early Black Friday offer to get upto 50% off on our Premium Courses: you can use our early Black Friday offer to enroll for our courses: b.link/wko6c6

  • @moldrienperez9052
    @moldrienperez90522 жыл бұрын

    Great content! Very useful in this moment for me. Thank you very much!

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Glad it was helpful!

  • @milossimicsimo
    @milossimicsimo3 жыл бұрын

    This is so damn good! Well explained and easy to follow.! Great source, thanks!

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks!😊😊😊

  • @jsaenzMusic
    @jsaenzMusic Жыл бұрын

    This was Outstanding! It helped me internalize the virtual networking I set up with my VM's and although I knew how to get things working, I now understand the fundamentals of why! Will be leveraging your services for sure!!!

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thank you for the appreciation. You can check our videos related to DevOps and subscribe to our channel to stay updated with all the latest tools.

  • @ujjwalrastogi9100
    @ujjwalrastogi91003 жыл бұрын

    Thnks for informative vedio, this clear lots of thing for me regarding namespaces

  • @ECX0x100h
    @ECX0x100h2 жыл бұрын

    This is the best video on namespaces I've come across thus far.

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Comments like these motivate us to do more such videos. Thanks! Please subscribe to our channel for more such videos 😊

  • @ECX0x100h

    @ECX0x100h

    2 жыл бұрын

    @@KodeKloud By the way, I'm trying to run multiple VPNs simultaneously each within their own network namespace, then route subnets to their respective VPNs from the main system. You could do a video on how to do this if you want.

  • @chandrag2536
    @chandrag25364 жыл бұрын

    Fantastic video...thank you.

  • @kalimuthu6831
    @kalimuthu68312 жыл бұрын

    Awesome video!!! Keep it up.

  • @jigneshpatel5469
    @jigneshpatel5469 Жыл бұрын

    Bro. This is awesome. You helped me tremendously to understand this

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Glad it helped!

  • @sovsemnetot
    @sovsemnetot3 жыл бұрын

    perfect explanation

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Glad you liked it. Please subscribe to the channel and support us.

  • @tedpeng1862
    @tedpeng18623 жыл бұрын

    this is really awesome explaination

  • @tahar1234
    @tahar12342 жыл бұрын

    Excellent, that all I can say, THANK YOU

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Glad you enjoyed it!

  • @jjames7206
    @jjames72063 жыл бұрын

    This is great great explanation!!

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks👍 Please subscribe and encourage us to provide more such quality content.

  • @vaibhavmewada4508
    @vaibhavmewada45082 ай бұрын

    Nice explanation

  • @chaoukisouissi7092
    @chaoukisouissi7092 Жыл бұрын

    You are the best , bravo bravo🙏

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks a ton! Your support makes all the difference 💙

  • @amilcarchissola2262
    @amilcarchissola22622 жыл бұрын

    Dammn Man, you are the Guy. thank you for this incredible lesson, I spent 1 week trying to understand these concepts, and now with your video, I understood everything in just 15 min.

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)

  • @edipocdf
    @edipocdf10 ай бұрын

    wow, really high level content, tks a lot for this.

  • @KodeKloud

    @KodeKloud

    10 ай бұрын

    Glad you enjoyed it!

  • @g.t.3482
    @g.t.34822 жыл бұрын

    Thanks for posting this.. Great job!! It gets very confusing without animation and color coded diagrams.

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Glad it was helpful!

  • @reddinghiphop1
    @reddinghiphop1 Жыл бұрын

    Fantastic Video

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thank you very much!

  • @RegularEverydayNormalGuy
    @RegularEverydayNormalGuy Жыл бұрын

    That intro is very smooth

  • @KodeKloud

    @KodeKloud

    11 ай бұрын

    Thanks a ton! Your support makes all the difference 💙

  • @damirtheone
    @damirtheone2 жыл бұрын

    Well done! It seems like a too simple, too basic tutorial, but actually it covers, in an extremely simple way, so many important facts (I would say everything for the basic communication between namespaces/host/internal/external networks).

  • @KodeKloud

    @KodeKloud

    2 жыл бұрын

    Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)

  • @aliakbarhemmati31
    @aliakbarhemmati315 жыл бұрын

    Another great content

  • @miggyshiggy
    @miggyshiggy Жыл бұрын

    Great visuals

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks a lot!

  • @kshitizjain9557
    @kshitizjain95573 жыл бұрын

    thanks for doing my coding assignment

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    You're welcome. Please subscribe to our channel and support us to do more such videos. Thanks 😊

  • @eryoung2172
    @eryoung21723 жыл бұрын

    Wow, a helpful video!

  • @silvertad3833
    @silvertad38333 жыл бұрын

    excellent job

  • @neilthomas5026
    @neilthomas50262 жыл бұрын

    Great content tbh 👍🏾👍🏾👍🏾

  • @namitaigit
    @namitaigit3 жыл бұрын

    Amazing!

  • @user-jn5jg4lm9k
    @user-jn5jg4lm9kАй бұрын

    Wonderful explanation. If you do the same for other material it worth it spending the time to learn it

  • @zenancai4656
    @zenancai46563 жыл бұрын

    Amazing video

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks! Please subscribe to the channel and support us.

  • @saeedp92
    @saeedp923 жыл бұрын

    So great

  • @shalinikabilan7128
    @shalinikabilan71283 жыл бұрын

    Exellent job

  • @zeeshanakhtar8081
    @zeeshanakhtar80814 жыл бұрын

    Hi Mumshad, Thank soo much for video took me weeks to understand everything which you amazingly covered in just 15min. If possible also touch CI/CD pipeline (Jenkins) auto deployment networks within containers May Allah always bless you

  • @Angluar
    @Angluar4 жыл бұрын

    Very Nice Video! Thx XD

  • @kazifaisal-rj9js
    @kazifaisal-rj9jsАй бұрын

    very good video

  • @victoriabressan4557
    @victoriabressan45572 жыл бұрын

    excelente!

  • @vellano.1637
    @vellano.16375 жыл бұрын

    very good ! like it.

  • @alexandersmirnov4274
    @alexandersmirnov42743 жыл бұрын

    you are the best!!!

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Glad 🙂. Please subscribe and encourage us to provide more such quality content.

  • @imanebt8617
    @imanebt86173 жыл бұрын

    I don't understand the 6th downvotes, this video shed the light on so many things that other articles talk about and describe without saying what it actually is. All the articles I read say the fruit is round and may be green or red, while this video tells me directly that it is an apple.

  • @navkang4
    @navkang43 жыл бұрын

    hats off !

  • @mouhammaddiakhate3546
    @mouhammaddiakhate35463 жыл бұрын

    This man is a genious.

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks!😊😊😊 Please subscribe to our channel for more such amazing videos.

  • @ClaudioPascual
    @ClaudioPascual2 жыл бұрын

    Excellent tutorial. I had to explicitly bring up the `veth-*-br` devices -I don't see that in your video.

  • @AronW4
    @AronW42 жыл бұрын

    Like * 1000000000 brilliant lesson

  • @tomknud
    @tomknud9 ай бұрын

    That's a pretty thorough rundown of the internal networking facilities of OS's. The only thing that might make it better is if you brought up the places in the Linux codebase where these things are effected.

  • @KodeKloud

    @KodeKloud

    9 ай бұрын

    Thank you so much : ) We are glad to be a part of your learning journey

  • @vikas5951
    @vikas59512 жыл бұрын

    Should we execute the commands on two different terminals ? should the bridge be created outside of both blue and red namespaces?

  • @bimbumbamdolievori
    @bimbumbamdolievori3 жыл бұрын

    enlightening

  • @KodeKloud

    @KodeKloud

    3 жыл бұрын

    Thanks!

  • @solracthegreat1002
    @solracthegreat10022 жыл бұрын

    Many thanks for the great explanation, is it the same to link a Veth to a container than to a name space? Can you explain it using LXD please?

  • @gulyasbendeguz2033
    @gulyasbendeguz20334 жыл бұрын

    Hey! May I ask what kind of program are you using for creating these videos? I want to learn the trick to use the terminal command and its output display within my presentations! Thanks in advance!

  • @Dipinthomas2003
    @Dipinthomas20035 жыл бұрын

    Hello Mumshad, Awesome video as always, thank you. Please let us know in few words how is network namespace different from using CNI like calico with namespace.

  • @Dipinthomas2003

    @Dipinthomas2003

    5 жыл бұрын

    @@KodeKloud cool thank you for explanation.

  • @jen_peter
    @jen_peter2 жыл бұрын

    Hi, It's an amazing summary! I was wondering if this method can be used to run separate programs in the separate namespaces and when I communicate with an outside API, will the API see separate IP addresses as well or will se the same since it's coming from the same Bridge and host? Thanks!

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    If you create a new network namespace and run a process in it, the process will have its own network stack and IP address. If you use a network namespace with a shared network stack, then the namespace and the host will share the same network stack and IP address.

  • @diskmandata4
    @diskmandata43 жыл бұрын

    In order to ping host itself one might need to bring loopback iface UP. Also to ping link host specify netmask /24 explicitly when you add your IP address, otherwise you might get "Network is unreachable" error.

  • @StanislavBashkirtsev

    @StanislavBashkirtsev

    3 жыл бұрын

    And if you already have this error and want to delete the incorrect IP address: ip -n red addr del 192.168.15.1/32 dev veth-red

  • @AimAmit

    @AimAmit

    2 жыл бұрын

    you are life saver man. Thanks

  • @sir_enuf

    @sir_enuf

    Жыл бұрын

    Thank you this fixed it for me :D To be more exact, first, as Stani said, delete the address you added to the interface: ip -n red addr del 192.168.15.1/32 dev veth-red Then, rerun the command that was featured in the tutorial except that you explicitly add the /24 at the end of the IP: ip -n red addr add 192.168.15.1/24 dev veth-red

  • @evolagenda
    @evolagenda2 жыл бұрын

    After ensuring the prefix was ip/netmask I also had to add an ip in the same range as the namespaces to the vswitch or "bridge" which was confusing since nothing is being routed. sudo ip addr add / dev You can also set this to n.n.n.0/

  • @yxs8495
    @yxs84954 жыл бұрын

    Like @Honey Bee below I had to add full CIDR address. Also make sure all network interfaces are up e.g. sudo ip link set veth-blue-br up etc. This is not shown in the video

  • @whykoks
    @whykoks5 жыл бұрын

    it worked only when i manually added routes in both namespaces. not sure why.

  • @coolcatson3
    @coolcatson33 жыл бұрын

    I needed to add /24 to the end of the ip's for this to work. ip -n red addr add 192.168.15.2/24 dev veth-red ip -n blue addr add 192.168.15.3/24 dev veth-blue