IPV6 衝突 VM Ubuntu 20.04 - Netplan

IPV6 衝突 VM Ubuntu 20.04 - Netplan

我有一個問題,我有兩個虛擬機,但問題是當我打開第二個虛擬機時,我失去了第一個虛擬機的連接,反之亦然。

這是主機伺服器上的網橋網路規劃配置:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0f0:
      dhcp4: no
      dhcp6: no
  bridges:
    viifbr0:
      addresses:
        - 135.xxx.159.xx/24
        - 2001:xxxx:xxx:500f::/128
      interfaces: [ enp1s0f0 ]
      routes:
        - on-link: true
          to: 0.0.0.0/0
          via: 135.xxx.159.xxx
        - on-link: true
          to: ::0/
          via: 2001:xxxx:xxx:50ff:ff:ff:ff:ff
      gateway6: 2001:xxxx:xxx:50ff:ff:ff:ff:ff
      macaddress: xx:40:xx:fe:xx:7b
      nameservers:
         addresses:
           - 8.8.8.8
           - 8.8.4.4
           - 2001:4860:4860::8888
           - 2001:4860:4860::8844

(IPv6 轉送已啟用)

這是客戶端網路設定:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet6 static
        accept_ra 0
        address 2001:xxxx:xxx:500f::a2
        netmask 64


post-up /sbin/ip -r route add 2001:xxxx:xxx:50ff:ff:ff:ff:ff dev eth0
post-up /sbin/ip -r route add default via 2001:xxxx:xxx:50ff:ff:ff:ff:ff

你能幫助我嗎 ?

謝謝。

問候, 伊爾科斯卡

答案1

確保虛擬機器具有不同的 MAC 位址。外部 DHCP 伺服器無法區分具有相同 MAC 位址的它們,並且會為兩者指派相同的 IP 位址。

相關內容