OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: bcookatpcsd on December 14, 2023, 06:52:05 PM

Title: anyway to custom ifconfig an interface?
Post by: bcookatpcsd on December 14, 2023, 06:52:05 PM
Looking for a way to:

ifconfig igc1 -rxcsum -txcsum -lro -tso -vlanhwtso

and see if it has an impact on my issue..

It seems I can run it, but then there is an 'configuration' process which puts things back..

Quote
root@OPNsense:~ # ifconfig igc1 -rxcsum -rxcsum6 -txcsum -txcsum6 -lro -tso -vlanhwtso
root@OPNsense:~ # ifconfig igc1
igc1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: (wan)
        options=4802028<VLAN_MTU,JUMBO_MTU,WOL_MAGIC,NOMAP>
        ether 64:62:66:22:01:b0
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

root@OPNsense:~ # ifconfig igc1
igc1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: (wan)
        options=4e0272b<RXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU,TSO4,TSO6,LRO,WOL_MAGIC,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
        ether 64:62:66:22:01:b0
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


root@OPNsense:~ # /usr/bin/netstat -i -b -n -I igc1
Name    Mtu Network       Address              Ipkts Ierrs Idrop     Ibytes    Opkts Oerrs     Obytes  Coll
igc1   1500 <Link#2>      64:62:66:22:01:b0 283335936   394     0 322961629169 237261049     0 39791670076     0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265714

I'm trying to figure out why when these hit their 500Mb mark.. I get errors and lose connectivity..

Thanks in advance.
Title: Re: anyway to custom ifconfig an interface?
Post by: zan on December 15, 2023, 01:59:56 AM
You can turn off hardware offloads from the GUI to make it stick.
Go to your igc1 interface and enable the "Overwrite global settings" in Hardware settings section.
You can also do it for all interfaces through Interfaces->Settings.