add interface veth in CT VM

biolkell

New Member
Mar 18, 2015
8
0
1
Hellow
i'M testing Proxmox and have next problem, i create CT witch have veth.
use default settings.
In CT machine use dhclient eth0, but don't get IP adress
in proxmox host don't have ip in veth101.0.

cat /etc/network/interface
Code:
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.210
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0


#auto venet0-00 
#iface venet0-00 inet dhcp
ifconfig


Code:
eth0      Link encap:Ethernet  HWaddr 08:00:27:99:bb:b8  
          inet6 addr: fe80::a00:27ff:fe99:bbb8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26347 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21847 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9269120 (8.8 MiB)  TX bytes:13368080 (12.7 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:19969 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19969 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11691784 (11.1 MiB)  TX bytes:11691784 (11.1 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

veth101.0 Link encap:Ethernet  HWaddr 06:1f:65:ff:15:b2  
          inet6 addr: fe80::41f:65ff:feff:15b2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74 errors:0 dropped:4 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4144 (4.0 KiB)  TX bytes:12624 (12.3 KiB)

vmbr0     Link encap:Ethernet  HWaddr 08:00:27:99:bb:b8  
          inet addr:192.168.1.210  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe99:bbb8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23222 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19774 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:7928935 (7.5 MiB)  TX bytes:13206986 (12.5 MiB)

What i must do to get IP adress in CT machine ?
 
Last edited:
set up DHCP server for vmbr0 (192.168.1.0/24) or do you use DHCP from eth0 incoming port ?

p.s. no need any settings for veth101.0
 
yes use dhcp for eth0, but when don't use is this same problem.
vmbr has static configuration ip
Proxmox is installed in virtualbox maby multi visualisation create problem
 
in nano /etc/sysctl.conf
Uncomment and change to 1 this parametric, now work.
Code:
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1


thanks for help
 
in nano /etc/sysctl.conf
Uncomment and change to 1 this parametric, now work.
Code:
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1


thanks for help

is work for first reboot
i create dump for veth100.1 bridge on eth0
Code:
20:31:44.761562 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:31:44.762505 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:31:45.738379 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:31:46.747396 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:31:47.746962 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:31:51.162649 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:31:51.163354 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:31:51.761148 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:31:51.762272 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:31:59.472301 IP 192.168.1.111.netbios-dgm > 192.168.1.255.netbios-dgm: NBT UDP PACKET(138)
20:31:59.472394 IP 192.168.1.111.netbios-dgm > 192.168.1.255.netbios-dgm: NBT UDP PACKET(138)
20:31:59.508512 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:31:59.509374 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:07.369149 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:07.370291 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:07.757184 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:07.892846 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:07.893810 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:08.732436 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:09.733789 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:13.154549 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:13.155575 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:14.278348 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:14.279976 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:19.470648 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:19.472153 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:25.578409 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:25.579744 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:28.422825 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:28.423967 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:29.735471 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:30.757913 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:31.763249 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:32.849362 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:32.850565 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:40.726599 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:40.728951 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:41.901993 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:41.902859 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:43.719991 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:32:43.720681 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:32:51.295180 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:32:51.296094 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:32:51.690018 ARP, Request who-has 192.168.1.100 tell 192.168.1.1, length 46
20:32:51.759471 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:52.758963 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:52.982814 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:52.984293 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:32:53.758666 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:32:54.077129 IP 192.168.1.100 > all-routers.mcast.net: igmp leave 239.255.255.250
20:32:59.588331 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:32:59.589317 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:33:01.653403 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:33:01.654120 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:33:05.251070 IP 192.168.1.1 > all-systems.mcast.net: igmp query v2
20:33:07.286555 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:33:07.287583 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:33:13.747004 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:14.747538 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:15.617277 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:33:15.619576 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:33:15.760111 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:16.642066 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:33:16.642786 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:33:26.216225 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:33:26.218622 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:33:35.769797 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:36.770232 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:37.770765 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:39.261121 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:f2:02:e6:31:df (oui Unknown), length 300
20:33:39.262028 ARP, Request who-has 192.168.1.110 (01:6e:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:33:57.770550 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:58.780984 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:33:59.761581 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:19.763044 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:20.781269 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:21.781401 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:41.781325 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:42.794288 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:43.791981 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:34:54.114350 IP 192.168.1.100 > all-routers.mcast.net: igmp leave 239.255.255.250
20:35:03.792600 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:04.795593 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:05.782483 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:06.253179 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:06.254211 ARP, Request who-has 192.168.1.101 tell 192.168.1.1, length 46
20:35:06.754312 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:35:09.519957 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:09.521069 ARP, Request who-has 192.168.1.107 (01:65:08:00:c5:cf (oui Unknown)) tell 192.168.1.1, length 46
20:35:10.254447 IP 192.168.1.1 > all-systems.mcast.net: igmp query v2
20:35:13.274850 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:13.275875 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:35:24.396652 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:24.397927 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:35:25.793205 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:26.803094 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:27.803408 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:36.646707 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:36.648272 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:35:47.803587 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:48.803110 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:48.876871 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:48.877737 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:35:49.792871 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:35:56.217037 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:35:56.218085 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:36:09.796602 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:36:10.814018 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:36:11.814373 IP 192.168.1.102.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
20:36:17.774829 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:36:17.775699 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:36:24.254064 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:36:24.255265 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
20:36:24.685951 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 4e:1c:08:a8:df:ba (oui Unknown), length 300
20:36:24.740091 ARP, Request who-has 192.168.1.107 tell 192.168.1.1, length 46
 
i testing in home dhcp server is small tp-link router ;-)
be see solution i give ip adress for proxmox eth0 and work(do reboot for test), magic :)
 

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!