ina260-beaglebone-performance/scripts/network_beaglebone.sh
2025-04-01 17:56:32 +02:00

13 lines
257 B
Bash

#!/usr/bin/env bash
# Config
NAMESERVER="162.19.75.102"
# Setup
ifconfig eth0 down
ifconfig usb1 down
ifconfig usb0 10.0.0.2/24
iptables -F
ip route del default
ip route add default via 10.0.0.1 dev usb0
echo "nameserver ${NAMESERVER}" > /etc/resolv.conf