Xen3.2 (Ubuntu8)でネットワークへ微妙に繋がらない.
先日,何のトラブルも無かったと書いたUbuntu8なXen環境.しかし,そうは問屋は卸さなかった.
step1: 一切繋がらない
まず,
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 peth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 peth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 peth0
うむむ? peth0?
/etc/network/interfaces を見たら,loしか記述が無い.ふむー?
eth0 を書き加えるか….
step2: 外に出て行けない.
外からpingすると応答があり,ssh で入れる.しかし,apt-get update などすると,外に出て行けない様子.LAN内へのpingもダメっぽい.
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 peth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 peth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0
うむむむむ?
step3: 解決?
$ cat /etc/network/interfaces auto lo eth0 peth0 iface lo inet loopback iface eth0 inet dhcp iface peth0 inet static
というふうに,peth0 を加えて,解決.
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0
真っ当っぽい感じ.
ワタクシ的に残された謎.
そもそも,なんで interfaces に eth0やpeth0が入っていなかったのか,入っていなかったときに,なぜpeth0 に対して dhclient が起動したのかは,私の理解を超える.NetworkManager が何かしでかしているのか? という気がしなくもないけれど,肝心のNetworkManagerに関する知識を,私は持ち合わせていない….