ブリッジをどうやって作るかについて。
よくひっかかるので、解説を。
Ubuntu16.04でやりますた。
*** /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
*** /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
これで、ネットワークを切り直すか再起動。
別のマシンからログイン。
$ ssh 192.168.1.93 -l ubuntu password: * $