
查看了有關 eth0 和 wlan0 的其他配置問答。似乎沒有什麼建議有效。在桌上型電腦上執行 14.04 Lubuntu,在客戶端筆記型電腦上執行 puppyLinux。
frank@HP-Pavilion:~$ ifconfig
"eth0 Link encap:Ethernet HWaddr: 00:18:f3:31:19:d6
UP BROADCAST MULTICAST MTU:1500 METRIC:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5687 errors:0 dropped:0 overruns:0 frame:0
TX packets:5687 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:531647 (531.6 KB) TX bytes:531647 (531.6 KB)
wlan0 Link encap:Ethernet HWaddr e0:91:f5:53:47:23
inet addr:192.168.1.66 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2602:306:31b6:dbd0:e291:f5ff:fe53:4723/64 Scope:Global
inet6 addr: 2602:306:31b6:dbd0:389a:6c14:8305:81ca/64 Scope:Global
inet6 addr: fe80::e291:f5ff:fe53:4723/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23561 errors:0 dropped:0 overruns:0 frame:0
TX packets:20483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10010457 (10.0 MB) TX bytes:3313915 (3.3 MB)
"
請注意,儘管 eth0 介面具有硬體位址,但沒有 IP 位址。
在客戶端 PC puppypc 上設定:
Puppy_Network_Setup
Enter you static IP parameters:
- If you are using a router check your router’s
status page to get these values.
- If you connect directly to your modem you will
need to get these values from your ISP.
Please enter all addresses in dotted-quad decimal
format (xxx.xxx.xxx.xxx). other formats will
not be recognized.
Static IP parameters
IP address: 192.168.1.72
Net Mask: 255.255.255.0
Gateway: 192.168.1.254
DNS parameters
Primary: 192.168.1.254
Secondary: 8.8.8.8
節點 puppypc 上的乙太網路介面無法連接到 Internet。如果我將靜態 IP 位址 192.168.1.70 新增至桌面 HP-Pavilion 上的 eth0,我會收到「無法解析主機:HP-Pavilion」的訊息。 wlan0 和 eth0 之間似乎存在衝突。
Lubuntu 14.04.3 的 eth0 和 wlan0 應該如何配置才能允許電腦之間進行本地通訊以及無線連接到互聯網?
將客戶端電腦更改為運行 Lubuntu 14.04.3 的 HPMini。將乙太網路線連接到桌面。客戶端電腦啟動時顯示乙太網路而不是無線介面。桌面 ifconfig eth0 顯示 inet:10.42.0.1,Bcast:10.42.0.255。 HPMini ifconfig eth0 顯示 inet:10.42.0.57,Bcast:10.42.0.255。 DNS 伺服器 127.0.1.1 和搜尋網域 attlocal.net。
問題可以撤回。