The kernel and other network utilities
read this to understand how this computer is connected to others.
TIP
You can also access and edit the Hosts file in YaST. Go to Network Services, then
Hosts. Add, edit, or delete hosts here.
When you open this file, you will see a comment that describes the file and the syntax
you should follow: IP-Address [tab] Full-Qualified-Hostname [tab] Short-Hostname.
Starting with a localhost Interface 249
12
If localhost is not already there, you may add this line:
127.0.0.1 localhost
You can leave the Short-Hostname blank. Save and exit. Reopen your Root console and
use ifconfig and route to create the interface:
ifconfig lo 127.0.0.1
This puts the localhost interface in memory, as with all other Linux network interfaces,
like an Ethernet (eth0) or dial-up (ppp0) interface.
route add 127.0.0.1 lo
This adds the IP address to a routing table the kernel??™s networking code uses to track
routes to different addresses.
Test the new connection by running ifconfig again.
You should now be able to run your own loopback test by trying to ping localhost.
Pages:
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548