At 11:20 2000-04-27 -0500, Zaigui Wang wrote:
>I also thought this is a routing problem. I am not in front of my machine
>right now. So have no idea what the routing table willl be like. 

On a network with dialup access to the Internet, a machine with one LAN
card show have two lines in the routing table:

  1. A route to the local LAN. (starts with the network number)
  2. A route to the loopback device. (starts with 127.0.0.0)

When a dialup connection is active, there should also be a default route
that points to the ppp0 device (line starts with 0.0.0.0).

Your home network should be all in a single subnet. Most people use
192.168.0.*.  or 192.168.0.*. Going with the first option, your routing
table would look like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0    46864 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     3380 lo

When ppp0 is active, there will be a third line that looks something like
this:

0.0.0.0         nnn.nnn.nnn.nnn 0.0.0.0         U     0      0     1234  ppp0

The second column is the IP address assigned to your ppp0 interface by your
ISP.

>How do you add route anyway? I have only two machines on the network at
>this moment.

If the route is for your local network, you should use netcfg or linuxconf.
you can do this while assigning the IP address and netmask for your LAN
card.

 Tony
 --
 Anthony E. Greene <[EMAIL PROTECTED]>
 Homepage and PGP Key: <http://www.pobox.com/~agreene/>
 If it's too good to be true, it's probably Linux


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to