Skip to content

Commit

Permalink
[image]: change mtu to jumbo size 9216 by default (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored May 28, 2017
1 parent 1b2b7b8 commit 17f0633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/image_config/interfaces/interfaces.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ iface eth0 inet dhcp
auto {{ interface['attachto'] }}
allow-hotplug {{ interface['attachto'] }}
iface {{ interface['attachto'] }} {{ 'inet' if interface['addr'] | ipv4 else 'inet6' }} static
mtu 9216
address {{ interface['addr'] }}
netmask {{ interface['mask'] }}
#
Expand All @@ -61,7 +62,7 @@ iface {{ interface['attachto'] }} {{ 'inet' if interface['addr'] | ipv4 else 'in
auto {{ member }}
allow-hotplug {{ member }}
iface {{ member }} inet manual
pre-up ifconfig {{ member }} up
pre-up ifconfig {{ member }} up mtu 9216
post-up brctl addif {{ vlan }} {{ member }} || true
post-down ifconfig {{ member }} down
#
Expand Down Expand Up @@ -103,6 +104,7 @@ iface {{ vlan_interface['attachto'] }} {{ 'inet' if vlan_interface['addr'] | ipv
auto {{ pc_interface['attachto'] }}
allow-hotplug {{ pc_interface['attachto'] }}
iface {{ pc_interface['attachto'] }} {{ 'inet' if pc_interface['addr'] | ipv4 else 'inet6' }} static
mtu 9216
address {{ pc_interface['addr'] }}
netmask {{ pc_interface['mask'] }}
#
Expand Down

0 comments on commit 17f0633

Please sign in to comment.