LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-16-2007, 01:39 AM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Configuring Linux Router


- hey guys im trying to connect 2 networks with different segments for file sharing. Is this possible if i configure our UBUNTU box to act as a router and plug these 2 networks on it.
 
Old 02-16-2007, 02:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah sure just check out some of the threads at the bottom of this page or google for ip_forward
 
Old 02-16-2007, 03:00 AM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
- how do you test the linux box router if its working.
- our ubuntu has 2 NICs and has these configurations.

NIC1:
IP = 192.168.1.1
Netmask = 255.255.255.0
Def Gateway = 192.168.1.1

NIC2:
IP = 172.16.0.1
Netmask = 255.255.0.0
Def Gateway = 172.16.0.1


- i check its routing table after adding them, and this is the output.
Quote:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
172.16.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
default 172.16.0.1 0.0.0.0 UG 0 0 0 eth1
 
Old 02-16-2007, 03:09 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
routing between to local subents won't affect the routing tables, as both subnets are already known to the router. how do you test it? you try to use it as a router.
 
Old 02-16-2007, 03:44 AM   #5
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
Quote:
how do you test it? you try to use it as a router.
- actually this is what i want to know...how to test it
 
Old 02-16-2007, 04:02 AM   #6
kwaslee
LQ Newbie
 
Registered: Feb 2007
Posts: 19

Rep: Reputation: 0
I have question regarding my linux server, i have been installing linux server whitebox and i have been using it for some time unfortunate onday when i restarted it reboots and at a certain point it stuck at
E 100;ethernet 0,
E 100-watchdog;link,100mb,fullduplex.
setting default font (LATA RCYRHEB-SUN16):-

can sombody help me to diagnose this problem please
 
Old 02-16-2007, 04:08 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by SBN
- actually this is what i want to know...how to test it
erm, little lost now.. if you mean how do you make a client use it as a router, then that's down to the client, not the router. if it's linux still add a route such as "route add 192.168.10.0 255.255.255.0 gw 172.16.1.2" and go nuts.
 
Old 02-16-2007, 04:08 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by kwaslee
I have question regarding my linux server, i have been installing linux server whitebox and i have been using it for some time unfortunate onday when i restarted it reboots and at a certain point it stuck at
E 100;ethernet 0,
E 100-watchdog;link,100mb,fullduplex.
setting default font (LATA RCYRHEB-SUN16):-

can sombody help me to diagnose this problem please
no, don't hijack other peoples threads.
 
Old 02-16-2007, 08:27 PM   #9
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
-thanks a lot
 
  


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
Configuring Linux As Router davysouthernboy Linux - Networking 3 05-19-2006 01:06 AM
Configuring linux as a router using a pci adsl card tandyuk Linux - Newbie 2 05-09-2005 03:16 PM
Help configuring linux server as router/gateway ldare Linux - Networking 2 04-21-2003 03:19 PM
I need help configuring Linux behind router ?? neilmon2 Linux - General 7 10-16-2002 04:26 PM

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

All times are GMT -5. The time now is 02:57 PM.

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