我的機器上的 localhost 已關閉。
我的描述如下/etc/network/interfaces
:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
但是當我跑路線時
route -n" with wireless off
我得到:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
我怎麼才能打開它?
答案1
您可以使用ifconfig
它來檢查網路介面(例如,本機主機介面(lo))是否啟用。
您可以使用sudo ifconfig lo up
啟用本機主機介面。