My problem is when i try to enable DHCP to my NatNetwork I can access the internet in my server VM, however when i try to assign my
my server a static ip address i fail to access the internet. I try to add a DNS entry of 8.8.8.8 but i can only ping 8.8.8.8 but it cant resolve domain name such as google. why is this happening?
One more thing when i try to check my ip configuration in the command prompt i get the following result.
Description . . . . . . . . . . . : Intel(R) Dual Band PRO/1000 MT Network Connection
Physical Address. . . . . . . . . : 08-00-27-88-80-C5
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::e0ac
Auto Configuration IPv4 Address. . . . . . . . . . . : 169..254.66.174(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
IPv4 Address. . . . . . . . . . . : 172.161.1.2(Duplicate)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.1.1
DNS Servers . . . . . . . . . . . : 8.8.8.8
NetBIOS over Tcpip. . . . . . . . : Enabled
Why is it my assigned ip address is duplicate?
here is my VBoxManage.exe list natnets
NetworkName: Network
IP: 172.16.1.1
Network: 172.16.1.0/24
IPv6 Enabled: No
IPv6 Prefix: fd17:625c:f037:2::/64
DHCP Enabled: No
Enabled: Yes
loopback mappings (ipv4)
127.0.0.1=2
VBoxManage list dhcpservers
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
Dhcpd IP: 192.168.56.100
LowerIPAddress: 192.168.56.101
UpperIPAddress: 192.168.56.254
NetworkMask: 255.255.255.0
Enabled: Yes
Global Configuration:
minLeaseTime: default
defaultLeaseTime: default
maxLeaseTime: default
Forced options: None
Suppressed opts.: None
1/legacy: 255.255.255.0
Groups: None
Individual Configs: None