小编AVH*_*AVH的帖子

为什么 /etc/network/interfaces 被忽略?

过去 2 小时我一直在互联网上搜索,但似乎无法找到以下问题的解决方案。

我刚刚在新的 Xubuntu 13.04 中安装了 Xen,为了设置网络,我不得不删除 network_manager。因此,所有网络配置都是通过 /etc/network/interfaces 完成的。至少,这是应该发生的。但是,似乎我输入的内容被忽略了:我的 xenbr0 接口没有分配 IPv4 地址,没有默认网关,也没有设置名称服务器。

这是 /etc/network/interfaces 文件中的内容:

auto lo
iface lo inet loopback

# There are no IP configurations for eth0, it’s all defined under xenbr0:
#auto eth0

# Static configuration
auto xenbr0
iface xenbr0 inet static
  bridge_ports    eth0
  address         192.168.1.200 # the IP address of the Ethernet port
  broadcast       192.168.1.255
  netmask         255.255.255.0
  gateway         192.168.1.1   # the address of the router
  bridge_stp      off           # disable Spanning Tree Protocol - …
Run Code Online (Sandbox Code Playgroud)

networking xen

11
推荐指数
2
解决办法
5万
查看次数

标签 统计

networking ×1

xen ×1