VirtualBox 6.1.26 on a Windows 7 Host
Oracle Linux VM using NAT Network.
After starting the VM ip configuration is as follows:
Code: Select all
[oracle@10 etc]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:0e:8a:eb brd ff:ff:ff:ff:ff:ff
inet 10.0.2.120/24 brd 10.0.2.255 scope global noprefixroute dynamic eth0
valid_lft 367sec preferred_lft 367sec
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 52:54:00:6e:44:5f brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 500
link/ether 52:54:00:6e:44:5f brd ff:ff:ff:ff:ff:ff
[oracle@10 etc]$
If I stop and start eth0 by using the following commands:
Code: Select all
[oracle@10 etc]$ ifdown eth0
Device `eth0` succesfully disconnected
[oracle@10 etc]$ ifup eth0
Connection succcesfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)
[oracle@10 etc]$
Assuming this is the same issue:
Why isn't the ip-address renewed after the first 600 sec and do I have to use ifdown and ifup?
How can I configure a valid_lft and preferred_lft with the value forever, so this (mis)behaviour does not appear?
Are there any other solutions to prevent this from happening?
Regards