Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: verify custom container interface #743

Open
troglobit opened this issue Oct 21, 2024 · 0 comments
Open

test: verify custom container interface #743

troglobit opened this issue Oct 21, 2024 · 0 comments
Labels
test Regression test related

Comments

@troglobit
Copy link
Contributor

troglobit commented Oct 21, 2024

Some customers are using container interfaces with custom interface names (inside the container) and with a custom MAC address based on the chassis mac, with an offset 06:00:00:00:00:00.

  • Create two bridges (generic, non-VLAN filtering is fine), named br0 and br1
  • Use two veth pairs veth0a<-->veth0b, and veth1a<-->veth1b
  • Set custom container network interface names of veth0a and veth1a, use br0 and br1, respectively (yes, really)
  • Set custom MAC address of veth0a (chassis + offset as above)
  • Set veth0b and vet1b as bridge ports in br0 and br1, respectively
  • Add IP addresses on all interfaces (except the bridge ports, of course) to verify connectivity
  • SSH to the container to verify interface names

Add an ASCII drawing (or svg) to this test so to illustrate the connections. Something prettier than the below:

                                        container
                                       _____________
                                      |             |
                                      |   br1  br0  |
           br0              br1       |___/___/_____|
             \                \   vet1   /   /
              \                \________/   /
               \          veth0            /
                \_________________________/
@troglobit troglobit added the test Regression test related label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Regression test related
Projects
Status: No status
Development

No branches or pull requests

1 participant