安装bridge-utils:

sudo apt install bridge-utils -y

修改:

/etc/network/interfaces

添加:

auto br0
  iface br0 inet manual
  bridge_ports eth0 eth1

修改:

/etc/dhcpcd.conf

添加:

denyinterfaces eth0 eth1

interface br0
static ip_address=10.168.1.206/24
static routers=10.168.1.1
static domain_name_servers=10.168.1.1

标签: Raspbian, bridge

添加新评论