4.14 커널을 실행하는 ls1021(ARMv7 프로세서 버전 5)에서 gianfar 네트워크 드라이버에 대한 일부 폭풍 방지 매개 변수를 볼 수 있습니다.
/sys/devices/platform/soc/soc:ethernet@2d90000/net/eth0/stormprot_count
/sys/devices/platform/soc/soc:ethernet@2d90000/net/eth0/stormprot_events
/sys/devices/platform/soc/soc:ethernet@2d90000/net/eth0/stormprot_current
/sys/devices/platform/soc/soc:ethernet@2d90000/net/eth0/stormprot_window
/sys/devices/platform/soc/soc:ethernet@2d90000/net/eth0/stormprot_delay
어떻게 작동하고 어떻게 활성화하나요?
답변1
FRAMEREJ_COUNT=60
FRAMEREJ_WINDOW=10
FRAMEREJ_DELAY=500
echo $FRAMEREJ_COUNT > /sys/class/net/eth1/stormprot_count
echo $FRAMEREJ_WINDOW > /sys/class/net/eth1/stormprot_window
echo $FRAMEREJ_DELAY > /sys/class/net/eth1/stormprot_delay
그런 다음 커널은 재부팅하는 대신 네트워크 폭풍이 발생하는 경우 이를 기록합니다.
2020-07-30T13:39:15.255130+0200 kernel: kern.warn: net_ratelimit: 2540 callbacks suppressed
2020-07-30T13:39:15.255190+0200 kernel: kern.warn: br0: received packet on eth1 with own address as source address (addr:00:26:77:01:ea:7e, vlan:0)
2020-07-30T13:39:15.255199+0200 kernel: kern.warn: br0: received packet on eth1 with own address as source address (addr:00:26:77:01:ea:7e, vlan:0)