LinuxQuestions.org
Review your favorite Linux distribution.
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 08-31-2010, 12:11 PM   #1
ashkan720
LQ Newbie
 
Registered: Jun 2010
Posts: 14

Rep: Reputation: 0
Exclamation Two eth problem!


hi all

I have very important and very complicated problem!
I have a very small network (5 computer) for cluster.
One of theme is master host and has 2 eth (eth0 and eth1).
eth0 is connected to local cluster lan switch and eth1 is connected to
internet, eth1 should have a valid IP address.

cluster is okey and work good, but when I assign ip address to eth1, both of theme don't work. cluster goes down and i cant use internet.
ping my cluster node and 4.2.2.4 say the eth not work.

what is my problem. and how can I troubleshoot it?
it's really urgent and important!

tanx all
 
Old 08-31-2010, 12:54 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Presumably eth0 and eth1 are in different networks so they need different routes (gateways). You probably need to add a route entry using "route add" command but without more details no one can tell you exactly:

1) What Linux distro is it? (e.g. Ubuntu, Debian, RHEL, CentOS, Fedora, Slackware)
2) What version of the distro is it (e.g. RHEL 5, Suse 11).
3) What is the output of "netstat -rn" and "netstat -r"?
4) What is the output of "ifconfig eth0" and "ifconfig eth1"?
 
Old 08-31-2010, 01:19 PM   #3
ashkan720
LQ Newbie
 
Registered: Jun 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Smile more info about eth

distro is debian 5
eth0 configuration is: (lan)
ip 192.168.2.1
mask: 255.255.255.0
gateway: 192.168.2.1
dns is empty or 192.168.2.1 (no need to dns in local lan)

eth1: (internet for remote access and ssh)
ip: a valid ip
mask: 255.255.255.0
dns and gateway come from a dhcp or set manually.

i have no access to computers for about 3 days and i did not try netstat for it. (too bad!)

other computer in cluster lan don't need to have internet access. just master should have.

finally i've tried to assign to ip address to eth0 and (eth0:0 and eth0:1) and connect internet to same switch. but not worked!
 
Old 08-31-2010, 01:24 PM   #4
bastl
Member
 
Registered: Sep 2003
Location: Germany/BW
Distribution: My own
Posts: 237

Rep: Reputation: 22
What do you do with a switch?
Is there a sixth computer as a workstation and router?
At the moment you can only connect two computer and the internet.

What it should look like:
- 1 workstation with 2 ethernet cards (w-eth0, w-eth1) (or 5 ethernet cards)
- 1 cluster router (gateway) with minimum 5 ports (r-eth0, r-eth1, r-eth2, r-eth3, r-eth4) or four more cards in the workstation
- 1 internet (dsl) router (gateway)

The w-eth0 is connected to the cluster router r-eth0 and w-eht1 to the internet (router, gateway).
r-eth1..r-eth4 is connected each to one cluster computer.
This are two networks one at w-eth0 (or w-eth2..4, cluster-net) and one at w-eth1 (internet)

Keep in mind that a switch can only connect master to one other port and does block the other ports. It is the same like you are running with the cable of w-eth0 in hand to an other machine put the connector in start the network do networking pull out the connector push it in the next machine do networking and so on.
 
Old 08-31-2010, 01:37 PM   #5
ashkan720
LQ Newbie
 
Registered: Jun 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Smile more details

sorry, I must describe it more detailed before!

I have 5 computer connected to each other trough a 16 ports switch.
One of theme is master and others are execution hosts. master has 2 NIC (eth0 and eth1) and others have 1 NIC.
master eth0 connected to switch and eth1 is connected to dsl connection.

we need to have ssh connection to master host (to run job on cluster) from internet. eth1 is for this.
 
Old 08-31-2010, 01:55 PM   #6
bastl
Member
 
Registered: Sep 2003
Location: Germany/BW
Distribution: My own
Posts: 237

Rep: Reputation: 22
O.K. your lan shouldn't have the network 192.168.2.x, choose maybe 2.1.1.x else your master computer is no gateway for the others.
In the moment the internet is reachable from a cluster computer that has been switched to by the master or vice versa. So if that computer has connected to the internet(router) the master and others can not switch any more!
That's why routers or more cards in the workstation (master) should be used.
 
1 members found this post helpful.
Old 08-31-2010, 02:12 PM   #7
ashkan720
LQ Newbie
 
Registered: Jun 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Question question

i guess you mean i've to change my local lan ip range to another class. is it true?
in fact only master host (which has 2 NIC) should be accessible from internet. (master host controls other execution host and execution host should not have internet access)
 
Old 08-31-2010, 03:10 PM   #8
bastl
Member
 
Registered: Sep 2003
Location: Germany/BW
Distribution: My own
Posts: 237

Rep: Reputation: 22
Yes, if only the master should connect to the internet then you have only to change your cluster lan to an other network. See /etc/networks
One local network is loopback 128.0.0.0
Normal you can choose any network different from 192.168.0.0 (192.168.routernet.0) maybe 10.1.1.0 , mask is 255.255.255.0 means you can have 255 members (hosts) in that network. It also can be up to 255.0.0.0 .
there are some conventions so you should use the network 10.x.x.x for very local networks, so you get no other problems.
 
1 members found this post helpful.
Old 08-31-2010, 03:40 PM   #9
ashkan720
LQ Newbie
 
Registered: Jun 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Talking thank you

thank you
I'll try as soon as possible and comment the result immediately.
 
  


Reply

Tags
cluster, eth0, eth1, ip, sun


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
Can Eth device names(or macs) be correlated to the physical eth port? VG1 Linux - Networking 1 12-01-2009 06:13 PM
slackware - hotspot via eth problem stenlyto Slackware 2 03-22-2009 11:06 AM
problem with eth ... no dhcpoffers received ? ferradura Ubuntu 3 03-02-2007 06:30 AM
eth aliases problem Alexandre-BR Debian 1 10-21-2004 07:16 PM
Eth problem in RH 7.3 mef Red Hat 7 09-11-2003 01:24 AM

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

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