How To Setup MacVLAN in Portainer

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 92

  • @DBTechYT
    @DBTechYT  3 ปีที่แล้ว +14

    CORRECTION VIDEO:
    th-cam.com/video/4741-YR31fM/w-d-xo.html
    I messed a couple of things up in this video and was lucky enough to be contacted by Neil Cresswell, the co-founder of Portainer, who corrected a couple of the issues in my video.
    Thanks to Neil for that! I hope this video helps clear up some of the confusion I'm sure I caused.

    • @tranhoangtu6193
      @tranhoangtu6193 3 ปีที่แล้ว

      nice video, but i have a problem with network docker, i can not add 2 container on macvlan.
      And i have static IP but can not public with cloudflare
      Please help :(

  • @squalazzo
    @squalazzo 3 ปีที่แล้ว +12

    instead of ifconfig and route commands, you could use "ip a" and "ip r" commands, which should be already in containers

  • @xfabiosoft
    @xfabiosoft 3 ปีที่แล้ว +4

    I followed your amazing guide (with correction too) and i finally understood how use macvlans... i can ping the new container 192.168.1.2 from my lan... but from the host computer i cannot reach the container. Do you know why? and how can i fix it?

  • @matijasemenic3543
    @matijasemenic3543 3 ปีที่แล้ว +4

    IP prefix doesn`t only change the number of computers, It defines network (IP+Subnet= network). Network IP, first and last host IP, broadcast IP.

  • @thecanoffspring
    @thecanoffspring 3 ปีที่แล้ว +4

    So I've followed this video to a tee (including the details in the correction video). I'm able to create the network, attach it to the container (Plex in my case). I'm able to locally access the container (Plex interface opens up with no issues). However, the container has no access to the internet. If I open up the console from Portainer and do "apt update" I have no access to the internet.

    • @gavin_z28
      @gavin_z28 ปีที่แล้ว

      I have the same thing, anyone figured this out?

  • @chrisfoobar9367
    @chrisfoobar9367 2 ปีที่แล้ว +1

    I still dont understand the need of 2 network config entries? I just use one, created via docker-compose and everything runs perfectly well

    • @Duesi2024
      @Duesi2024 ปีที่แล้ว

      I have ipv6 and DS-lite implemented in the router and for me it is inevitably more complicated

  • @tranhoangtu6193
    @tranhoangtu6193 3 ปีที่แล้ว +1

    nice video, but i have a problem with network docker, i can not add 2 container on macvlan.
    And i have static IP but can not public with cloudflare
    Please help :(

  • @majorgear1021
    @majorgear1021 ปีที่แล้ว

    I am getting mixed information about the macvlan containers and DHCP. Some say I can assign IP's to them from my home network's DHCP server, and some say that only the docker service can assign them. Do you know which it is?
    My UDM Pro router does DHCP and custom DNS for my home network , but it can only reserve IP's if it can see the MAC address , and o/c the container has to broadcast a DHCP request and receive the response for this to work.
    I currently have each application( around 20 apps ) in it's on proxmox LXC container. But I'd like to containerize them and also consolidate them to 1-2 docker hosts to reduce the number of systems that I need to manage.

  • @AinzOoalG0wn
    @AinzOoalG0wn ปีที่แล้ว

    i'm confused about something. so i followed your guide did all that, so managed to get a static ip for unifi controller.
    But now i also need to setup another static ip on the same subnet e.g. 192.168.0.0/24 with a static ip of 192.168.0.243
    So how do i do that with this already setup for use by the other docker app? any tips?

  • @cee1699
    @cee1699 2 ปีที่แล้ว +1

    Just create the macvlan network on the docker host itself where portainer is running on, it will show up in portainer as an external network. Another upside, static IPs will just work too.

  • @junkmail6992
    @junkmail6992 6 หลายเดือนก่อน

    I’ve been troubleshooting this for eons and it still doesn’t work. Very frustrating

  • @PeterBatah
    @PeterBatah 9 หลายเดือนก่อน

    Regardless of how many times I delete and redo. I simply cannot install net-tools or ifconfig for example once I have duplicated/edit the original container. I followed your intructions to the letter. I don't know if it has anything to do with the fact that I am running my docker vm in VMWare ESXi. Oh well, back to the drawing board. Thanks for sharing anyway. Always appreciated.

    • @PeterBatah
      @PeterBatah 9 หลายเดือนก่อน

      For anyone having similar issues I discovered that Allowing promiscuous mode in VMWare ESXi / VM Network resolved my issue.

  • @vulcan4d
    @vulcan4d 2 ปีที่แล้ว

    Portainer is so weird when setting up macvlan. Why do you need to create two networks for one.

  • @randrewright9063
    @randrewright9063 ปีที่แล้ว

    "ip a" worked without installing any additional packages. The video was still very helpful in creating the mac-vlan. Thank you very much for sharing.

  • @DanielSRosehill
    @DanielSRosehill 5 หลายเดือนก่อน

    Thank you so much for posting this. Step 2 is where I slipped up also. Good be a lot better documented, to be honest (although I'm becoming a huge Portainer fan). Looking forward to more vids!

  • @alexanderkirchnerat
    @alexanderkirchnerat 2 ปีที่แล้ว +1

    Thank you very much! I learned a lot.

  • @Epic-F
    @Epic-F ปีที่แล้ว +1

    Bro, I have been searching for this for days. Wonderfull guide. Also love the way how you involve us in to your thinking process and the errors you make! Keep at it.

    • @DBTechYT
      @DBTechYT  ปีที่แล้ว

      Awesome, thank you!

  • @ComsicQuestGG
    @ComsicQuestGG ปีที่แล้ว

    I hear you on the router apps, but they are useful for troubleshooting. I have had to use the app to either pull an IP/MAC for a device or bounce the router when I'm softlocked out. I just wish they didn't jam it down our throats.

  • @marcg1043
    @marcg1043 3 ปีที่แล้ว +1

    Totally awesome! Tanks for this video. Very helpful. Finally we can get rid of all the 100s of port forwards that were so confusing...

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Great to hear!

  • @crixster
    @crixster 3 ปีที่แล้ว +1

    Thank you! Finally a solution to my headaches of containers clashing over the same port, especially pihole

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Glad it helped!

  • @NameWurdeVon_ChatGPT_generiert
    @NameWurdeVon_ChatGPT_generiert ปีที่แล้ว

    Great explained. Had no problems to follow you and set up a MacVLAN in Portainer. But how to set up multiple MacVLAN on a single host. I always end up with error message: "Pool overlaps with other one on this address space"

  • @sd3873
    @sd3873 3 หลายเดือนก่อน

    BEST VIDEO!!!! Thanks mate!!!!!!!

  • @myozone
    @myozone 2 ปีที่แล้ว

    Hello, Is it possible to have proper VLAN's within Docker ?

  • @KevinMarchese
    @KevinMarchese 2 ปีที่แล้ว

    I basically need to do the exact opposite of this with Mullvad but very awesome you can do this! Thank you!

  • @jamiemcparland
    @jamiemcparland 6 หลายเดือนก่อน

    Super helpful. Thanks!

  • @mikerufty1307
    @mikerufty1307 ปีที่แล้ว

    Saved my bacon! The double create I just was not understanding. Thanks

  • @dddvl3004
    @dddvl3004 3 ปีที่แล้ว

    I think you might have some troubles within your network, because as far as I can see, on my phone the video is a bit tiny, you addressed a network inside macvlan, that is in your home router addressing range, without redefining this one. So as consequence your router has addressed pi hole in its range not the one you defined. Witch by the way might be wrong... Macvlan has been bridged by your router... Reliability is not warranted.

  • @d_fens
    @d_fens 3 ปีที่แล้ว

    If I understand correctly, I have to deploy pihole again after IP change. Does it mean it needs to be re-configured again? I added some custom block lists to my pihole...
    Thanks for all your videos :)

  • @Markuwan
    @Markuwan ปีที่แล้ว

    Thanks you really saved my with my deployment of pi as DHCP router. After 5+ of trial and error your simple explanation rescued me

  • @briandortch4610
    @briandortch4610 9 หลายเดือนก่อน

    while these looks easy, I somehow fudged it up.

    • @DBTechYT
      @DBTechYT  9 หลายเดือนก่อน

      MacVLAN is tough. I immediately had to make a correction video (linked in the description) because the CEO of Portainer reached out and corrected me

  • @RicardoLuizSousadaSilva
    @RicardoLuizSousadaSilva 3 ปีที่แล้ว

    My isp blocks my ports 80 and 443. I'm experiencing a lot of issues with the nginx proxy manager and Nextcloud. If I do this, can I forward these ports on my router easily?

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      You're still going to have to forward ports 80 and 443. Maybe call your ISP and see if they will unblock those ports for you?

  • @potopotorex
    @potopotorex 3 ปีที่แล้ว

    I've read that macvlan is limited to ethernet, can you make a video about IPvlan which seems to have not that limitation?

  • @node547
    @node547 ปีที่แล้ว

    Thank you.

  • @HaimPeretz
    @HaimPeretz 3 ปีที่แล้ว

    So basically it's create a new subneting with random mac address.. nice

  • @AinzOoalG0wn
    @AinzOoalG0wn ปีที่แล้ว

    ty for your video. it helped me figure out how to set static ip for portainer dockers.

  • @ansred
    @ansred 3 ปีที่แล้ว

    Good video, btw, I use Synology as Docker Host,
    ERROR:
    and I got an error ""ERROR: for Cannot start service : failed to create the macvlan port: device or resource busy""
    CAUSE:
    caused by Issue with Synology vSwitch and Docker macvlan driver.
    FIX:
    Just had the same problem and solved by creating the network on "ovs_eth0" instead of "eth0", now VMM and macvlan both work. I hope this helps.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว +1

      Glad you got it sorted. Thanks for the detailed explanation!

  • @dotcaodin
    @dotcaodin 3 ปีที่แล้ว

    You have been helping me a lot with your videos. Could share with an installation like Nginx Proxy Manager, Caddy, Traefik, Let's Encrypt that we can migrate all of the internal websites from HTTP to HTTPS with self-signed ou certbot?
    Thank you.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      There is literally no need for you to access your internal sites on https.

  • @BrentHawkins
    @BrentHawkins ปีที่แล้ว

    Dude. I spent 5 freaking hours banging my head on this. Thanks for making sure it wasn’t 10. Cheers

    • @DBTechYT
      @DBTechYT  ปีที่แล้ว

      Glad it helped!

  • @markc7933
    @markc7933 3 ปีที่แล้ว

    I have been trying to figure this out since your calibre video. thank you so much

  • @marekkordas740
    @marekkordas740 3 ปีที่แล้ว

    First of all,thank You for your Videos.ow my question. Does it mean we now have to reconfigure proxy to be able to access apps from internet?

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว +1

      It just means you'll have to point your proxy to the ip address for your container. Nothing special or different with this setup.

  • @sohailmeer6087
    @sohailmeer6087 3 ปีที่แล้ว

    I can't believe i have not seen this video ..... the information you gave in the video just went inside my brain and stored thank you very much for.. ... really appreciated!

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Glad it was helpful!

  • @zaonpt
    @zaonpt 3 ปีที่แล้ว

    I love your videos. The most entertaining parts are the "Ups"

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว +1

      Glad you enjoy it!

  • @TriangleTodd
    @TriangleTodd 3 ปีที่แล้ว

    ip addr

  • @umarjamil8512
    @umarjamil8512 3 ปีที่แล้ว

    Good Video. I can not ping the host machine from docker or vice versa. But able to ping form other devices .i have done research on internet but its very confusing.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว +1

      I just talked to the CEO of portainer and he's set me straight on a couple of things that I'm going to release a correction on soon.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Be sure to check out the correction video I posted in the pinned comment and in the description for a bit of clarification on some stuff I messed up explaining: th-cam.com/video/4741-YR31fM/w-d-xo.html

  • @brianseattle
    @brianseattle 3 ปีที่แล้ว

    Your home network videos are always on point. Great video. I was setting up MacVlan and was having difficulty, thanks for the assistance.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      No problem 👍

  • @BYAZIT
    @BYAZIT 3 ปีที่แล้ว

    i want each container get dynamic real IP.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      They do get ip addressed attached to your router that you can use to access the container

  • @danielmchugh9011
    @danielmchugh9011 3 ปีที่แล้ว

    Thanks for this great series and thanks for the correction

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      I always try to make a correction addendum video when I find out I made a mistake. :)

  • @OpiumZA
    @OpiumZA 3 ปีที่แล้ว

    Mate you saved me here. Thank you

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว +1

      Glad to hear it

  • @ronald0122
    @ronald0122 3 ปีที่แล้ว

    Thanks for sharing. I just figured this out yesterday. Because i am running ESXI i needed to enable promiscuous mode on my ESXI environment too.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Excellent!

    • @ronald0122
      @ronald0122 3 ปีที่แล้ว

      @@DBTechYT the only problem is i have a adguard docker but i cant ping that from the host. Anyway to solve this because now i can't set the dns server on the host.

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      So I ran into that same issue and messed with it a bit. I got it to work by changing the IP range in the MacVLANConf network setup to something else. Didn't change anything else other than the starting IP. I had 192.168.68.2/28 (or something close) and I changed it to 192.168.68.50/28 and then I was able to use PiHole's DNS, so I'm thinking the same might be true for you. At least worth a try

    • @ronald0122
      @ronald0122 3 ปีที่แล้ว

      @@DBTechYT in my macvlan config i use /32 (1 specific ip). I already tried multiple ranges but cant fix it. Maybe i should just put adguard on a different server

  • @GK-cl1kw
    @GK-cl1kw 2 ปีที่แล้ว

    Great video really helped me

    • @DBTechYT
      @DBTechYT  2 ปีที่แล้ว

      Glad it helped

  • @peterfortyseven8549
    @peterfortyseven8549 3 ปีที่แล้ว

    I don't like this way, I always attached the vlan to the container and give them there below a fixed IP address. the other steps seems fine :)

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      What VLAN are you connecting them to in Portainer?

    • @peterfortyseven8549
      @peterfortyseven8549 3 ปีที่แล้ว

      @@DBTechYT So when you edit the container, go to the tab page network. here you select the macvlan from the drop down menu. in the same window you can also enter a static IPv4 address. this is easier for me :)

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Okay. I see that now. What do you set your "Network" dropdown to? Bridge? Host?

    • @peterfortyseven8549
      @peterfortyseven8549 3 ปีที่แล้ว

      @@DBTechYT the macvlan, just like you created. but giving them a free static IP from the config itself. I have also watch the second video. very good that you just acknowledge it improved it. that is what most people will never do.

  • @internet7954
    @internet7954 3 ปีที่แล้ว

    What do i do if my chromebook is refusing to execute my crouton file

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      I'm not answering this. How lazy are you that you can't comment on the appropriate video?

    • @internet7954
      @internet7954 3 ปีที่แล้ว

      @@DBTechYT wanna play minecraft bedrock with me on discord call?

    • @internet7954
      @internet7954 3 ปีที่แล้ว

      @@DBTechYT atleast make a update video cause they changed how to get ubuntu and stuff

  • @tenminutetokyo2643
    @tenminutetokyo2643 3 ปีที่แล้ว

    DOOD!

  • @jorgegomez374
    @jorgegomez374 3 ปีที่แล้ว

    Great has always

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว +1

      Thank you! Be sure to check out the correction video I posted in the pinned comment and in the description for a bit of clarification on some stuff I messed up explaining.

  • @ronm6585
    @ronm6585 3 ปีที่แล้ว

    Thanks. 👍

    • @DBTechYT
      @DBTechYT  3 ปีที่แล้ว

      Thank you too! Be sure to check out the correction video I posted in the pinned comment and in the description for a bit of clarification on some stuff I messed up explaining.