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

    Enable 802.1q VLAN mode via Shell Access

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    3 Posts 2 Posters 541 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.
    • T
      ThePieMonster
      last edited by ThePieMonster

      Hello,

      I am trying to enable this checkbox via Shell on the XG-7100 device (it was unchecked and as a result the device lost connection). What is the command for accomplishing this?

      alt text

      Thanks.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        If you just unchecked it it's probably easier to roll back the config from the console menu.

        You can set it temporarily using etherswitchcfg but that would not restore the default vlan and port config. You could also set that using etherswitchcfg but it gets complex.

        When you set or unset that in the webgui some default values are applied. There is no way to replicate that exactly from the cli.

        Steve

        1 Reply Last reply Reply Quote 0
        • T
          ThePieMonster
          last edited by ThePieMonster

          I ended up using option 15 to restore from a recent config as running etherswitchcfg vlan_mode DOTQ did change the cfg, but the device was still unaccessible so restoring was the only option.

          0) Logout (SSH only)                  9) pfTop
          1) Assign Interfaces                 10) Filter Logs
          2) Set interface(s) IP address       11) Restart webConfigurator
          3) Reset webConfigurator password    12) PHP shell + pfSense tools
          4) Reset to factory defaults         13) Update from console
          5) Reboot system                     14) Enable Secure Shell (sshd)
          6) Halt system                       15) Restore recent configuration
          7) Ping host                         16) Restart PHP-FPM
          8) Shell
          

          /Closed

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