Tool/software: Linux
My board is AM5728 EVM and kernel version is 4.9.105-ti-rt-r113.
am57xx-cl-som-am57x.dts has dual_emac mode. ( mac, cpsw_emac0, cpsw_emac1)
I want to give each of static IP to them.
I was edit /etc/network/interfaces file like below.
auto eth0
iface eth0 inet static
address 192.168.0.94
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
auto eth1
iface eth1 inet static
address 192.168.0.97
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
I was referenced "https://e2e.ti.com/support/arm/automotive_processors/f/1020/p/556130/2035119"
When the board boots, the error log came out as below.
[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: failed (Result: exit-code) since Thu 2016-02-11 16:28:01 UTC; 2 years
Docs: man:interfaces(5)
Process: 272 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1
Process: 264 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [
Main PID: 272 (code=exited, status=1/FAILURE)
Feb 11 16:28:01 arm systemd[1]: Starting Raise network interfaces...
Feb 11 16:28:01 arm sh[264]: /etc/network/interfaces:4: misplaced option
Feb 11 16:28:01 arm sh[264]: ifquery: couldn't read interfaces file "/etc/networ
Feb 11 16:28:01 arm ifup[272]: /etc/network/interfaces:4: misplaced option
Feb 11 16:28:01 arm ifup[272]: /sbin/ifup: couldn't read interfaces file "/etc/n
Feb 11 16:28:01 arm systemd[1]: networking.service: Main process exited, code=ex
Feb 11 16:28:01 arm systemd[1]: Failed to start Raise network interfaces.
Feb 11 16:28:01 arm systemd[1]: networking.service: Unit entered failed state.
Feb 11 16:28:01 arm systemd[1]: networking.service: Failed with result 'exit-code
My Question.
1. How do i give each of static IP to them?
2. How do I do that Lan automatically get a static IP when Lan reattach physically?