Hello I have a BPI R2 and I use 4.14.80-bpi-r2-main kernel. I want to give the same static IP lan0,lan1,lan2,lan3 ports. I configured /etc/networking/interfaces like this but it did not work. How can I do it?
# interfaces(5) file used by ifup(8) and ifdown(8) Include files from
#/etc/network/interfaces.d: cpu-ports (eth0+1) bring up without any
#ip-configuration
auto eth0
iface eth0 inet manual #static
pre-up ip link set $IFACE up
# address 192.168.10.99
# netmask 255.255.255.0
post-down ip link set $IFACE down
#2nd gmac (cpu-port) only in 4.14.53+
auto eth1
iface eth1 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
#wan-port as dhcp-client
auto wan
allow-hotplug wan
iface wan inet dhcp
hwaddress ether 08:15:25:00:00:01 # if you want to set MAC manually
#lan0 has fixed address
auto lan0
iface lan0 inet static
hwaddress ether 08:15:25:00:00:00 # if you want to set MAC manually
address 192.168.10.110
netmask 255.255.255.0
gateway 192.168.10.0
# dns-nameservers 8.8.8.8
pre-up ip link set $IFACE address 02:01:02:03:04:00 up
# pre-up ip link set $IFACE up
post-down ip link set $IFACE down
#lan0 has fixed address
auto lan1
iface lan1 inet static
hwaddress ether 08:15:25:00:00:10 # if you want to set MAC manually
address 192.168.10.110
netmask 255.255.255.0
gateway 192.168.10.0
# dns-nameservers 8.8.8.8
pre-up ip link set $IFACE address 02:01:02:03:04:10 up
# pre-up ip link set $IFACE up
post-down ip link set $IFACE down
source-directory /etc/network/interfaces.d
Best regards