-
Notifications
You must be signed in to change notification settings - Fork 27
Container networking setup
Nicolas Bonnand edited this page Sep 10, 2018
·
19 revisions
Now we are going to create a network interface for our container !
- a Press to launch interface editor
- b Enter a name for docker port that is going to be linked with container interface. Let's choose "P01".
- c Enter a name for interface inside ALP container. Let's stay classic and choose "eth0" !
- d Enter a vlan number for P01 port. (This is optional ). Let's choose 100.
- e Enter a valid mac address for your container interface
- f (optional) Enter a requested openflow port number for P01 port. Let's choose 1001
- g Validate
- h Select interface config you have created in 11.3.1
- k Press button to launch Docker net editor
- m Select "addr"
- n Choose a network ip / mask. ( Don't forget mask !!!)
- o Validate
- p You should see here ip net config you have configured in 11.3.2
- q Press buttob to launch again Docker net editor
- r Select "Default route"
- s Enter 'default'
- t Enter gateway ip
- u Validate
Note that you can repeat last steps as much as you want, if, for example, you need to define for eth0:
- multiple ipv4 addresses
- multiple ipv6 addresses
- multiple static routes
- w1 In the table, you should now see an interface P01,
- w2 ip addr config associated with P01
- w3 route associated with P01
- x Press to apply this network template to current container ALP (x1) on bridge br0 (x2)
- y1 (optional ) you can save this network template in order to reuse it another day.
- y2 ( optional) you can load an already saved network template.
© 2018 Nicolas Bonnand, licensed under the Apache License, Version 2.0