Книга: 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.
- Forced writes - палка о двух концах
- Forced Writes
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Chapter 15. Graphical User Interfaces for Iptables
- Appendix E. Other resources and links
- What NAT is used for and basic terms and expressions
- Example NAT machine in theory
- Information request
- SCTP Generic header format
- The final stage of our NAT machine