需要设置三个IP地址:
分别是:开发板IP地址、电脑IP地址、虚拟机IP地址,三者需要设置在同一局域网下面
设置开发板IP地址:
在网络配置文件(/etc/network/interfaces)的后面添加:
auto eth0
iface eth0 inet static
address "192.168.137.4"
network "255.255.255.0"
gateway "192.168.137.1"
设置电脑IP地址:
设置虚拟机IP地址:
在网络配置文件(/etc/network/interfaces)的后面添加:
auto eth0
iface eth0 inet static
address "192.168.137.8"
network "255.255.255.0"
gateway "192.168.137.1"