VirtualBox VMでHDP-SandboxのIPアドレスを見つける方法は?

VirtualBox VMでHDP-SandboxのIPアドレスを見つける方法は?

私のホストはUbuntuです。 HDP-Sandboxにログインすると

ip addr show

私にください

5: eth0@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:12:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.18.0.2/16 brd 172.18.255.255 scope global eth0

それはどういう意味ですか?

172.18.0.2

VMのIPアドレスですか?

この行を追加しました。/etc/hosts

127.0.0.1 sandbox-hdp.hortonworks.com sandbox-hdf.hortonworks.com

ログを見ると

00:00:00.942935 NAT: Guest address guess set to 10.0.2.15 by initialization
00:00:00.943051 NAT: resolv.conf: nameserver 127.0.0.53
00:00:00.943058 NAT: resolv.conf: ignoring "options edns0"
00:00:00.943067 NAT: DNS server 127.0.0.53 registration detected, switching to the DNS proxy

これウェブサイトのアドレス説明する

VM receives its network address and configuration on the private network from a DHCP server 

これは実際にどのように機能しますか?固定IPがありますか?

ベストアンサー1

おすすめ記事