LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-22-2013, 03:19 PM   #1
kalistibot
LQ Newbie
 
Registered: Sep 2013
Location: Austin, TX
Distribution: dreamlinux
Posts: 4

Rep: Reputation: Disabled
two linux boxes have the same IP with dreamlinux SOHO network


I've recently installed dreamlinux on two machines and connected them to a router which is also connected to a windows box. The router connects to a cable modem which connects to the internet.

With linux installation A, the network was active and the internet came online without any extra configuration.

The second box (B) had a bad onboard nic. I bought a pci nic and have installed it. The lights on the nic and the router indicate connectivity. I can ping box A and the router from this box.

However, Box B does not seem to be able to receive data from the network. I cannot ping it or get web pages. I cannot ping the internet.

While trying to troubleshoot this (I am a newb) I discovered using ifconfig that box A and box B have the same IP assigned. I used ifconfig to change the IP on B, verify the change, and then invoked ifdown and ifup to restart the ethernet device. When I bring it back up the IP change has been reversed and again I have two machines with the same IP.

I have used ifconfig to change the IP on box B and then manually add the IP to the router. I can then ping this machine from the router and box A, but I still cannot get web pages from the internet.

Also, my router cannot ping box A, which seems to have no problem getting webpages. I don't understand this.

My questions are:

1. Why does ifup change the ip to an ip that is assigned to another host? I note that the same thing happens at reboot. I think there might be a script or file in /etc?

Dreamlinux does not have the directory /etc/sys-config

2. Why, when I manually change the configurations of the network to allow connections to host B from other machines on the network ,does it still not see the internet? I cannot ping 8.8.8.8 "connect: Network is not reachable".

3. Am I on the right path to getting box B on the network?

4. Why does box A demonstrate network connectivity, but is not pingable from the router?


Thank you for reading this and any help you might offer.

-Aaron
 
Old 09-22-2013, 04:27 PM   #2
kalistibot
LQ Newbie
 
Registered: Sep 2013
Location: Austin, TX
Distribution: dreamlinux
Posts: 4

Original Poster
Rep: Reputation: Disabled
also:

I should note that the dreamlinux distro is debian based. I'm reviewing the debian networking docs.
 
Old 09-22-2013, 04:45 PM   #3
kalistibot
LQ Newbie
 
Registered: Sep 2013
Location: Austin, TX
Distribution: dreamlinux
Posts: 4

Original Poster
Rep: Reputation: Disabled
question 1 is solved.

I edited /etc/network/interfaces and the assigned IP works.

It does not change after reboot.
I can ping box B from the router and from box A.

I still cannot connect to the WAN from box B.

What is broken?
 
Old 09-23-2013, 06:20 AM   #4
cospengle
Member
 
Registered: Feb 2008
Location: Armidale, NSW, Australia
Distribution: Fedora 8
Posts: 32

Rep: Reputation: 6
Sounds like you may have an incorrect default gateway address.

What is the output of the route command on Box A and Box B? Do they both show the same default route?

If not, then you need to change the default route. Us a command similar to this: ip route add default via <IP of gateway>

If Box B already has a default route, you might want to use: ip route replace default via <IP of gateway> (I've never used this before, but you don't want to add a second route if there is already a wrong one there).
 
Old 09-23-2013, 06:44 PM   #5
kalistibot
LQ Newbie
 
Registered: Sep 2013
Location: Austin, TX
Distribution: dreamlinux
Posts: 4

Original Poster
Rep: Reputation: Disabled
Solved!

Thank you cospengle! That was exactly it. I used route add default gw IP and immediately the WAN is connected.

I really appreciate your help. I was adrift at sea.

Cheers!
-Aaron
 
  


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
Lost network only between two linux boxes tboydva Linux - Networking 2 10-26-2010 06:23 PM
how to check linux boxes in network? mokku Linux - Networking 2 08-09-2007 04:38 PM
creating a crossover network with 2 linux boxes leaveone Linux - Networking 9 05-10-2007 07:07 PM
2 linux boxes unable to ping each other in a network lqsukumar Linux - Networking 4 07-21-2005 06:36 PM
sharing network files between Linux boxes linuxhippy Slackware 23 04-22-2005 08:03 PM

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

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