ARTICLE

Ask Dr. UN*X Continued
Contributed by Brian Wilson in Network on 2006-03-13 16:04:08
Page 3 of 8

Where do the IP addresses come from?

You used to have to set up ip addresses, netmasks, gateways, and name resolvers all manually. Refer to any basic networking text to learn more about this aspect.

These days DHCP (Dynamic Host Control Protocol) is very popular. Let's assume that a DHCP server (typically inside your Cable/DSL modem) and issues all the network information required. The network engineer at your upstream provider has configured the modem for you so that it will work with their network.

With a typical home setup, you are assigned just one IP address and if you have more than one computer at home, you have to play games (NAT or MASQUERADE) to share the one IP address. A typical small business connection might have 5 IP addresses assigned statically so that you can publish them; a sixth address in the range lets you communicate with the router in your DSL modem.

For a 6 address block, you'd be assigned a netmask with 29 bits (255.255.255.248 in "dotted decimal" format). You don't need to know what a netmask is right now, but it divides the address into two parts, network and local. In the postcard analogy, a p.o. box number would be the local part of your address.

Let's say your first DSL provider gives you the address range from 63.63.63.1 to 63.63.63.6; your computer is at 63.63.63.1; your DSL router is at 63.63.63.6; and the remaining 4 addresses are currently unused.



Article Index
Ask Dr. UN*X Continued
Just what is routing?
Where do the IP addresses come from?
Revealing your routing tables
Adding the second line
How can I have two default routes?
Making the new commands sticky
Further resources
 
Discussion(s)
Great intro - but I've having an annoyi
Written by brighton36 on 2006-03-18 00:52:00
I've been using a multipath routing setup for my office for a while now. SO far, its been largely ok. The problem is that with some types of traffic my connections that should be established, oddly cease to be . SSH and IM are the two biggies. Its very frustrating. My guess is that the route tables are cleaned up, and the existing , established connection is attempted to connect out the alternate line that it was previously set at. Does anyone have this problem? Any ideas as to how to fix this? I've seen a number of other people ask in different forums, but no great solutions have been forthcoming.
Discuss! Reply!

thanks!
Written by kris on 2006-04-07 18:16:47
I just want to thank you people for writing so comprehensive and knowledgeable. All the other guides have been great; will read this one in a bit.

thanks for the effort! :)
Discuss! Reply!

good, simple info
Written by richard on 2006-03-27 20:36:27
Good to see a simple exlanation of what's going on. I'm setting up two ADSL connections to service my network through a router running FC4. I've got the routes part working (i hope) but I'm wondering how I can firewall both connections. I get the second ADSL modem today so I can see if the routing is working but I would appreciate some help on what I need to do re the firewall. I'm currently using firewall=iptables which is working fine but only has settings for one external and one internal interface. Can I set up a second external interface in the one script and duplicate the rules as required or should I set up a second firewall script? Any tips welcome
Discuss! Reply!