LinuxQuestions.org
Register a domain and help support LQ
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-30-2013, 08:58 PM   #1
DarioGi
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
Unable to connect 2 systems


Hello everyone, I don't have much knowledge in routing and I've reached a problem that I'm unable to solve. Here is a quick diagram that I've made:http://imageshack.us/photo/my-images/37/netv2.png/


My goal is to enable System A to talk to System D. As of now, the System A is able to ping Linux Machine 1 and System B, but is unable to even ping Linux Machine 2.

System B is able to ping System A, Linux Machine 1, Linux Machine 2 and System C. In fact, Systems B and C are able to communicate just fine.

My question would be, what do I need to do in order to enable System A to talk to System D(and vice versa).

Things I've tried:
  • Static routes in Linux Machine 1/2
  • Static Routes in switch

None of these things seem to work, any help would be greatly appreciated!
 
Old 05-01-2013, 10:55 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,563

Rep: Reputation: 482Reputation: 482Reputation: 482Reputation: 482Reputation: 482
Check your output from tracert and see how far your packets are getting.
 
Old 05-30-2013, 06:26 PM   #3
MikeDeltaBrown
Member
 
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 53

Rep: Reputation: 6
The interfaces attached to the switch do not share a network address (assuming class-c [/24] networks and eth0 is attached to the switch). So add an alias to each LM:

On LM-1:
ifconfig eth0:1 172.31.254.1 netmask 255.255.255.252 up

On LM-2:
ifconfig eth0:1 172.31.254.2 netmask 255.255.255.252 up

Configure a dynamic routing protocol such as RIP or OSPF for each LM to learn the routes to the other's subnets

-- or -- assign static routes:

On LM-1:
route add -net 172.10.2.0 netmask 255.255.255.0 gw 172.31.254.2
route add -net 172.11.2.0 netmask 255.255.255.0 gw 172.31.254.2

On LM-2:
route add -net 172.10.1.0 netmask 255.255.255.0 gw 172.31.254.1
route add -net 172.11.1.0 netmask 255.255.255.0 gw 172.31.254.1

That should work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network: Able to connect to encrypted, but unable to connect to open. WalterGL Linux - Newbie 1 09-16-2009 05:17 PM
how to connect two linux systems farooqnasim Linux - Networking 3 06-04-2009 05:38 PM
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 05:22 AM
how do i connect my blue tooth headset to Ubuntu, it is unable to connect. salfuser Linux - Hardware 2 01-12-2009 11:28 AM
Unable to access operating systems quantum_qwerty Linux - Newbie 6 06-05-2004 01:18 AM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration