change IPV6 to IPV4 in linux VMWare virtual box

5,407

Every network card has unique MAC address (08:00:27:66:ca:5e in your screenshot). IPv6 networking code in Linux automatically assigns special IPv6 address starting with fe80:: and made of network card's MAC address (fe80::a0027:fe66:ca5e in the same screenshot). This IPv6 address is used to find IPv6 network router and ask it for global IPv6 address (it is almost the same as to get IPv4 address via dynamic configuration protocol aka DHCP).

Simply speaking you do not have any real address assigned to your network card (nor IPv4 nor IPv6).

You need to configure your VMware or VirtualBox to provide DHCP service to automatically assign IP addresses to your virtual machines or you will have to assign IP addresses manually.

Share:
5,407

Related videos on Youtube

Prashant Kumar
Author by

Prashant Kumar

Updated on September 18, 2022

Comments

  • Prashant Kumar
    Prashant Kumar over 1 year

    I am using Linux over Windows using VMware VirtualBox and set the network settings as Host-Only Network but when I am doing ifonfig in Linux I am getting IPV6 and not IPV4. I want IPV4 of eth0. I have also tried with the bridged network.

    PS: I don't want to use NAT system as it will not allow me to ping from Windows to Linux (Host-to-Guest). I want it to be able to ping both sides.

    Output of ifconfig:ipconfig_output

    • phuclv
      phuclv about 6 years
      under NAT you can use port-forwarding to make the specific apps work. But it's better to use bridging if you want the VM to have internet access
    • Rui F Ribeiro
      Rui F Ribeiro about 6 years
      @LưuVĩnhPhúc Technically a bridge is better. If automatic DHCP is not working outside the box, and the post shows the OP is not familiar with networking/IP theory, I advise NAT for first impressions and getting familiar with the technology.
    • jdwolf
      jdwolf about 6 years
      Check your settings in host network manager. As for bridged mode only giving ipv6 there could be a number of reasons for that including ones related to your router.