Skip to content

Instantly share code, notes, and snippets.

@systo
Created June 25, 2016 05:31
Show Gist options
  • Select an option

  • Save systo/fc0ce7a95b78f96eaa9f723542c52e99 to your computer and use it in GitHub Desktop.

Select an option

Save systo/fc0ce7a95b78f96eaa9f723542c52e99 to your computer and use it in GitHub Desktop.

Revisions

  1. systo created this gist Jun 25, 2016.
    10 changes: 10 additions & 0 deletions etc-network-interfaces
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # IPv4 stuff above

    iface vmbr0 inet6 static
    address "IPv6 Address"
    netmask 64
    # notice "/sbin/ip -f inet6 route add" for v6 vs "/sbin/ip route add" for v4
    post-up /sbin/ip -f inet6 route add "IPv6 Gateway" dev vmbr0
    post-up /sbin/ip -f inet6 route add default via "IPv6 Address of host"
    pre-down /sbin/ip -f inet6 route del default via "IPv6 Address of host"
    pre-down /sbin/ip -f inet6 route del "IPv6 Gateway" dev vmbr0