Symptom: Connecting the EDGE-RK3576 device brings down the entire network.
Environment:
- Fixed IP
- Device reboots at 2 AM every day
- 4 machines in total
- 100M network
- More than 300 machines out there; the number of affected stores is pending statistics
Solution 1: Disable EEE
1. Prerequisites
1. Install the ethtool utility
sudo apt install ethtool
2. Operation 1: Temporarily disable EEE on both Ethernet ports (takes effect immediately)
sudo ethtool --set-eee end0 eee off
sudo ethtool --set-eee end1 eee off
Expected output: EEE status: disabled
3. Operation 2: Configure auto-disable EEE on boot (persists after power loss)
1. Create a script that runs automatically when the NIC comes up
cat > /etc/network/if-up.d/disable_all_eee <<'EOF'
#!/bin/sh
if [ "$IFACE" = "end0" ] || [ "$IFACE" = "end1" ]; then
sleep 0.2
ethtool --set-eee $IFACE eee off
fi
EOF
2. Add execute permission
sudo chmod +x /etc/network/if-up.d/disable_all_eee
4. Operation 3: Rate-limit Ethernet broadcast packets to stop storm propagation
1. Create a broadcast rate-limiting boot script
cat > /etc/network/if-up.d/limit_broadcast <<'EOF'
#!/bin/sh
if [ "$IFACE" = "end0" ] || [ "$IFACE" = "end1" ]; then
tc qdisc del dev $IFACE ingress 2>/dev/null
tc qdisc add dev $IFACE handle ffff: ingress
tc filter add dev $IFACE parent ffff: protocol all u32 \
match ether dst ff:ff:ff:ff:ff:ff \
action police rate 1mbit burst 10k conform-exceed drop
fi
EOF
2. Add execute permission
sudo chmod +x /etc/network/if-up.d/limit_broadcast