配置以太网

TB-96AIoT开发板底板的LAN2口是TB-96AIoT使用的。

_images/lan2-port.png

1. 配置以太网自动获取IP地址;

sudo toybrick-set.py func none
sudo toybrick-set.py network ethernet dhcp
sudo reboot

2. 配置以太网静态IP; 举例配置静态ip为192.168.179.8,默认网关为192.168.179.1

sudo toybrick-set.py func none
sudo toybrick-set.py network ethernet static addr 192.168.179.8/24 gateway 192.168.179.1 dns 180.76.76.76,8.8.8.8
sudo reboot

这种配置下,可以使用类似计算棒的主动模式