Re: Route tables
From: P Gentry (rdgentry1_at_cablelynx.com)
Date: 02/05/04
- Next message: Cameron Kerr: "Re: Probl?me sur Iptables"
- Previous message: Ben Measures: "Re: putting linux in another hard drive in PC with XP box"
- In reply to: Scott Dortch: "Re: Route tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Feb 2004 17:28:48 -0800
sdortch@tofg.com (Scott Dortch) wrote in message news:<a94d778a.0402040627.42d02f76@posting.google.com>...
> Thank you for the suggestions.
>
> Our connection to the internet here is over a T1. I have a block of
> IP addresses assigned by my ISP (MCI). I do not have a DHCP server.
> All addresses on the network are assigned. Also, am I to understand
> that the routing table should work if similar to?
>
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
> eth0
>
> I am using the same gateway here as I am using (sucessfully) on my
> windows machines. So I feel like it is working appropriately. The
> gateway does do NAT.
>
> The one question that I do not seem to understand in the setup is the
> hostname. Is this the name of the linux box or something else?
Your original table was OK, I imagine. It must agree with the
ethernet card's configuration (which is usually why the lo interface
shows up in the table -- most ethernet cards will be configured with a
loopback). Having your own host's IP in the table shouldn't hurt.
The H (for host) is just to distinguish the type of destination --
ie., G->gateway (router), H->host (computer), blank is a network
address.
Here is my picture of your net.
Of course, the 192.168.x.x is a "private" address range -- it cannot
be routed on the internet's public routes.
You have a T1 line from MCI. One end plugs into their router, your
end plugs into ???. Are you taking the feed into a local router on
your premises? If so, it really doesn't matter how you set up your
private net. Direct all traffic to your router, if it's not a local
dest, forward it to their router, either your's or their's provides
NATing.
You say MCI assigned you a _range_ of addresses. This makes me
believe that your LAN is using their router directly if these are all
private addresses (theirs is the gateway configured on each host). Is
this correct or did they assign you a # of static, public addresses?
Sometimes ISPs assign you private addresses when they provide other
services at their router, eg., firewall, NATing, sub-netting. In this
case, you will need to make sure _all_ your boxes, both Win and Linux
are using the same netmask, which would have to be provided by the
ISP. Your current tables are using the default netmask --
255.255.255.0 -- which would imply that you are OKed to use all 254
host addresses. ISPs are usually much stingier than that.
Things to check:
-- all hosts configured to use same network
-- all hosts configured to use same netmask
-- all hosts configured to use same gateway
-- you can ping between your local hosts
-- all hosts can ping the gateway
-- if you're responsible for local routing, make sure the router is
configured with proper ACLs
Other than telling you to "copy" the network setup from a working box
(except the address, of course) when configuring each host's ethernet
IP, you may want to look at these:
Linux HowTos at:
http://www.tldp.org/docs.html#howto
especially
Networking-Overview-HOWTO
Adv-Routing-HOWTO
and this:
http://www.netfilter.org/documentation/HOWTO/networking-concepts-HOWTO.html
You may want to review the route and ifconfig commands:
$man route
$man ifconfig
as well as manuals that go with your distro.
hth,
prg
email above disabled
- Next message: Cameron Kerr: "Re: Probl?me sur Iptables"
- Previous message: Ben Measures: "Re: putting linux in another hard drive in PC with XP box"
- In reply to: Scott Dortch: "Re: Route tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|