ベイグラントVMにローカルマシンからブリッジネットワークポートする必要があり、私はeth1のポート上で、次のDHCPトラフィックを見ることができます:私の開発マシン上で
sudo tcpdump -i eth1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
09:51:58.785056 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 00:06:31:c7:1e:23 (oui Unknown), length 315
09:51:58.785384 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 00:06:31:c7:1e:23 (oui Unknown), length 315
09:51:59.786677 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 00:06:31:c7:1e:23 (oui Unknown), length 315
私は私のベイグラントVMでこの同じトラフィックを見てみたいです。だから、開発マシンのeth1ポートと私のVagrant VMのポートを橋渡ししたい。また、私のVagrant VMからeth1にネットワークトラフィックを送り返すことができます。次の質問に答えを使用して
: https://superuser.com/questions/752954/need-to-do-bridged-adapter-only-in-vagrant-no-nat
私は私のVagrantfileにこれを追加しました:
config.vm.provision "shell",
run: "always",
inline: "route -A inet6 add deault gw fc00::1 eth1"
しかし、それは唯一のルートに思えることを除いて、私は本当に、これは何をするか分かりませんipv6トラフィック?誰かが私のVagrant VMのポートにeth1をブリッジする方法を説明できますか?
私もVagrantfileに次のように試してみました:
Vagrant::Config.run do |config|
config.vm.network :bridged
end
まだ私は再び放浪ん後、私はまだDHCPトラフィックを持っている私のVMに(ifconfigコマンドを使用して)すべてのポートが表示されません。