Virtual Machine doesn't get an IPV4 address

NethServer Version: 7b2
Module: network
Hi,
I’ve installed a new Nethserver Instance on a virtual machine with the image of 7b2.
During installation I setup the network with an IP 192.168.5.11. After installation I had another IP 192.168.1.1.
I changed the network setting of my client to connect to 192.168.1.1.
At the webinterface I configured the hostname and IP again.
I changed back my Client IP and tried to connect to the webinterface, but I can’t reach. An ifconfig at the server only shows an IPV6 adress.
A ping from client to server IP 192.168.5.11 is ok.
Can somebody help?

Hi Michael,

what does db networks show show?
example:

[root@ns7test ~]# db networks show
br0=bridge
    gateway=
    ipaddr=192.168.xxx.xxx
    netmask=255.255.255.0
    role=green
enp0s17=ethernet
    bridge=br0
    role=bridged
enp0s8=ethernet
    FwInBandwidth=
    FwOutBandwidth=
    bootproto=none
    gateway=xxx.xxx.xxx.xxx
    ipaddr=xxx.xxx.xxx.xxx
    netmask=xxx.xxx.xxx.xxx
    role=red
ppp0=xdsl-disabled
    AuthType=auto
    Password=
    name=PPPoE
    provider=xDSL provider
    role=red
    user=
red1=provider
    interface=enp0s8
    weight=1

If there are the correct values, you can try signal-event interface-update.
With this command, the ifcfg-xx scripts in /etc/sysconfig/network-scripts/ should be regenerated.

4 Likes

Hi Ralf,
thanks for your answer. The command db networks show shows the correct values, see screenshot.

signal-event dosn’t change anything.
A screenshot of my ifconfig is here:

Execute:

systemctl restart network

Then check the logs and see if there an error.

1 Like

Hi Giacomo,
thanks a lot, after trying your command and looking in the messages log I found my mistake.
I’ve choosen the same IP-adress as for the network card of the virtual host.

2 Likes