Sorry for my bad english…
I have tried to add bridge interface with this config:
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto eth0
iface eth0 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
auto eth1
iface eth1 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
auto wan
allow-hotplug wan
iface wan inet dhcp
auto lan0
iface lan0 inet manual
auto lan1
iface lan1 inet manual
auto lan2
iface lan2 inet manual
auto lan3
iface lan3 inet manual
auto br0
iface br0 inet static
address 172.16.0.1
netmask 255.255.255.0
bridge_ports lan0 lan1 lan2 lan3
bridge_fd 5
bridge_stp no
bridge_maxwait 0
iface br0 inet6 static
address 2001:db8:1111::1
netmask 64
source-directory /etc/network/interfaces.d
But, when i have applied new config by:
systemctl restart networking
System has returned the error:
[ 1372.668063] br0: port 1(lan0) entered blocking state
[ 1372.673133] br0: port 1(lan0) entered disabled state
[ 1372.679620] device lan0 entered promiscuous mode
[ 1372.684342] device eth0 entered promiscuous mode
[ 1372.703936] br0: port 2(lan1) entered blocking state
[ 1372.708911] br0: port 2(lan1) entered disabled state
[ 1372.715157] device lan1 entered promiscuous mode
[ 1372.736150] br0: port 3(lan2) entered blocking state
[ 1372.741119] br0: port 3(lan2) entered disabled state
[ 1372.747341] device lan2 entered promiscuous mode
[ 1372.766559] br0: port 4(lan3) entered blocking state
[ 1372.771541] br0: port 4(lan3) entered disabled state
[ 1372.778568] device lan3 entered promiscuous mode
[ 1372.800248] IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
Job for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.
And error text from journalctl:
Feb 07 13:07:47 bpi-r2 sshd[5199]: Received SIGHUP; restarting.
Feb 07 13:07:47 bpi-r2 sshd[5199]: Server listening on 0.0.0.0 port 22.
Feb 07 13:07:47 bpi-r2 sshd[5199]: Server listening on :: port 22.
Feb 07 13:07:54 bpi-r2 ifup[5328]: Waiting for DAD... Timed out
Feb 07 13:07:54 bpi-r2 ifup[5328]: ifup: failed to bring up br0
Feb 07 13:07:54 bpi-r2 systemd[1]: networking.service: Main process exited, code
Feb 07 13:07:54 bpi-r2 systemd[1]: Failed to start Raise network interfaces.
-- Subject: Unit networking.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit networking.service has failed.
--
-- The result is failed.
Feb 07 13:07:54 bpi-r2 systemd[1]: networking.service: Unit entered failed state
Feb 07 13:07:54 bpi-r2 systemd[1]: networking.service: Failed with result 'exit-
Also, after restarting i saw new interface, but can’t rise up it:
root@bpi-r2:~# ip l sh br0
12: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group defe DEFAULT group default qlen 1000
link/ether 82:7f:cc:95:f4:77 brd ff:ff:ff:ff:ff:ff
root@bpi-r2:~# ip l set br0 up
root@bpi-r2:~# ip l sh br0
12: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 82:7f:cc:95:f4:77 brd ff:ff:ff:ff:ff:ff
What i’m doing wrong?
Debian 9, kernel: 4.14.80-bpi-r2-main