From: mj <lists@merit.unu.edu>
To: Proxmox VE user list <pve-user@lists.proxmox.com>
Subject: [PVE-User] ip address on both bond0 and vmbr0
Date: Tue, 23 Mar 2021 11:42:14 +0100 [thread overview]
Message-ID: <45b53a59-fd1d-03f0-eaea-4bdce366354f@merit.unu.edu> (raw)
Hi all,
First some info:
10.0.0.0/24 is ceph storage
192.168.143.0/24 is our LAN
I am trying to make this /etc/networking/interfaces work in in pve:
> auto enp2s0f0
> iface enp2s0f0 inet manual
> #mlag1
>
> auto enp2s0f1
> iface enp2s0f1 inet manual
> #mlag2
>
> iface enp0s25 inet manual
> #management
>
> auto bond0
> iface bond0 inet static
> address 10.0.0.10/24
> bond-slaves enp2s0f0 enp2s0f1
> bond-miimon 100
> bond-mode active-backup
> bond-primary enp2s0f0
>
> auto vmbr0
> iface vmbr0 inet static
> address 192.168.143.10/24
> gateway 192.168.143.1
> bridge-ports bond0
> bridge-stp off
> bridge-fd 0
We will connect pve servers to two mlagged arista 40G switches. The
10.0.0.0/24 ceph network will remain local on the two aristas, and
192.168.143.0/24 will be routed to our core switch.
The VM IPs are in the LAN 192.168.143.0/24 range, and obviously don't
require access to 10.0.0.0/24
We connect the VMs to vmbr0 and assign VLANs to them by configuring a
VLAN tag in the proxmox VM config. This works. :-)
However, assigning the IP address to bond0 does NOT work. The IP address
is ignored. bond0 works, but is IP-less. Adding the IP address manually
after boot works, using:
> ip addr add 10.0.0.10/24 dev bond0
Why is this ip address not assigned to bond0 at boot time?
Is it not possible to have an IP on both bond0 and vmbr0, when bond0 is
also used as a bridge port?
The setup is based (freely) on the pve docs:
https://pve.proxmox.com/wiki/Network_Configuration#_linux_bond
Thanks!
MJ
next reply other threads:[~2021-03-23 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-23 10:42 mj [this message]
[not found] ` <c32dec75-3644-3f82-4615-7fbc18630126@yahoo.com>
2021-03-23 11:36 ` mj
2021-03-23 12:02 ` Ronny Aasen
2021-03-23 14:28 ` mj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45b53a59-fd1d-03f0-eaea-4bdce366354f@merit.unu.edu \
--to=lists@merit.unu.edu \
--cc=pve-user@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox