Skip to content

Commit 268980f

Browse files
committed
Added ipv6.md for usage
1 parent f341088 commit 268980f

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

docs/ipv6.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## IPv6 in netplugin
2+
The current implementation supports dual stack with IPv4 and IPv6 interfaces for containers, as Docker Swarm APIs do not support IPv6-only containers.
3+
4+
## Configuring IPv6 network
5+
When configuring a network, you can specify an optional IPv6 subnet pool to allocate IPv6 address for the containers.
6+
7+
```
8+
netctl net create contiv-net --subnet=20.1.1.0/24 --subnetv6=2001::/100
9+
```
10+
11+
## IP Address allocation
12+
The containers created will get IPv4 and IPv6 address allocated from the corresponding subnet range.
13+
```
14+
[vagrant@netplugin-node1 netplugin]$ docker network inspect contiv-net
15+
[
16+
{
17+
"Name": "contiv-net",
18+
"Id": "6c21fa082f4f456730928d076b19148e6db1d88d90fe8f2c0760223af51f4e31",
19+
"Scope": "global",
20+
"Driver": "netplugin",
21+
"IPAM": {
22+
"Driver": "netplugin",
23+
"Config": [
24+
{
25+
"Subnet": "20.1.1.0/24"
26+
},
27+
{
28+
"Subnet": "2001::/100"
29+
}
30+
]
31+
},
32+
"Containers": {
33+
"455a80938abcaf4a534a08783ff44e10b2a1a5afb3c2690d474b19ed670b3d7a": {
34+
"EndpointID": "d8fcf4dc8d79841073655698ebc692ffe20251abc1c2577cdc6924fb53d7ef62",
35+
"MacAddress": "02:02:14:01:01:02",
36+
"IPv4Address": "20.1.1.2/24",
37+
"IPv6Address": "2001::2/100"
38+
},
39+
"cb30c9001c118f4ae39b6fda14f6c26c9ccbdcd1110eabded179ce47a7aa63c9": {
40+
"EndpointID": "06e11d75f0bada4b1e1dad848363b3fea323eb3ac175cde0569b3e7f25dff3a0",
41+
"MacAddress": "02:02:14:01:01:03",
42+
"IPv4Address": "20.1.1.3/24",
43+
"IPv6Address": "2001::3/100"
44+
}
45+
},
46+
"Options": {
47+
"encap": "vxlan",
48+
"pkt-tag": "1",
49+
"tenant": "default"
50+
}
51+
}
52+
]
53+
```
54+

0 commit comments

Comments
 (0)