Skip to content

Instantly share code, notes, and snippets.

@bbyhuy
Created September 12, 2016 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbyhuy/4b19c1b0e4ac2c621a9d2d257dd8ac20 to your computer and use it in GitHub Desktop.
Save bbyhuy/4b19c1b0e4ac2c621a9d2d257dd8ac20 to your computer and use it in GitHub Desktop.
root@infra3_heat_engine_container-37127731:/etc/network# cat interfaces.d/eth2.41.cfg
### start generated network for [ eth2.41 ] ###
auto eth2.41
iface eth2.41 inet static
address 172.29.239.22
netmask 255.255.252.0
mtu 1500
# needed to enable gratuitous arps on interface events
post-up sysctl -w net.ipv4.conf.$IFACE.arp_notify=1
# needed to force an interface event (setting mac to what it already is)
post-up ip link set $IFACE address $(cat /sys/class/net/$IFACE/address)
### end generated network for [ eth2.41 ] ###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment