【问题标题】:Xen Dom0 and DomU in different subnets on Ubuntu/DebianUbuntu/Debian 上不同子网中的 Xen Dom0 和 DomU
【发布时间】:2012-02-11 16:02:47
【问题描述】:

ISP 给了我两个 IP 配置:

10.0.1.5 / 255.255.255.0 / gw 10.0.1.1
10.0.9.8 / 255.255.255.0 / gw 10.0.9.1

我已将 Dom0 设置为 10.0.1.5 与桥接器。

有配置:

auto lo
iface lo inet loopback
auto eth0
auto br0

iface br0 inet static
    address 10.0.1.5
    netmask 255.255.255.0
    gateway 10.0.1.1
    bridge_ports eth0
    bridge_stp no

虚拟机配置:

...
    vif = [ 'type=ioemu, bridge=br0' ]
...

因此,当我启动并将我的虚拟机配置为 10.0.9.8 - 无法从虚拟机访问网络

我知道 10.0.9.1 直接通过交换机与我的 10.0.1.5 连接。

有什么想法吗?

【问题讨论】:

    标签: networking ubuntu debian xen subnet


    【解决方案1】:

    以下是否可行:

    ip route add default via 10.0.1.5
    

    点赞在:https://github.com/mcclurmc/devstack/blob/xcp-toolstack/tools/xcp-toolstack/build_domU.sh

    【讨论】:

      猜你喜欢
      • 2015-06-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-05
      • 1970-01-01
      相关资源
      最近更新 更多