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 06-07-2006, 04:29 AM   #1
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Rep: Reputation: 15
2 interface, ping error !


Hello,

Im under debian Sage, and I have some problem with network
I have 2 network card on the server
- eth0 connected to internet via inet adr:193.xx.yy.160 Bcast:193.xx.yy.255 Masque:255.255.255.0
- eth1 connected to local via inet adr:193.xx.yy.161 Bcast:193.xx.yy.255 Masque:255.255.255.0


The other computer on localnetwork inet adr:193.xx.yy.163 Bcast:193.xx.yy.255 Masque:255.255.255.0
Wth gateway ip: 193.xx.yy.161


Take look a little drawing :

INTERNET <--------> [eth0(193.xx.yy.160) | eth1(193.xx.yy.161] <--------> [eth0(193.xx.yy.163)]


BUT ! When I try to ping 193.xx.yy.161 on the computer(192.xx.yy.163). And when I try to pīng 193.xx.yy.163 on the server(192.xx.yy.161) I have No reply !!
Anybody have some idea ?


(PS: I don't want to put the localnetwork on private ip)
 
Old 06-07-2006, 04:36 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Try a packet filter like ethereal and see if there are ICMP messages being sent while you are ping'ing or not.
Maybe some security measure is blocking the ICMP messages.

Have you also checked all network interfaces (are they up, properly connected, using right kind of cables)?
 
Old 06-07-2006, 04:41 AM   #3
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by timmeke
Try a packet filter like ethereal and see if there are ICMP messages being sent while you are ping'ing or not.
Maybe some security measure is blocking the ICMP messages.

Have you also checked all network interfaces (are they up, properly connected, using right kind of cables)?
All work without problem with private ip like 192.168.1.*
With ethereal on the server, I receive nothing on the eth1 !

Iptable is clear, and no other firewall.


(Excuse my poor english )
 
Old 06-07-2006, 04:57 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You did use -I to specify the network interface (eth1) to use when ping'ing from the server to the client right?

Have you also tried other forms of communication like nmap? It can do a lot more than just send ICMP Echo Requests (ping's).

It sounds like your client is not configured properly for networking. When you change the IP address, what settings did you modify exactly?
 
Old 06-07-2006, 05:05 AM   #5
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by timmeke
It sounds like your client is not configured properly for networking. When you change the IP address, what settings did you modify exactly?
I edit /etc/network/interfaces
and reload the interfaces with /etc/init.d/networking
 
Old 06-07-2006, 05:30 AM   #6
bit128_linux
Member
 
Registered: Dec 2005
Location: Brasov, Romania
Distribution: Slackware, Bluewhite64
Posts: 49

Rep: Reputation: 15
Are you sure this isn't a routing problem? eth0 being your first interface and having the same address family as your internal network, I think the kernel tries to route your packets to eth0, that is, to the internet, because it takes the interfaces in order: eth0, eth1. Maybe you should execute in a shell (as root) a line like this:

ip route add 193.xx.yy.163 dev eth1

on the server( 193.xx.yy.16{0,1} )
I think it should work this way ..
 
Old 06-07-2006, 05:59 AM   #7
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bit128_linux
Are you sure this isn't a routing problem? eth0 being your first interface and having the same address family as your internal network, I think the kernel tries to route your packets to eth0, that is, to the internet, because it takes the interfaces in order: eth0, eth1. Maybe you should execute in a shell (as root) a line like this:

ip route add 193.xx.yy.163 dev eth1

on the server( 193.xx.yy.16{0,1} )
I think it should work this way ..
serv160:/# ip route add 193.xx.yy.163 dev eth1
bash: ip: command not found


 
Old 06-07-2006, 06:09 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Try it without "ip" in front.
 
Old 06-07-2006, 06:14 AM   #9
bit128_linux
Member
 
Registered: Dec 2005
Location: Brasov, Romania
Distribution: Slackware, Bluewhite64
Posts: 49

Rep: Reputation: 15
You should have the iproute2 package installed, though. I'm assuming you have at least the 'route' utility. I think it would go this way:

route add 193.xx.yy.163 dev eth1

from a root shell. Hope helps..
 
Old 06-07-2006, 07:21 AM   #10
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bit128_linux
You should have the iproute2 package installed, though. I'm assuming you have at least the 'route' utility. I think it would go this way:

route add 193.xx.yy.163 dev eth1

from a root shell. Hope helps..

serv160:/# route add 193.xx.yy.163 dev eth1
serv160:/# ping 193.xx.yy.163
PING 193.xx.yy.163 (193.17.73.163) 56(84) bytes of data.
64 bytes from 193.xx.yy.163: icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from 193.xx.yy.163: icmp_seq=2 ttl=64 time=0.065 ms

Thanks a lot all !

Last edited by Mycado; 06-07-2006 at 07:27 AM.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
ping through a specific interface ALInux Linux - Networking 9 02-11-2010 11:52 AM
ping on wrong interface despite route ocgltd Linux - Networking 1 09-26-2005 11:23 PM
kernel 2.6.3 ping -I <interface> fails gtop Linux - Networking 9 02-21-2005 06:41 PM
Can't ping anywhere past the external interface! Ironica Linux - Networking 2 05-25-2004 04:57 PM

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

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