昨晩、私は自分のコンピューターで作業していました。参考までに、私は i3 を使用していますが、XFCE4 は不要だと感じたのでアンインストールすることにしました。翌朝、コンピューターの電源を入れましたが、有線接続はありませんでした。しかし、Windows パーティションを起動したところ、そこでは動作していることがわかりました。オンラインで調べましたが、答えを見つけるのに苦労しました。
これは sudo ifconfig の出力です:
archie@debian:~$ sudo ifconfig
[sudo] password for archie:
eth0 Link encap:Ethernet HWaddr 40:8d:5c:58:fa:92
inet6 addr: fe80::428d:5cff:fe58:fa92/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2061 errors:0 dropped:54 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:307371 (300.1 KiB) TX bytes:4856 (4.7 KiB)
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:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5306 (5.1 KiB) TX bytes:5306 (5.1 KiB)
これは私の/etc/network/interfacesです
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface eth0 inet6 auto
何か助けていただければ幸いです
答え1
下に をauto lo
追加しますauto eth0
。そして、その下に を追加します。alow-hotplug eth0
最終的な /etc/network/interfaces は次のようになります。
auto lo
auto eth0
allow-hotplug eth0
iface eth0 inet6 auto
念のため再起動してください。
man interfaces
詳細については、こちらをご覧ください:)