mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-15 03:40:54 +00:00
can we get systemd-networkd already?
This commit is contained in:
parent
954a26fd27
commit
f56aaa83a2
@ -483,12 +483,31 @@ net.ipv6.conf.lo.disable_ipv6 = 0
|
|||||||
----
|
----
|
||||||
# /etc/network/interfaces
|
# /etc/network/interfaces
|
||||||
(...)
|
(...)
|
||||||
|
# Dual stack:
|
||||||
|
iface vmbr0 inet static
|
||||||
|
address 1.2.3.4
|
||||||
|
netmask 255.255.255.128
|
||||||
|
gateway 1.2.3.5
|
||||||
iface vmbr0 inet6 static
|
iface vmbr0 inet6 static
|
||||||
address fc00::31
|
address fc00::31
|
||||||
netmask 16
|
netmask 16
|
||||||
gateway fc00::1
|
gateway fc00::1
|
||||||
accept_ra 0
|
accept_ra 0
|
||||||
pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
|
pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
|
||||||
|
|
||||||
|
# With IPv6-only 'pre-up' is too early and 'up' is too late.
|
||||||
|
# Work around this by creating the bridge manually
|
||||||
|
iface vmbr1 inet manual
|
||||||
|
pre-up ip link add $IFACE type bridge
|
||||||
|
up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
|
||||||
|
iface vmbr1 inet6 static
|
||||||
|
address fc00:b:3::1
|
||||||
|
netmask 96
|
||||||
|
bridge_ports none
|
||||||
|
bridge_stp off
|
||||||
|
bridge_fd 0
|
||||||
|
bridge_vlan_aware yes
|
||||||
|
accept_ra 0
|
||||||
(...)
|
(...)
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user