Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Impossible to reach gateway using VLAN

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    4 Posts 2 Posters 449 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dave07186D
      Dave07186
      last edited by

      Hello,
      I am running pfSense and different OS on Virtualbox with Host-Only card with theses parameters:

      IPv4 address: 192.168.56.1
      IPv4 mask: 255.255.0.0
      

      My LAN interface is 192.168.1.1/24. I can connect different OS.
      I would like now to create a VLAN and migrate my Windows 7 OS to this VLAN.

      I created the VLAN with the parameters:

      Parent Interface: LAN 
      VLAN Tag: 10
      VLN Priority: 0
      Name: VLAN1
      

      I created the interface for this VLAN:

      IPv4 Configuration Type: Static IPv4
      IPv4 address: 192.168.10.1/24
      

      I want to connect a Windows 7 computer to this VLAN. I set the following IP:

      IP address: 192.168.10.10
      Mask: 255.255.255.0
      Gateway: 192.168.10.1
      Locally Administrated Address: 10 (to match with VLAN Tag).
      

      I can't ping or reach my pfSense web interface. What I am not correctly configuring?
      Should I define a second network card to configure the VLAN?
      Thanks for your help.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Dave07186
        last edited by johnpoz

        @Dave07186 you understand that your 192.168.56.1/16 (255.255.0.0) overlaps with the 192.168.10.1/24 address right.. You can't do that..

        Locally Administrated Address: 10 (to match with VLAN Tag).

        That is not a vlan tag. If you want to actually set a tag, that would be this on your driver

        vlan.jpg

        If your setting locally admin address - that is your mac address.. So yeah setting that to 10 would bork it up so it couldn't talk to anything.

        It would be a very special needs sort of setup where you would actually set a tag on a windows interface - normally end user devices are just in a vlan, that they really don't know anything about - this would be untagged.

        If you want to put them in a specific vlan, you would set that up on your switching infrastructure or your VM networking infrastructure - the end device be it physical or virtual would really have no need to actually set tags on its network traffic.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        Dave07186D 1 Reply Last reply Reply Quote 1
        • Dave07186D
          Dave07186 @johnpoz
          last edited by

          @johnpoz I don't seem to have the option in Virtualbox. It appears that it's not supported with the default network card driver. I won't be using VLAN, so the issue is resolved. Thank you for your assistance.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @Dave07186
            last edited by

            @Dave07186 if you want to use vlans in your VM setup, you wouldn't actually set the tag on the virtual interface - you would set it up in the virtual switch or port group on the vswitch etc. I have not played with virtualbox in a really long time, but end devices almost never have need for actually doing the tag themselves.

            I have to assume virtual box has a way to allow VMs to be on a vlan..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.