Results 1 to 3 of 3

Thread: Problem with VLAN on ubuntu 22

  1. #1
    Join Date
    Jan 2024

    Problem with VLAN on ubuntu 22

    Hello Ubuntu masters,

    I have setup a VLAN ( in my home router, I want to have a separate LAN for a host and its virtual machines. Weird thing for all my VMs (ubuntu servers 20) I simply go in the /etc/netplan config file and just change my ip to a static one like this:

    version: 2
    dhcp4: no
    addresses: []
    addresses: [,]

    And they take that ip and can talk to each other via ssh without any problem in the VLAN, they can also reach the internet. The VMs are all with a bridged network adapter (setup in Vbox in the host).

    However, with the host itself I have problems doing that, when I change the ip to a static one in the same fashion I have my wifi connection that stops to work and has a question mark on it (the host is on Ubuntu 22 desktop)

    I'm not very good yet in networking... I asked chat gpt but he took me for a ride of configs for hours and it never worked.

    How can I make my host go on the VLAN and give it a static ip adsress inside that VLAN ?
    I've put this and it doesn't work:
    netmask (/24)

    What I don't understand is if I setup a static ip in the base network that is like this:
    netmask (/24)
    It works and I have my static IP

    I don't know if this has a link with tagged packets or routes, I've tried a lot of things but I can't get it to work...

    Thanks a lot! JF

  2. #2
    Join Date
    Mar 2010

    Re: Problem with VLAN on ubuntu 22

    You need to post using forum code tags, or nobody can help you. Edit the post above and fix that first. netplan YAML is indention space sensitive.
    Any text in a terminal or text config file needs to be wrapped in code tags.

    Https:// is how. It is easy, so if it is hard, you aren't doing it correctly.

    Also, you'll need to be specific about the exact version of Ubuntu being used. There were two releases in 2020 and 2022, so we need 4 digits.

  3. #3
    Join Date
    Mar 2024

    Re: Problem with VLAN on ubuntu 22

    Good idea! If you want exciting entertainment and a chance to win big, check out to******* Zodiac Casino. With a great lineup of games and an exciting gaming environment, Zodiac Casino offers an unrivaled gaming experience that is sure to keep you on edge.
    Last edited by jennafer; 4 Weeks Ago at 10:25 AM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts