[SOLVED] DCHP does not renew IP on CT

sand-max

Renowned Member
Apr 13, 2016
38
1
73
40
DCHP does not renew IP on CT

Bash:
2: eth0@if174: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 1a:88:ee:d5:af:88 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::1888:eeff:fed5:af88/64 scope link
       valid_lft forever preferred_lft forever


Last requests on 15 jan (when I restarted CT)

Bash:
Jan 15 06:45:10 proxy-buh3010--prod ifup[74]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jan 15 06:45:10 proxy-buh3010--prod dhclient[91]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jan 15 06:45:10 proxy-buh3010--prod dhclient[91]: DHCPOFFER of 5.149.XXXXXXX from 109.110.XXXX
Jan 15 06:45:10 proxy-buh3010--prod ifup[74]: DHCPOFFER of 5.149.XXXXXX from 109.110.XXXX
Jan 15 06:45:10 proxy-buh3010--prod ifup[74]: DHCPREQUEST for 5.149.XXXXX on eth0 to 255.255.255.255 port 67
Jan 15 06:45:10 proxy-buh3010--prod dhclient[91]: DHCPREQUEST for 5.149.XXXX on eth0 to 255.255.255.255 port 67
Jan 15 06:45:10 proxy-buh3010--prod dhclient[91]: DHCPACK of 5.149.XXXX from 10.10.1.4
Jan 15 06:45:10 proxy-buh3010--prod ifup[74]: DHCPACK of 5.149.XXXXX from 10.10.1.4

When I do "dhclient eth0 " it works fine.
 
Last edited:
hi,

could you post pct config CTID?
 
hi,

could you post pct config CTID?
arch: amd64
cores: 1
hostname: proxy-buh3010--prod
memory: 512
nameserver: 8.8.8.8
net0: name=eth0,bridge=vmbr0,hwaddr=1A:88:EE:D5:AF:88,ip=dhcp,tag=404,type=veth
onboot: 1
ostype: debian
rootfs: MSA2040-2-ISCSI-lv02:vm-3010-disk-0,size=4G
searchdomain: domainXXX.net
swap: 512
unprivileged: 1
 
is the dhclient service active/enabled in the container?

do you see any error message in journalctl or syslog?
 
is the dhclient service active/enabled in the container?

do you see any error message in journalctl or syslog?
Yes , you is right.
There was incorrect config of interface(I have eth0 only)
Bash:
cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

#auto eth1
#iface eth1 inet dhcp

So, networking service couldn't start normally.
Thanks.
 
does it work after fixing the config?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!