#author("2017-09-12T01:23:41+09:00","default:yakumo_murakami","yakumo_murakami")
[[パソコン汎用]]
#contents
* What? [#cfc28200]
ブリッジをどうやって作るかについて。
よくひっかかるので、解説を。
* 環境 [#ie68f683]
Ubuntu16.04でやりますた。
* Before After [#ifbe9e79]
** Before [#xa9ac028]
*** /etc/network/interfaces ***
auto enp4s0
iface enp4s0 inet static
address 192.168.1.93
gateway 192.168.1.1
netmask 255.255.255.0
dns-nameservers 192.168.1.2 192.168.1.1
** After [#g1b059f5]
*** /etc/network/interfaces ***
#auto enp4s0
#iface enp4s0 inet dhcp
#iface enp4s0 inet static
# address 192.168.1.93
# gateway 192.168.1.1
# netmask 255.255.255.0
# dns-nameservers 192.168.1.2 192.168.1.1
auto br0
iface br0 inet static
address 192.168.1.93
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.2 192.168.1.1
bridge_ports enp4s0
bridge_stp off
bridge_maxwait 0
これで、ネットワークを切り直すか再起動。
* テスト [#fb56267a]
別のマシンからログイン。
$ ssh 192.168.1.93 -l ubuntu
password: *
$