Raspbian 网桥配置

安装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

添加新评论

icon_mrgreen.pngicon_neutral.pngicon_twisted.pngicon_arrow.pngicon_eek.pngicon_smile.pngicon_confused.pngicon_cool.pngicon_evil.pngicon_biggrin.pngicon_idea.pngicon_redface.pngicon_razz.pngicon_rolleyes.pngicon_wink.pngicon_cry.pngicon_surprised.pngicon_lol.pngicon_mad.pngicon_sad.pngicon_exclaim.pngicon_question.png