Debian 8(jessie)以降では、IPアドレスを設定するのに/etc/network/interfacesではなく
/etc/dhcpcd.confに記述を行うようになったとのこと。
/etc/network/interfacesにもそう書いてある
dhcpcd は DHCP と DHCPv6 のクライアントです。
[ダイナミックIPアドレスにする場合]
明示的に/etc/dhcpcd.confの編集は不要
[スタティックIPアドレスにする場合]
interface eth0
#inform 192.168.0.100
static ip_address=192.168.0.100/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 8.8.8.8
inform でもstatic ip_address=でも行けるようだがサブネットネットマスクの
指定がinformだとなくてよくわからん
[ブリッジアダプタの場合]
denyinterfaces eth0 eth1 wlan0
interface br0
static ip_address=192.168.0.100/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 8.8.8.8
物理インターフェースがIPアドレスを取らないように
denyinterfaces eth0 eth1 wlan0 とする
/etc/network/interfacesにも以下を追記する
auto br0
iface br0 inet manual
bridge_ports eth0 eth1 wlan0
#必要に応じて以下も追加する
#bridge_stp off
#bridge_maxwait 3
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Raspbian jessie で bridge する備忘録
https://www.labohyt.net/blog/server/post-881/
Raspberry Pi 2 [Raspbian Jessie] をWi-Fi接続、IP固定にしてhost名でssh接続可能にする
https://qiita.com/naoto0n2/items/b2d7089aaa5ed24dd1bb