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

    <shellcmd> in interfaces not working

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 406 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.
    • 4
      4o4rh
      last edited by 4o4rh

      if I run below from ssh cli, it works

      ifconfig igb2 -txcsum -rxcsum -tso4 -tso6 -lro -txcsum6 -rxcsum6 -vlanhwtso
      

      but for my 8 port i3, even though i have disabled all in the advanced menu,
      igb0 and igb2 show with them enabled.

      on a separate note, all interfaces get an ipv6 address, even though ip6 is disabled in the menu

      I added below, but does not seem to work

      <lan>
      <descr><![CDATA[INT_KG_SPARE]]></descr>
      <if>igb2</if>
      <enable></enable>
      <spoofmac></spoofmac>
      <ipaddr>192.168.x.x</ipaddr>
      <subnet>26</subnet>
      <gateway></gateway>
      <ipaddrv6></ipaddrv6>
      <subnetv6></subnetv6>
      <gatewayv6></gatewayv6>
      <shellcmd>ifconfig igb2 -txcsum -rxcsum -tso4 -tso6 -lro -txcsum6 -rxcsum6 -vlanhwtso</shellcmd>
      </lan>
      
      4 1 Reply Last reply Reply Quote 0
      • 4
        4o4rh @4o4rh
        last edited by

        @gwaitsi i solved the problem by installing the shellcmd package and install via the package. now have the desired results.

        i am still curious why each interface gets an ipv6 if it is meant to be disabled

        bmeeksB 1 Reply Last reply Reply Quote 0
        • bmeeksB
          bmeeks @4o4rh
          last edited by

          @gwaitsi said in <shellcmd> in interfaces not working:

          i am still curious why each interface gets an ipv6 if it is meant to be disabled

          Your interfaces will get IPv6 link-local addresses. Those are harmless.

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

            shellcmds don't go in the interfaces config like that. They would never get run there. They should be in the main <system> section, you will see the package has added them there.

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