Download What Is Linux?

Transcript
developer.com - Reference
UP BROADCAST RUNNING MTU 1500 Metric 1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
You may have noticed in the output from the command that the broadcast address was set
based on the local machine's IP address. This is used by TCP/IP to access all machines on
the local area network at once. The Message Transfer Unit (MTU) size is usually set to the
maximum value of 1500 (for Ethernet networks).
Next, you need to add an entry to the kernel routing tables that let the kernel know about
the local machine's network address. That lets it send data to other machines on the same
network. The IP address that is used with the route command to do this is not your local
machine's IP address, but that of the network as a whole without the local identifier. To set
the entire local area network at once, the -net option of the route command is used. In the
case of the IP addresses shown previously, the command would be:
route add -net 147.123.20.0
This command adds all the machines on the network identified by the network address
147.123.20 to the kernel's list of accessible machines. If you didn't do it this way, you
would have to manually enter the IP address of each machine on the network. An
alternative method is to use the /etc/networks file which can contain a list of network names
and their IP addresses. If you have an entry in the /etc/networks file for a network called
foobar_net, you could add the entire network to the routing table with the command:
route add foobar_net
Once the route has been added to the kernel routing tables, you can try the Ethernet
interface out. This step assumes, of course, that you are connected to other machines and
that you know the IP address of one of them. If your network isn't installed yet or you are
not connected to another machine that is running TCP/IP, you can't try this step now. To
http://24.19.55.56:8080/temp/lsg30.htm (11 of 34) [3/17/2001 7:49:30 PM]