CentOS 7 with NatNetwork and Host-Only Network Routing Issue
Posted: 21. Dec 2015, 00:14
Hi,
I currently have an issue with CentOS guests, with the following config:
enp0s3 - NatN etwork connection with DHCP (NatNetwork)
enp0s8 - Host-Only connection with static addressing on 172.16.0.x (vboxnet0).
At boot time the VM is unable to access the internet with the NatNetwork. shows:
If I then do this changes to:
And the VM can access the internet.
Is there any way I can have this the "on boot" condition?
Thanks,
Adam M.
I currently have an issue with CentOS guests, with the following config:
enp0s3 - NatN etwork connection with DHCP (NatNetwork)
enp0s8 - Host-Only connection with static addressing on 172.16.0.x (vboxnet0).
At boot time the VM is unable to access the internet with the NatNetwork.
Code: Select all
ip route showCode: Select all
default via 172.16.0.1 dev enp0s8 proto static metric 100
default via 192.168.55.1 dev enp0s3 proto static metric 101
172.16.0.1 dev enp0s8 proto static scope link metric 100
192.168.55.0/24 dev enp0s3 proto kernel scope link src 192.168.55.5 metric 100Code: Select all
systemctl restart networkCode: Select all
default via 192.168.55.1 dev enp0s3 proto static metric 100
default via 172.16.0.1 dev enp0s8 proto static metric 101
172.16.0.1 dev enp0s8 proto static scope link metric 100
192.168.55.0/24 dev enp0s3 proto kernel scope link src 192.168.55.5 metric 100Is there any way I can have this the "on boot" condition?
Thanks,
Adam M.