andLinuxのネットワークがおかしくなったときの解決方法(の、1つの可能性)
デスクトップ機に入れたandLinuxは問題なかったんだけど、ノートPCは家のBuffaloの無線LANに接続することがあるので、http://rogoma.net/blog/2008/09/andlinuxwine.htmlを参考にTAPのIPを変更。するとネットがつながらなくなった…
散々調べた結果、どうやら名前解決ができていないことが判明。そしてこれまた散々ググった結果、resolv.confのnameserverを10.0.2.3にするとうまくいきました。slirp manualによると、このアドレスはslirpのDNSのエイリアスらしいです。
あとやったこと。なぜかdefaultが2つあるのでTAPの方を消す。
# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.2.0 * 255.255.255.0 U 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth1 default windows-host 0.0.0.0 UG 100 0 0 eth1 default 10.0.2.2 0.0.0.0 UG 100 0 0 eth0 # route del default gw windows-host eth1 # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.2.0 * 255.255.255.0 U 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth1 default 10.0.2.2 0.0.0.0 UG 100 0 0 eth0