Problem: any kind of ipv6 is unreacheble hence yum command doesn't work, because http://mirrorlist.centos.org is also unreacheble.[root@localhost ~]# yum install tcpdumpLoaded plugins: fastestmirrorCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#7 - Failed to connect to 2001:1b48:203::4:10: Network is unreachableBefore You read this, my host is Windows 10 and I am not able to ping -6 ipv6.google.com, however, I can enter the link above in the browser and see the server response:http://mirror.tversu.ru/centos/7.3.1611/os/x86_64/http://mirror.satellite-service.ru/centos/7.3.1611/os/x86_64/http://mirror.yandex.ru/centos/7.3.1611/os/x86_64/...I also tried to force yum to use ipv4 but then it output Failed connect to mirrorlist.centos.org:80; Operation now in progress.Network settings:VB settings: Host-only adapter has an ipv4 of 169.254.180.124 (the subnet is bold) and ipv6 textboses are disabled (well, I don't need ipv6 to connect to the host, don't I?). Through this adapter I am able to use the machine via ssh.OS settiings:Adapter 1 - Host-only (the one from VB settings). Using this adapter we enable ipv4 bidirectional connection to the host. Host can access us via ssh using this ip. ping to any domain returns could not resolve.bash$ip address2: enp0s3:  mtu 1500 qdisc pfifo_fast state UP qlen 1000link/ether 08:00:27:c8:e2:5a brd ff:ff:ff:ff:ff:ffinet 169.254.1.1/16 brd 169.254.255.255 scope global enp0s3valid_lft forever preferred_lft foreverinet6 fe80::a00:27ff:fec8:e25a/64 scope linkvalid_lft forever preferred_lft foreverbash$ vi /etc/sysconfig/network-scripts/ifcfg-enp0s3TYPE=EthernetBOOTPROTO=static # set static ipDEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPADDR=169.254.1.1 # out of headNETWORK=169.254.00.0 # same as the host-only adapter in the host machineNETMASK=255.255.0.0 # same as the host-only adapter in the host machineDNS=8.8.8.8 169.254.180.124IPV4_FAILURE_FATAL=noIPV6INIT=noIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyNAME=enp0s3UUID=f403cc61-1a61-407c-9f4e-bca73e2cbed8DEVICE=enp0s3ONBOOT=yesAdapter 2 - NAT (does not requre any settings from VB). Using that adapter alone I am able to ping the host and ping google.com. But not ping6 ipv6.google.com. And the host cannot ping us using this ip.bash$ip address3: enp0s8:  mtu 1500 qdisc pfifo_fast state UP qlen 1000link/ether 08:00:27:21:b4:4a brd ff:ff:ff:ff:ff:ffinet 10.0.3.15/24 brd 10.0.3.255 scope global dynamic enp0s8valid_lft 86376sec preferred_lft 86376secinet6 fe80::61f6:e529:5212:6b87/64 scope linkvalid_lft forever preferred_lft foreverbash$ vi /etc/sysconfig/network-scripts/ifcfg-enp0s3TYPE=EthernetBOOTPROTO=dhcpDEFROUTE=yesPEERNS=yesPEERROUTES=yesIPV4_FAILRE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyNAME=enp0s8UUID=54e4c72d-698f-459f-8a9e-3b81dbfdcd8fDEVICE=enp0s8ONBOOT=yesI spent the whole yesterday to make a local lab but reached very little progress :(
Cent OS 7 VirtualBox NAT cannot resolve ipv6 (or maybe I can avoid ipv6?)
virtualbox;ipv6;nat