OpenStack Default MTU = 1450
# ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:b9:df:18:1f
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:b9ff:fedf:181f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:6874 errors:0 dropped:0 overruns:0 frame:0
TX packets:8676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:405386 (405.3 KB) TX bytes:206753395 (206.7 MB)
ens3 Link encap:Ethernet HWaddr fa:16:3e:40:a1:80
inet addr:172.16.0.47 Bcast:172.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::f816:3eff:fe40:a180/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:81492 errors:0 dropped:0 overruns:0 frame:0
TX packets:65020 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:764391082 (764.3 MB) TX bytes:7122409 (7.1 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB)
# cp /lib/systemd/system/docker.service /etc/systemd/system/docker.service
# vim /etc/systemd/system/docker.service
.........................
ExecStart=/usr/bin/dockerd -H fd:// --mtu=1450
ExecReload=/bin/kill -s HUP $MAINPID
.........................
# systemctl daemon-reload
# service docker restart
Container ½ÇÇà
# docker run -it ecc74d703eca
# ifconfig
eth0 Link encap:Ethernet HWaddr 02:42:AC:11:00:02
inet addr:172.17.0.2 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:508 (508.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)