From b4d2c8462220e7038adffc0a151767ef8da07c5d Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Thu, 24 Jan 2019 17:39:48 +0100 Subject: [PATCH] init-ifupdown: ccimx6ulsbcpro: Add interfaces file The ConnectCore 6UL SBC Pro has two wired ethernet interfaces. This commit adds an interfaces file with both eth0 and eth1 interfaces. Note that the ethernet interface that is enabled in U-Boot is the eth1 interface in the Linux kernel. Signed-off-by: Alex Gonzalez --- .../init-ifupdown/ccimx6ulsbcpro/interfaces | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces diff --git a/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces b/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces new file mode 100644 index 0000000..abb8dce --- /dev/null +++ b/recipes-core/init-ifupdown/init-ifupdown/ccimx6ulsbcpro/interfaces @@ -0,0 +1,18 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wired interfaces +auto eth1 +iface eth0 inet dhcp +iface eth1 inet dhcp + +# Ethernet/RNDIS gadget (g_ether) +# ... or on host side, usbnet and random hwaddr +iface usb0 inet static + address 192.168.7.2 + netmask 255.255.255.0 + network 192.168.7.0 + gateway 192.168.7.1