Forums

Resolved
0 votes
Some ISP's require a VLAN on the External interface on ClearOS configured in gateway mode to connect. Any idea on how to make this work?

On my setup I have marked one of the NIC's as external, DHCP. Plugged this in to the ONT Fibre port. I then created a VLAN on the same NIC, VLAN ID 10. I don't get a connection. Is it more complicated than I am attempting?

Thanks in advance.
Monday, June 14 2021, 03:44 AM
Share this post:
Responses (8)
  • Accepted Answer

    Monday, June 14 2021, 08:50 AM - #Permalink
    Resolved
    0 votes
    I've tried mocking this up on my network with mixed results. I have an external interface enp2s0f0 so VLAN 10 would be enp2s0f0.10. If I set:
    enp2s0f0 - external, DHCP
    enp2s0f0.10 - external, DHCP
    Then it fails.

    If I set:
    enp2s0f0 - external, Static
    enp2s0f0.10 - external, DHCP
    Then it works.

    Similarly setting enp2s0f0 to LAN, DHCP fails, so it seems that the secret is to set the underlying interface to static. I would also suggest trying to set it to LAN otherwise it may be an idea to install the MultiWAN app as well as ClearOS may treat you as having 2 external interfaces.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 14 2021, 09:35 AM - #Permalink
    Resolved
    0 votes
    Thanks Nick. I’ve been trying different configurations too, no success. What static IP did you use set enp2s0f0 to, and how was it related to any other IP ranges? I guess what I’m trying to figure is did you use the one assigned by the ISP, and what would happen if that changed?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 14 2021, 10:35 AM - #Permalink
    Resolved
    0 votes
    This was only a mock up with a ClearOS server on my LAN connecting to a ClearOS gateway. The ClearOS LAN server gets 172.17.2.5 on enp2s0f0 by DHCP. I set up a VLAN on my gateway on the 10.20.30.1/24 subnet. enp2s0f0.10 managed to pull an IP from 10.20.30.1 when I set enp2s0f0 to static 172.17.2.5, when it was both LAN and External.

    Do you need DHCP on the underlying interface as well?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 15 2021, 11:01 AM - #Permalink
    Resolved
    0 votes
    On a standard router connected to the ONT, the WAN connection is DHCP, but only connects if you can define a VLAN. I’ve had trouble using older routers as their interfaces don’t allow you to create a VLAN on the WAN interface. In your example then, enp2s0f0 is defined as EXTERNAL, DHCP. It gets whichever current IP the ISP dishes out. What I need to do is add a VLAN to enp2s0f0 to get enp2s0f0.10 as my ISP wants a VLAN tag of 10. The issue though is that the ISP could change the IP over time, so if I set enp2s0f0 to whichever static the ISP dished out and it changes, everything would stop working. So both enp2s0f0 and enp2s0f0.10 need to be DHCP.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 15 2021, 11:08 AM - #Permalink
    Resolved
    0 votes
    Note from the ISP modem setup guidelines:
    “If you are connecting to Fibre, your modem must support WAN VLAN tagging with IPoE”
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 15 2021, 11:08 AM - #Permalink
    Resolved
    0 votes
    Then I am afraid I don't know how to do it or how to troubleshoot. I suspect the culprit is a program called syswatch (which is a ClearOS program) which is written in perl. I have no idea how to debug it and have no experience of perl. I do note there is a flag in /etc/syswatch which enables a debug mode but I have never tried it.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 15 2021, 11:11 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Then I am afraid I don't know how to do it or how to troubleshoot. I suspect the culprit is a program called syswatch (which is a ClearOS program) which is written in perl. I have no idea how to debug it and have no experience of perl. I do note there is a flag in /etc/syswatch which enables a debug mode but I have never tried it.


    Would that then mean ClearOS can’t work in this scenario? So it can’t operate as a gateway when the WAN needs to have a VLAN tag?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 15 2021, 11:16 AM - #Permalink
    Resolved
    0 votes
    It looks like it for the moment, I am afraid.
    The reply is currently minimized Show
Your Reply