LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2004, 12:34 PM   #1
engnet
Member
 
Registered: May 2003
Posts: 30

Rep: Reputation: 15
Smile Make a router


Hello all, I need some advice and any links to howto's that you may have.

I run a Active Directory network & Internet services for my dept, due to client/workstation increases we are nearly at full allocation of our class c IP range.

I have therefore been allocated a secondary class b 172.30.xxx.xxx range to blend into my network.

I have played with Linux routing services for simple internet>lan type situations, but would like to run Linux routing to bind my new IP ranges into an unrestricted network.

The network will hopefully be like this:

Class C IP Range: 193.xxx.xxx.xxx

Class B IP Range: 172.30.xxx.xxx

Gateway for internet and proxy connections: 193.xxx.xxx.1

All servers will reside on the Class C subnet and client workstations via the lan and wlan will be across the Class B subnet

Any ideas of were to start (other then a bottle of vodka) would be most welcome.

Many Thanks

Chris

Last edited by engnet; 03-16-2004 at 12:41 PM.
 
Old 03-16-2004, 04:14 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The set of commands will be similar to:
Code:
ifconfig eth0 193.xxx.xxx.xxx
ifconfig eth1 172.30.xxx.xxx
route add default gw 193.xxx.xxx.1
How it works? First command assigns an IP to 1st NIC. Second - to the second one (you may have them in reverse order, of course). Two routing table entries should be added - for both networks. Then you need to tell it where to send all that doesn't fit the networks - that's the default gateway (and the third command).
 
Old 03-16-2004, 04:32 PM   #3
engnet
Member
 
Registered: May 2003
Posts: 30

Original Poster
Rep: Reputation: 15
Many thanks

Cheers Mara

I am aware that both will need to be setup via allocated eth devices, my problem is the routing table entries, having never done them before I was wondering were the best is that would have some basic info.

Cheers for your comments.

Chris
 
Old 03-16-2004, 04:45 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
here is some additional info

http://linux-ip.net/html/ch-routing.html

http://www.tldp.org/HOWTO/HOWTO-INDE...tml#NETROUTING

good luck.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Distro To Make PC a Router zflauaus Linux - Distributions 4 11-07-2005 01:34 AM
Can't make a link with my router. pdeman2 Linux - Wireless Networking 8 08-20-2005 04:32 PM
Is it possible to make a pc work as a router/hub funkatron Linux - Hardware 1 07-14-2005 06:25 AM
How to make a router? zaicheke Slackware 15 08-18-2004 11:40 PM
Trying to make a router ocularbob Linux - Networking 1 01-27-2003 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration