Skip to content

multiple interfaces containers

Nicolas Bonnand edited this page Sep 13, 2018 · 11 revisions

11.5 Multiple interfaces containers

It's possible to create containers with multiple interfaces and multiple ip addresses and routes associated with each interface.

Let's look at the following example, where our container will have interfaces eth0, eth1 and eth2.

diag

  • a plus was pressed 3 times to create eth0, eth1 and eth2
  • b interface eth0 ( currently selected )
  • c interface eth1
  • d interface eth2
  • e In the right panel, you can see ip addresses and routes associated with currently selected interface. Associated with eth0, we have an ipv4 192.168.100.1/24 and a default route 192.168.100.254.



diag Associated with eth1, we have an ipv6 address fdf3:b000::8/64



diag Associated with eth2, we have:

  • an ipv6 address fdf3:e000::5/64
  • an ipv4 address 172.21.35.1/24
  • an ipv4 route 10.0.0.0/16 via 172.21.35.254
  • an ipv4 route 10.1.0.0/16 via 172.21.35.254

    Let's have a look at a container created with this network template: diag We see that all ip addresses and routes have been configured in the container !
Clone this wiki locally