
我是 Ubuntu 14.10 的新手,我最近安裝了 Ubuntu 14.10 並配置了
乙太網路接口,如下所示,在/etc/network/interfaces
文件中使用靜態 IP。我還在/etc/reslov.conf
文件中新增了 DNS 伺服器。
但是當我用谷歌搜尋一些東西時,它給出了類似“找不到伺服器,請檢查您的網路連接」。
/etc/network/interfaces 中的乙太網路介面配置
auto eth0
iface eth0 inet static
address 10.X.X.X
gateway 10.X.X.X
netmask 255.X.X.X
auto eth1
iface eth1 inet static
address 192.X.X.X
gateway 192.X.X.X
netmask 255.X.X.X
/etc/resolv.conf 中的 DNS 伺服器配置
nameserver 10.X.X.X
答案1
Finally all is good. Actually i am using two interface card,
previously i configured these two in wrong way, i did ones setting to others and
others setting to ones. When i exchange the cables for these two interfaces, i found that it is working fine.
謝謝寄至 @begueradj、@Thushi、@user3386914 徵求意見