Книга: Fedora™ Unleashed, 2008 edition

Checking for the Availability of the Loopback Interface

Checking for the Availability of the Loopback Interface

You should not normally have to manually create a loopback interface because Fedora creates one automatically for you during installation. To check that one is set up, you can use the ifconfig command while working as root to show something similar to this:

# ifconfig
lo Link encap:Local Loopback
   inet addr:127.0.0.1 Mask:255.0.0.0
   UP LOOPBACK RUNNING MTU:16436 Metric:1
   RX packets:12 errors:0 dropped:0 overruns:0 frame:0
   TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:760 (760.0 b) TX bytes:760 (760.0 b)

What you see in this example is evidence that the loopback interface is present and active. It shows that the inet addr is the IP number assigned to the localhost, typically 127.0.0.1 along with the broadcast mask of 255.255.255.0, and that there has been little activity on this interface (RX = receive and TX = transmit). If your output does not look like the preceding one, you must hand-configure the localhost interface after you finish the rest of this section.

Оглавление книги


Генерация: 1.117. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз