Not Sowing IPV4 Addess for ifconfig, the VM created on Virtual Box

Issues related to configuring your network
Post Reply
blips.murali
Posts: 1
Joined: 2019/10/24 17:42:16

Not Sowing IPV4 Addess for ifconfig, the VM created on Virtual Box

Post by blips.murali » 2019/10/24 18:08:10

Hi,

Configured VM on VirtualBox, used DHCP to for the network, not showing ipv4 address when use ifconfig, plz find the following information for reference for the issue ans also find the network settings for VM from virtual box console(attachment).

The ifconfig output:

blips-server@localhost ~]$ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::b279:f78c:3a74:fbe1 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:b2:81:35 txqueuelen 1000 (Ethernet)
RX packets 37 bytes 5105 (4.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 60 bytes 5574 (5.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


******************************************************************************
the file contents from /etc/sysconfig/networ-scripts/ifcfg-enp0s3

Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=d702eae4-948e-4a09-bbed-dd34b0f6b6c7
DEVICE=enp0s3
ONBOOT=yes
IPV6_PRIVACY=no

Thanks, in advance for the help.
Attachments
VM-netwrok-setting.PNG
VM-netwrok-setting.PNG (58.15 KiB) Viewed 243 times

User avatar
TrevorH
Forum Moderator
Posts: 26934
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Not Sowing IPV4 Addess for ifconfig, the VM created on Virtual Box

Post by TrevorH » 2019/10/24 18:22:08

inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
What's that then? Looks like an ip address to me...
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Networking Support”