[PVE-User] How to match ct if with hypervisor veth device?

Horace bugs+proxmoxlist at lhpmail.us
Fri May 31 23:53:40 CEST 2019


For prosperity, Proxmox encodes the container/vm ID in the veth device name.


Received from serverfault

On 5/29/19 4:38 PM, Horace wrote:
> Hello everyone,
>
>
> In future when troubleshooting networking, what is the best way to 
> match a ct's if device with the host if device? Previously I assume I 
> could match it by mac address, however this seem not to be the case?
>
>
> Inside CT:
>
> 18: eth0 at if19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue state UP group default qlen 1000
>     link/ether 06:91:bf:c0:00:54 brd ff:ff:ff:ff:ff:ff link-netnsid 0
>     inet 172.16.2.2/24 brd 172.16.2.255 scope global eth0
>        valid_lft forever preferred_lft forever
>     inet6 fe80::491:bfff:fec0:54/64 scope link
>        valid_lft forever preferred_lft forever
>
>
> On hypervisor:
>
> 8: veth102i0 at if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue master vmbr0 state UP group default qlen 1000
>     link/ether fe:71:16:0f:8a:76 brd ff:ff:ff:ff:ff:ff link-netnsid 1
> 10: veth104i0 at if9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue master vmbr0 state UP group default qlen 1000
>     link/ether fe:7f:07:29:62:07 brd ff:ff:ff:ff:ff:ff link-netnsid 2
> 11: tap103i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc 
> mq master vmbr0 state UNKNOWN group default qlen 1000
>     link/ether 22:ae:08:12:30:65 brd ff:ff:ff:ff:ff:ff
> 13: veth100i0 at if12: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue master vmbr0 state UP group default qlen 1000
>     link/ether fe:05:a0:ce:9e:32 brd ff:ff:ff:ff:ff:ff link-netnsid 0
> 19: veth105i0 at if18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue master vmbr0 state UP group default qlen 1000
>     link/ether fe:ec:36:b2:0c:58 brd ff:ff:ff:ff:ff:ff link-netnsid 3
> 21: veth113i0 at if20: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue master fwbr113i0 state UP group default qlen 1000
>     link/ether fe:0a:9c:16:fb:b7 brd ff:ff:ff:ff:ff:ff link-netnsid 4
> 22: fwbr113i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 
> noqueue state UP group default qlen 1000
>     link/ether aa:2b:66:46:02:fc brd ff:ff:ff:ff:ff:ff
> 23: fwpr113p0 at fwln113i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 
> qdisc noqueue master vmbr0 state UP group default qlen 1000
>     link/ether 5e:3d:ef:1f:a5:2a brd ff:ff:ff:ff:ff:ff
> 24: fwln113i0 at fwpr113p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 
> qdisc noqueue master fwbr113i0 state UP group default qlen 1000
>     link/ether aa:2b:66:46:02:fc brd ff:ff:ff:ff:ff:ff
> 28: veth107i0 at if27: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc 
> noqueue master vmbr0 state LOWERLAYERDOWN group default qlen 1000
>     link/ether fe:03:89:c4:b0:bc brd ff:ff:ff:ff:ff:ff link-netnsid 5
>
-- 
LHProjects Network -- http://www.lhprojects.net




More information about the pve-user mailing list