Chapter 5 . Getting on the (Windows 2003 server web) Internet 185
Chapter 5 . Getting on the Internet 185 10. Click File.Save to save the changes. 11. Click File.Quit to exit. Now, when you use programs such as ftp, ssh, or other TCP/IP utilities, you can use any host name that is identified on your local computer, exists in your search path domain, or can be resolved from the public Internet DNS servers. (Strictly speaking, you don t have to set up your /etc/hosts file. You could use IP addresses as arguments to TCP/IP commands. But names are easier to work with.) Understanding Your Internet Connection If your Ethernet interface to the Internet is not working, there are ways to check what s happening that will work on many Linux distributions. Use the following procedure to find out how your network interfaces are working: 1. Open a shell (if you are using a graphical interface, open a Terminal window). 2. Type the following right after you boot your computer to verify whether Linux found your card and installed the Ethernet interface properly: dmesg | grep eth | less The dmesg command lists all the messages that were output by Linux at boot time. The grep eth command causes only those lines that contain the word eth to be printed. Here are a couple of examples: eth0: NE2000 Compatible: port 0×300, irq3, hw_addr 00:80:C8:8C:8E:49 eth0: OEM i82557/i82558 10/100 Ethernet at 0xccc0, 00:90:27:4E:67:35, IRQ 17. The first message appeared on my laptop computer with the Netgear card. It shows that a card was found at IRQ3 with a port address of 0×300 and an Ethernet hardware address of 00:80:C8:8C:8E:49. The second example is from my computer with the EtherExpress Pro/100 card. In it, the card is at IRQ 17, the port address is 0xccc0, and the Ethernet address is 00:90:27:4E:67:35. If the eth0 interface is not found, but you know that you have a supported Ethernet card, type lspci -vv | grep -i eth to see if the Ethernet card is detected on the PCI bus. If it doesn t appear, check that your Ethernet card is properly seated in its slot. 3. To view which network interfaces are up and running, type the following: $ /sbin/ifconfig -a eth0 Link encap:Ethernet HWaddr 00:D0:B7:66:9A:46 inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:326100 errors:0 dropped:0 overruns:0 frame:0 TX packets:215931 errors:0 dropped:0 overruns:0 carrier:0 collisions:5919 RX bytes:168378315 (160.5 Mb) TX bytes:40853243 (38.9 Mb) Note
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.