LinuxQuestions.org
Help answer threads with 0 replies.
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-04-2006, 01:06 AM   #1
pcy
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
Basic routing problem help please...


------
MN | (eth0=192.168.1.3) -----------| gw 192.168.1.10
------ |
| |
(switch) |
| |
------ (eth0=192.168.1.2) | gw 192.168.1.10
HA | |
------ (eth1=192.168.1.5) | gw 192.168.1.10
| |
| |
-------- (eth0=192.168.1.10) | gw 0.0.0.0
pc router| |
-------- (eth1=192.168.2.20) | gw 0.0.0.0
| |
| |
------ (eth1=192.168.2.5) | gw 192.168.2.20
FA | |
------ (eth0=192.168.2.1) | gw 192.168.2.20
| |
(switch) |
| |
------- |
MN moves <--------------------------|
-------

MN:
IP address: 192.168.1.3
netmask: 255.255.255.0
network: 192.168.1.0
gateway: 192.168.1.10

HA:
IP address: 192.168.1.2 (eth0)
IP address: 192.168.1.5 (eth1)
netmask: 255.255.255.0
network: 192.168.1.0
gateway: 192.168.1.10

PC router:
IP address: 192.168.1.10 (eth0)
IP address: 192.168.2.20 (eth1)
netmask: 255.255.255.0
network: 192.168.1.0
network: 192.168.2.0
gateway: 0.0.0.0

FA:
IP address: 192.168.2.1 (eth0)
IP address: 192.168.2.5 (eth1)
netmask: 255.255.255.0
network: 192.168.2.0
gateway: 192.168.1.10

The result is that FA, PC router and HA can ping each other... but the MN can not ping to HA...

i can only successfully ping the MN to HA when I switch eth0 "ifup the eth0"...in this case, the HA is failed and can not connect the PC router and FA...

How can I make it so that the MN can also connect to MN and PC router without switch the eth? Can someone tell me the problem?
 
Old 04-05-2006, 01:57 PM   #2
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
I noticed one thing:

HA and FA are routers as well, but the interfaces on those computers belong to the same subnet. Any packets for that subnet might go out one port or the other. (And according to Murphy it's always the wrong one).

Each interface must belong to another subnet.

If MN pings HA, HA might react but sends the reply via the wrong interface (if both interfaces are up). If you shut one interface down, only one interface remains responsible for that subnet.

Try creating a third subnet for MN and configure HA accordingly.
 
Old 04-06-2006, 04:50 AM   #3
pcy
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks vimico,

I have a project using dynamic-0.8.1 software to implement Mobile IP testbed.
After discuss with my supervisor, i have to setup two different network (subnet) which is separated by a PC router, to foreign network and home network. As you said, both FA and HA is act as router as well...

since I'm just have basic knowledge for networking, can you advise me how to handle this condition.. I have to proof that Mobile IP implementation where the MN can stay the connection with IP address after move the foreign network... I think I have to use two different subnet to apply it...

Can you tell me if you have any suggestion for it? Can I make it without third network? Or it is required for third subnet? Or there is other way to make the HA and FA not to be router?? would it possible?

How about the connection like this as below (wired network)?

|MN|------|Hub|------|HA|
|------------|
|------------|
|------------| (192.168.1.10)
|-------|pc router|
|------------| (192.168.2.20)
v------------|
-------------|
|MN|------|Hub|-----|FA|

before:
|MN|----------
--| -----------|
--| -----------|
|switch|-------|
--|------------|
--|------------|
|HA|-----------|
--|------------|
--|.1.10-------|
|router|-------|
--|.2.20-------|
--|------------|
|FA|-----------|
--|------------|
--|------------|
|swtich|-------|
--|------------|
--|------------|
MN move<----

Last edited by pcy; 04-06-2006 at 05:10 AM.
 
Old 04-06-2006, 05:24 AM   #4
pcy
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Can I ask one more thing? How to send or copy file from PcA to PcB in Linux RH if two pcs are connected? Just like copy and transfer file in Window by share document.. For Linux, how it work?
 
Old 04-06-2006, 05:45 AM   #5
tertius
LQ Newbie
 
Registered: Mar 2006
Location: Johannesburg ,South Africa
Distribution: Linux Redhat
Posts: 25

Rep: Reputation: 15
hi,on your second question, in text mode you can use scp to copy or send files across a linux network.. Say PcA = 192.168.1.1 and PcB is 192.168.1.2, want to send a file called xxx from /home on pcA to pcb. Then go to pcA and type :

scp /home/xxx root@192.168.1.2:/home/xxx

for file from pcB to a and you are on pcA :

scp root@192.168.1.2:/home/xxx /home/xxx


Hope it helps
 
Old 04-07-2006, 05:25 PM   #6
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
Quote:
Originally Posted by pcy
I have a project using dynamic-0.8.1 software to implement Mobile IP testbed.
I'm not sure what you want to achieve. I presume you want to move MN from one net to the other without changing its IP address. This will not be possible.

If you have multiple ethernet cards, you need different subnets, so that the router can decide, if a given data packets has to go to card A or card B. If the IP address of MN is in the subnet of card A, packets for MN will be routed via that card (and not via card B). If you disconnect MN, and connect if directly (or indirectly via a switch) to card B, packets for MN will still be routed via card A and MN will never hear them.

If you connect MN to card B, MN must have an IP address from the subnet of card B, otherwise communication will not work.

Hint: Usually DHCP servers are used to dynamically assign IP addresses.
 
  


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 on Mandrake 10 alexj@abstract Linux - Networking 3 09-18-2004 07:57 PM
Basic Routing broadband Linux - Networking 9 09-07-2004 12:44 AM
Basic routing question palanisaravanan Linux - Networking 5 03-22-2004 10:55 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 08:24 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