我即将使用 Wimax 调制解调器并通过以太网电缆获得互联网连接,但是当 ISP 安装程序(他来到我们家,对 Linux 不太熟悉)即将进行配置时,他无法做到这一点。
所以我尝试了这些东西:
1)
输入:
ethtool eth0
输出:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: no
2)
输入:
ethtool ethX
输出:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
3)
输入:
sudo rfkill list all
输出:
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: yes
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: yes
4)
输入:
ifconfig -a
输出:
eth0 Link encap:Ethernet HWaddr b8:88:e3:88:62:3b
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:1283 errors:0 dropped:0 overruns:0 frame:0
TX packets:1283 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:183079 (183.0 KB) TX bytes:183079 (183.0 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.13.147.136 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:6478 errors:0 dropped:0 overruns:0 frame:0
TX packets:7867 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2817719 (2.8 MB) TX bytes:967126 (967.1 KB)
wlan0 Link encap:Ethernet HWaddr 08:3e:8e:16:60:2b
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)
Interrupt:17
我现在如何启用局域网并获得互联网连接?我正在使用联想 G470。它显然已经坏了,从那时起我就无法使用 wifi,所以我现在正在尝试使用有线电缆。这已经是一个需要通过技术手段解决的硬件问题了吗?
答案1
使用 打开终端CtrlAltT。
首先使用()备份此文件sudo cp /etc/network/interfaces /etc/network/interfaces.old
,然后编辑它:
sudo nano /etc/network/interfaces
将以下内容粘贴到文件中,删除其他所有内容
# The loopback network interface
auto lo
iface lo inet loopback
保存并退出文件,然后尝试以下命令。
sudo rfkill list all
sudo rfkill unblock all
sudo /etc/init.d/networking restart
sudo ip link set dev eth0 down
sudo stop network-manager
sudo start network-manager