1

Scenario Proxmox 2.2 on OVH over VRACK LAN

Two Bridged Interfaces for two VLANS:

  • 5.135.XXX.XXX/26 Gateway 5.135.XXX.126 Netmask 255.255.255.192 This net it's first on Vrack
  • 176.31.XXX.XXX/26 Gateway 176.31.XXX.254 Netmask 255.255.255.192

Interfaces configured manually (not with Proxmox's web interface)

Work for for two VLAN but there are any issues.

From host ping to: - 5.135.XXX.126 Don't work - 176.31.XXX.254 Don't work

Bur all VPS on Host with any of two VLAN work fine

    cat /etc/network/interfaces
auto lo
iface lo inet loopback

# for Routing
    auto vmbr1
    iface vmbr1 inet manual
post-up /etc/pve/kvm-networking.sh
bridge_ports dummy0
bridge_stp off
bridge_fd 0

# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
address 5.39.XXX.XXX
netmask 255.255.255.0
network 5.39.XXX.0
broadcast 5.39.XXX.255
gateway 5.39.XXX.254
bridge_ports eth0
bridge_stp off
bridge_fd 0

 iface vmbr0 inet6 static
address XXXX:XXXX:8:8D23::1
netmask 64
post-up /sbin/ip -f inet6 route add XXXX:XXXX:8:8Dff:ff:ff:ff:ff dev vmbr0
post-up /sbin/ip -f inet6 route add default via XXXX:XXXX:8:8Dff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del default via XXXX:XXXX:8:8Dff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del XXXX:XXXX:8:8Dff:ff:ff:ff:ff dev vmbr0

# vmbr11: Bridging vRack
auto vmbr10
iface vmbr10 inet static
    address 5.135.XXX.XXX
    netmask 255.255.255.240  # With 255.255.255.192 Don't work any.
    network 5.135.XXX.64
broadcast 5.135.XXX.127
    gateway 5.135.XXX.126
    bridge_ports auto eth0.2674
    bridge_stp off
    bridge_fd 0

# vrack 2674
auto eth0.2674
iface eth0.2674 inet static
address 5.135.XXX.XXX
network 5.135.XXX.64
broadcast 5.135.XXX.127
gateway 5.135.XXX.126
netmask 255.255.255.240 # With 255.255.255.192 Don't work any.

# vmbr11: Bridging vRack
auto vmbr11
iface vmbr11 inet static
    address 176.XXX.XXX.250
    netmask 255.255.255.240 # With 255.255.255.192 Don't work any.
    network 176.XXX.XXX.192
    broadcast 176.XXX.XXX.255
    gateway 176.XXX.XXX.254
    bridge_ports auto eth0.2673
    bridge_stp off
    bridge_fd 0

# vrack 2673
  auto eth0.2673
  iface eth0.2673 inet static
  address 176.XXX.XXX.193
  network 176.XXX.XXX.192
  broadcast 176.XXX.XXX.255
  gateway 176.XXX.XXX.254
  netmask 255.255.255.240 # With 255.255.255.192 Don't work any.

post-up /sbin/ip route add default via 176.XXX.XXX.254 dev eth0.2673 table 125
post-up /sbin/ip rule add from 176.XXX.XXX.192/26 table 125
post-up /sbin/ip route add default via 5.XXX.XXX.126 dev eth0.2674 table 125
post-up /sbin/ip rule add from 5.XXX.XXX.64/26 table 125

post-down /sbin/ip route del default 176.XXX.XXX.254 dev eth0.2673 table 125
post-down /sbin/ip rule del from 176.XXX.XXX.192/26 table 125
post-down /sbin/ip route del default 5.XXX.XXX.126 dev eth0.2674 table 125
post-down /sbin/ip rule del from 5.XXX.XXX.64/26 table 125

Also on /etc/sysctl.conf

net.ipv4.conf.default.proxy_arp = 1
net.ipv4.conf.eth0/2673.proxy_arp = 1
net.ipv4.conf.eth0/2674.proxy_arp = 1

Also on etc/network/if-up.d/static-routes for static route to NAS

 #!/bin/sh
/sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 5.XXX.XXX.254 #eth0 OR vmbr0

    Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
5.135.XXX.112    0.0.0.0         255.255.255.240 U     0      0        0 vmbr10
5.135.XXX.80     0.0.0.0         255.255.255.240 U     0      0        0 eth0.2674
176.31.XXX.192   0.0.0.0         255.255.255.240 U     0      0        0 eth0.2673
176.31.XXX.240   0.0.0.0         255.255.255.240 U     0      0        0 vmbr11
5.39.XXX.0       0.0.0.0         255.255.255.0   U     0      0        0 vmbr0
10.0.0.0        5.39.XXX.254     255.0.0.0       UG    0      0        0 vmbr0
0.0.0.0         176.31.XXX.254   0.0.0.0         UG    0      0        0 vmbr11
0.0.0.0         5.135.XXX.126    0.0.0.0         UG    0      0        0 vmbr10
0.0.0.0         5.39.XXX.254     0.0.0.0         UG    0      0        0 vmbr0

Preciate help for this question. I've spent many hours on this question without finding correct output. It works but not as expected.

abkrim
  • 3,512
  • 7
  • 43
  • 69

0 Answers0