关闭

OpenVSwitch - Fix network interface settings

该项目收到2 来自天才威客的竞标,平均竞标价格为€38 EUR

为像这样的项目获取免费报价
雇主工作
项目预算
€8 - €30 EUR
全部竞标
2
项目描述

I have two Proxmox server at OVH (SouYouStart). I am trying to implement OpenVSwitch on both servers but OVH has a MAC-IP filter which is causing my headache. Please note that you can't connect directly to my server.

At the moment I am using this configuration which is working.

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address [url removed, login to view]

netmask 255.255.255.0

gateway [url removed, login to view]

post-up /sbin/ip addr add [url removed, login to view] dev eth0 brd + label eth0:0

pre-down /sbin/ip addr del [url removed, login to view] dev eth0 brd + label eth0:0

iface eth0 inet6 static

address 2001:XXXX:2:da1::

netmask 64

post-up /sbin/ip -f inet6 route add 2001:XXXX:2:dff:ff:ff:ff:ff dev eth0

post-up /sbin/ip -f inet6 route add default via 2001:XXXX:2:dff:ff:ff:ff:ff

pre-down /sbin/ip -f inet6 route del 2001:XXXX:2:dff:ff:ff:ff:ff dev eth0

pre-down /sbin/ip -f inet6 route del default via 2001:XXXX:2:dff:ff:ff:ff:ff

# VLan bridge

auto vlan100

iface vlan100 inet manual

vlan-raw-device eth0

# VLan adapter

auto vmbr1

iface vmbr1 inet static

address [url removed, login to view]

netmask 255.255.255.0

bridge_ports vlan100

bridge_stp off

bridge_fd 0

This is my OpenVSwitch configuration but it is not working and I am loosing the connection to my server.

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet manual

post-up ip link set dev eth0 address 00:25:90:7b:CC:BB

ovs_bridge vmbr0

ovs_type OVSPort

auto vmbr0

allow-ovs vmbr0

iface vmbr0 inet static

address [url removed, login to view]

netmask 255.255.255.0

broadcast [url removed, login to view]

post-up /sbin/ip addr add [url removed, login to view] dev vmbr0 brd + label vmbr0:0

pre-down /sbin/ip addr del [url removed, login to view] dev vmbr0 brd + label vmbr0:0

post-up ovs-vsctl set bridge vmbr0 other-config:hwaddr=00:25:90:7b:CC:BB

post-up route add [url removed, login to view] dev vmbr0

post-up route add default gw [url removed, login to view]

pre-down route del [url removed, login to view] dev vmbr0

pre-down route del default gw [url removed, login to view]

ovs_type OVSBridge

ovs_ports eth0 lan0

allow-vmbr0 lan0

iface lan0 inet static

address [url removed, login to view]

netmask 255.255.255.0

ovs_type OVSIntPort

ovs_bridge vmbr0

ovs_options tag=20

需要技能

在寻找赚取金钱的机会?

  • 设定您的预算和时间框架
  • 大致描述您的建议方案
  • 为您的工作领取工资

雇用同样在该项目上竞标的威客

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online