VLAN and DHCP



  • Correct me if I'm wrong .. the moment we created a VLAN on any of the available interfaces, a new interface tab will appear in the DHCP Server page .. yes?


  • Rebel Alliance Developer Netgate

    You have to create the vlan, and then assign it, and then enable the newly assigned interface, and then it shows up. I think you also have to set a static IP on the interface before you can use DHCP there also.



  • @jimp:

    You have to create the vlan, and then assign it, and then enable the newly assigned interface, and then it shows up. I think you also have to set a static IP on the interface before you can use DHCP there also.

    jimp,

    thank you for the speedy reply … let say .. I already have an active interface already with a DHCP server applied .. can I still create a VLAN then assign it to that very interface and the new tab comes up?


  • Rebel Alliance Developer Netgate

    What are you trying to accomplish?

    A VLAN doesn't work on an interface in that way, when you make VLANs you typically don't use the parent interface, you only use VLAN tagged interfaces.

    The same thing I said before still applies there. If you make a vlan tag on an interface, and then assign that to a new interfaces, enable it, set an IP, and then you will get a DHCP tab for that interface.

    Your switches need to have VLAN support of course, and be set to tag the VLAN ID you're trying to work with also.



  • Ahh .. yes .. now I understand .. thing is I'm wanting to configure the VLAN with little downtime as the interface being used is currently active. So now I need to

    1. start with a clean interface
    2. configure a VLAN number then assign to that interface
    3. then configure the DHCP server for the vlan tab

    am I on the right track here jimp?

    @jimp:

    What are you trying to accomplish?

    A VLAN doesn't work on an interface in that way, when you make VLANs you typically don't use the parent interface, you only use VLAN tagged interfaces.

    The same thing I said before still applies there. If you make a vlan tag on an interface, and then assign that to a new interfaces, enable it, set an IP, and then you will get a DHCP tab for that interface.

    Your switches need to have VLAN support of course, and be set to tag the VLAN ID you're trying to work with also.


  • Rebel Alliance Developer Netgate

    You don't have to start with a clean interface, it's just not recommended to run with the parent interface assigned.

    Moving is as easy as setting up a vlan tag for whatever the default vlan is for that interface, setting the switch to tag for that vlan instead, and then reassigning LAN to the new vlan <x>interface.</x>



  • Understood … currently at home so the box is not with me .. will try it when I get back to the office .. thanx jimp :-)

    @jimp:

    You don't have to start with a clean interface, it's just not recommended to run with the parent interface assigned.

    Moving is as easy as setting up a vlan tag for whatever the default vlan is for that interface, setting the switch to tag for that vlan instead, and then reassigning LAN to the new vlan <x>interface.</x>


Log in to reply