RK3399 RK3568
/etc/network/interfaces
自动分配IP
auto eth0
iface eth0 inet dhcp
静态IP
auto eth0 iface eth0 inet static address 192.168.0.232 gateway 192.168.0.1 netmask 255.255.255.0
命令
设置IP 地址 ifconfig eth0 192.168.1.120 修改mac 地址 ifconfig eth0 hw ether 08:90:90:90:90:90 设置子网掩码 ifconfig eth0 netmask 255.255.255.0 设置广播地址 ifconfig eth0 broadcast 192.168.1.120 添加默认网关 route add default gw 192.168.1.1 删除默认网关 route del default gw 192.168.1.1
————————————————
版权声明:本文为CSDN博主「横山郡守」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/scottmvp/article/details/117294606