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 04-01-2011, 06:51 PM   #1
elemental09
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Question routing issue - basic


Hello, I have the following setup:

An ADSL Router (192.168.4.1) which plugs into my server (that has 2 network cards)

Server(eth0-connecting to the ADSL Router) = 192.168.4.2

Server(eth1-connecting to the windows XP PC) = 192.168.4.3

And the windows XP PC = 192.168.4.4

if I delete the entire routing table and add a default route

route add default gw 192.168.4.1 dev eth0 I get an error (I can't remember the error, the PC's
at work) however if I unplug the cable going from the PC to eth1, I can then successfully
add the default route, and I can ping the router, however when I reconnect the cable to the PC and Server... I can still ping the router (from the server) but I cannot ping the PC

if I try and add another route such as:

route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.4.4 it wont let me add the rule


I have a feeling i am doing something really stupid here with the addressing scheme, any suggestions how a preffered way to do this? (keep it simple)


cheers,

Ele.
 
Old 04-01-2011, 07:18 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I'd split the lans to make more sense. Use 10.x.x.x for the xp and eth1
 
Old 04-01-2011, 07:26 PM   #3
elemental09
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Happy to split the routes, silly question though

if I have eth0 on the 192.168.4.0 subnet
and eth1 on the 10.0.0.0 subnet

does linux have its own routing? (how can it route traffic from one subnet to the other)? (silly question I guess considering it lets me put in
static routes" but I was wondering if it also does dynamic routing?

also I tried something similar to your suggestion, I had a 192.168.4.0 subnet and a 192.168.8.0 subnet and it did not fix the issues??? - is there some kind of addressing conflict there? (I will try 10.x.x.x. on Monday)
any other suggestions would be appreciated
 
  


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
Basic routing help Firebar Linux - Networking 4 05-11-2007 07:27 AM
Basic routing problem. stefaandk Linux - Networking 2 06-14-2006 01:43 AM
Basic Routing broadband Linux - Networking 9 09-07-2004 12:44 AM
Basic routing pcrs Linux - Networking 1 10-07-2002 09:25 AM
Basic routing john.martelli Linux - Networking 3 03-25-2002 01:41 AM

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

All times are GMT -5. The time now is 01:48 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