Network ipv4 and ipv4

leaven

New Member
Feb 19, 2025
4
0
1
Hi,I am new to proxmox and I don't quite know how to split ipv6 and ipv4, I would like proxmox to be available only with ipv6 and ipv4 would be assigned to the VM, how would it be possible to do this?

interface:

Code:
auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp0s31f6
iface enp0s31f6 inet static
        address 94.130.55.108/26
        gateway 94.130.55.65
        up route add -net 94.130.55.64 netmask 255.255.255.192 gw 94.130.55.65 >
# route 94.130.55.64/26 via 94.130.55.65

iface enp0s31f6 inet6 static
        address 2a01:4f8:10b:2ce7::2/64
        gateway fe80::1
 
You should remove these IP addresses from the ethernet interface.

Add a bridge (vmbr0) with the ethernet interface as a port and add the IPv6 address to the bridge interface.

Atttach the VM to the bridge and configure the IPv4 address inside the VM on its interface.
 
I have vm netplan in ubuntu and I have this configuration there, but the wall still shows destination unreachable and the ip route show is this:

Code:
network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      dhcp4: no
      addresses:
        - 94.130.55.108/26
      routes:
        - to: default
          via: 94.130.55.65
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

Code:
default via 94.130.55.65 dev ens18
94.130.55.64/26 dev ens18 proto kernel scope link src 94.130.55.108
 
if I enter this command it shows this:
I have a dedicated server at Hetzner


Code:
19:27:21.082311 90:1b:0e:da:c6:e3 > 40:71:83:a5:f5:b0, ethertype IPv6 (0x86dd), length 1058: 2a01:4f8:10b:2ce7::2.22 > 2a01:4f9:c011:b35b::1.61271: Flags [P.], seq 31272:32244, ack 37, win 622, options [nop,nop,TS val 2617566314 ecr 4020006091], length 972
19:27:21.184729 40:71:83:a5:f5:b0 > 90:1b:0e:da:c6:e3, ethertype IPv6 (0x86dd), length 86: 2a01:4f9:c011:b35b::1.61271 > 2a01:4f8:10b:2ce7::2.22: Flags [.], ack 32244, win 2020, options [nop,nop,TS val 4020006196 ecr 2617566314], length 0
19:27:21.186279 90:1b:0e:da:c6:e3 > 40:71:83:a5:f5:b0, ethertype IPv6 (0x86dd), length 882: 2a01:4f8:10b:2ce7::2.22 > 2a01:4f9:c011:b35b::1.61271: Flags [P.], seq 32244:33040, ack 37, win 622, options [nop,nop,TS val 2617566418 ecr 4020006196], length 796
19:27:21.189729 40:71:83:a5:f5:b0 > 90:1b:0e:da:c6:e3, ethertype IPv4 (0x0800), length 150: 181.49.50.6.45916 > 94.130.55.108.22: Flags [P.], seq 1115:1199, ack 1761, win 150, options [nop,nop,TS val 4168777463 ecr 65537432], length 84
19:27:21.230102 90:1b:0e:da:c6:e3 > 40:71:83:a5:f5:b0, ethertype IPv4 (0x0800), length 66: 94.130.55.108.22 > 181.49.50.6.45916: Flags [.], ack 1199, win 502, options [nop,nop,TS val 65537638 ecr 4168777463], length 0
19:27:21.287196 40:71:83:a5:f5:b0 > 90:1b:0e:da:c6:e3, ethertype IPv6 (0x86dd), length 86: 2a01:4f9:c011:b35b::1.61271 > 2a01:4f8:10b:2ce7::2.22: Flags [.], ack 33040, win 2035, options [nop,nop,TS val 4020006300 ecr 2617566418], length 0
^C
131 packets captured
136 packets received by filter
0 packets dropped by kernel
 
yes, there was also ipv4, but I was just trying to see if it wouldn't work (I already removed it with the bridge), but the interesting thing is that I can ping the 94.130.55.108 address with vm, but I can't ping it with proxmox

Code:
09:56:08.170392 90:1b:0e:da:c6:e3 > 40:71:83:a5:f5:b0, ethertype IPv6 (0x86dd), length 602: 2a01:4f8:10b:2ce7::2.22 > 2a01:4f9:c011:b35b::1.49449: Flags [P.], seq 10084:10600, ack 1, win 622, options [nop,nop,TS val 2669693402 ecr 3701275186], length 516
09:56:08.224973 90:1b:0e:da:c6:e3 > 40:71:83:a5:f5:b0, ethertype IPv6 (0x86dd), length 139: 2a01:4f8:10b:2ce7::2.8006 > 2a01:4f9:c011:b35b::1.62090: Flags [P.], seq 89:142, ack 114, win 632, options [nop,nop,TS val 2669693456 ecr 2567190512], length 53
09:56:08.273341 40:71:83:a5:f5:b0 > 90:1b:0e:da:c6:e3, ethertype IPv6 (0x86dd), length 86: 2a01:4f9:c011:b35b::1.49449 > 2a01:4f8:10b:2ce7::2.22: Flags [.], ack 9072, win 2035, options [nop,nop,TS val 3701275292 ecr 2669693402], length 0
09:56:08.273356 40:71:83:a5:f5:b0 > 90:1b:0e:da:c6:e3, ethertype IPv6 (0x86dd), length 86: 2a01:4f9:c011:b35b::1.49449 > 2a01:4f8:10b:2ce7::2.22: Flags [.], ack 10084, win 2019, options [nop,nop,TS val 3701275292 ecr 2669693402], length 0
09:56:08.273442 40:71:83:a5:f5:b0 > 90:1b:0e:da:c6:e3, ethertype IPv6 (0x86dd), length 86: 2a01:4f9:c011:b35b::1.49449 > 2a01:4f8:10b:2ce7::2.22: Flags [.], ack 10600, win 2048, options [nop,nop,TS val 3701275292 ecr 2669693402], length 0
^C
48 packets captured
56 packets received by filter
0 packets dropped by kernel

1740041922990.png
1740041949540.png
1740041970063.png