Opened 4 years ago
Last modified 4 years ago
#19615 closed defect
Linux - hostonlif ipconfig modifies system default route — at Version 1
| Reported by: | cssolomonides | Owned by: | |
|---|---|---|---|
| Component: | network/hostif | Version: | VirtualBox 6.1.6 |
| Keywords: | linux default route system | Cc: | |
| Guest type: | other | Host type: | Linux |
Description (last modified by )
Hello,
creating a hostonlyif and assigning an IP to it via vboxmanage hostonlyif ipconfig vboxnet0 --ip 192.168.56.1 results in mangling the host system routing, giving maximum priority to the hostonly interface for default route.
$ vboxmanage --version 6.1.6_Ubuntur137129 $ ip route ls default via 192.168.10.1 dev wlan0 proto dhcp src 192.168.10.4 metric 303 mtu 1500 $ vboxmanage hostonlyif create 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interface 'vboxnet0' was successfully created $ ip route ls default via 192.168.10.1 dev wlan0 proto dhcp src 192.168.10.4 metric 303 mtu 1500 $ vboxmanage hostonlyif ipconfig vboxnet0 --ip 192.168.56.1 $ ip route ls default via 192.168.56.1 dev vboxnet0 src 192.168.56.1 metric 212 default via 192.168.10.1 dev wlan0 proto dhcp src 192.168.10.4 metric 303 mtu 1500
As this behavior mangles system network connectivity, it would be expected that the default route created by the hostif network has lower priority compared to existing ones.
Note:
See TracTickets
for help on using tickets.

