LinuxQuestions.org
Review your favorite Linux distribution.
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 09-11-2009, 01:13 AM   #1
hhvv
Member
 
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Blog Entries: 1

Rep: Reputation: 15
Unable to SSH to eth0. But not eth1


Hi Folks,
I am unable to SSH to RHEL4 on eth0 which is having an IP, lets say 10.1.0.1. But at the same time eth1 (10.1.0.2) is working fine. And if I assign 10.1.0.2 on eth0 that's working fine. In other way if I assign 10.1.0.1 on eth1 it works.
No IPTABLES, TCP Wrapper or SELinux is enabled. Please help. Tried SSH restart and even reboot.
In the remote machine it's giving the error "ssh_exchange_identification: read: Connection reset by peer". And in TCPDUMP we found the same TCP RESET flag during Handshake. Machine is behind a vLAN with no ACLs or restrictions.

Last edited by hhvv; 09-11-2009 at 01:17 AM.
 
Old 09-11-2009, 05:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why do you have to IP's on the same subnet on different NIC's???
 
Old 09-11-2009, 08:31 AM   #3
hhvv
Member
 
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Hi Chris,
We were running with a single IP on eth0. Just for troubleshooting purpose we configured eth1 with a new IP. We did a ifdown eth1 after that. And one more thing, if we create eth0:0 it works like a charm.
Thanks for our reply. In hope of some tricks here....

Last edited by hhvv; 09-11-2009 at 08:32 AM.
 
Old 09-11-2009, 02:25 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well a trick would be to NOT use multiple interfaces on the same network. do as you did eht eth0:0 instead, or if you do want two physical interfaces, then a bond module making eth0 and eth1 into a bond0 interface, and then haave a bond0 and a bond0:0.
 
Old 09-11-2009, 02:34 PM   #5
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
Sounds like a routing issue to me.

Sounds like a routing issue.

Take a look at route and you will probably see one nic is set as the gateway for both IPs. That would explain why it worked as eth0:0 but not as eth1.

If this doesn't explain it post the output of ifconfig and route and make certain there is no firewalling in place. Are the connected to the same switch? What is the IP of the other machine?

More information is needed to be certain of the problem.

Let us know. . .
 
Old 09-12-2009, 03:18 AM   #6
hhvv
Member
 
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thanks a lot for your reply.
I really don't want 2 NICs as mentioned in the previous post. Just for ensuring there is no problem with SSH I tried enabling it. Now it has been removed.
And then, the problematic machine and the client machines are connected to the same switch. Even the eth1 was connected to the same Switch. There is no network firewall, IPTABLES, TCP Wrapper or SELinux. And the SSH was working previously. All of a sudden it got stuck. I don't remember any change in the server recently in these days of issue.
 
Old 09-19-2009, 02:58 AM   #7
hhvv
Member
 
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Started working with eth1

Hi All,
Removed eth0. Assigned the same IP to eth1. It's working. But still no idea about why that IP is not working with eth0.
 
  


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
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
iptables: forwarding SSH connection: eth0 to eth1 hamish Linux - Networking 12 01-14-2005 03:07 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

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

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