Quote:
Originally posted by harikari
nope... nada.
im wishing i actually knew what the route table was... i assume its important though.
dont laugh, i'm learning! lol
|
The routing table is what you computer uses when it needs to know where to send data over the network. So if your routing table is empty, your computer has no idea where to send the data.
To set up your computer for networking, you really just need to use 2 commands most of the time-- ifconfig and route.
The ifconfig command lets you configure your network interface with an IP address. Your ipconfig output doesn't show an IP address, so that's a problem right there.
Code:
# ifconfig eth0 <ip address>
will set the IP address for your NIC, and it will oftentimes set up a route for your network as well. You need to pick an IP address that is on your network, though! You can't just pick any old address out of a hat!
The route command lets you add and delete routing information. On a simple home network, you will probably just want to add a route that tells your PC to send all packets to a default gateway. This command will do it:
Code:
# route add -net 0.0.0.0 netmask 0.0.0.0 gw <gateway ip address>
Note that if the ifconfig command didn't set up your network route, this route won't work since it depends on knowing how to reach other NICs on the same network. You would have to add that route manually with something like:
Code:
# route add -net <network quad> netmask <network mask> dev eth0
That says, "all packets destined for the network given should be sent to the NIC represented by eth0."