我正在尝试通过Galileo以太网端口将Intel Galileo board连接到Mac,该端口连接到Mac上的Thunderbolt以太网端口。我上传了一个Arduino草图来启动LAN连接:
#include <SPI.h>
#include <Ethernet.h>
// the media access control (ethernet hardware) address for the Galileo:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
//the IP address for the Galileo:
byte ip[] = { 192, 168, 0, 2 };
void setup()
{
Serial.begin(9600);
Serial.println("Attempting to start Ethernet");
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
Serial.println("Attempting to configure Ethernet using Static IP");
Ethernet.begin(mac, ip);
}
Serial.print("Your IP address: ");
Serial.println(Ethernet.localIP());
}
void loop () {}
在我的网络设置中,我是否将我的thunderbolt以太网作为DHCP?或手动输入IP地址?我的伽利略的IP地址是什么,以便我可以ssh到它?