Re: nmap from net a to net B, don't work, but ping yes



Chris Davies wrote:

RicK_Murphy

<rmarfisiDA_QUI_NO_SPAM_LEVA_TOGLI_TUTTO_QUELLO@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I have 4 pc

pc1 10.10.10.100
pc2 10.10.1.101

What's pc2's other IP address (on the 10.10.10.0/24 network)?

eth1 of pc2: 10.10.10.101


pc3 10.10.1.102
pc4 10.10.1.103

pc2 have this routing table:
10.10.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0
eth1

it'is a router between 10.10.1.0/24 and 10.10.10.0/24
i do in pc2: sysctl -w net.ipv4.ip_forward=1

when i ping from pc1 to pc3 it works fine

but if i do from pc1 to 10.10.1.0/24
nmap -sS -A 10.10.1.0/24

it find only pc2 (router) because it have eth1 in the same network of pc1

What are the routing tables on pc1, pc3, and pc4? It looks like you may
have forgotten routes to pc2 for the "other" network.

in pc1:
10.10.1.0 10.10.10.101 255.255.255.0 UG 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth1

in pc3, pc4:
10.10.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.10.1.101 0.0.0.0 UG 0 0 0 eth0

observe that ping works fine


Chris
thanks
--
Riccardo (http://termitano.myminicity.com, visitate e se volete partecipate
sul http://www.iltermitano.it/)

A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #457776
.



Relevant Pages

  • Re: Second ethernet card seems to cause networking failure?
    ... The second networking card is for eth1, etc., and ... /sbin/ifconfig shows things as properly connected, with eth0 being the outside interface ... bring eth1 last the default gw is in the local network and assuming the dns ...
    (Debian-User)
  • How to get my 2 ethernet cards to work
    ... I also get "failed" when start up the computer on both of my network ... I can get to the internet (eth1). ... Output: "route: netmask 000000ff doesn't make sense with host route" ...
    (comp.os.linux.networking)
  • Re: VOIP with a linksys PAP2
    ... >>automatically configured by DHCP in his router, ... configured eth0 to use DHCP). ... to a single network interface (each network interface has a unique MAC ... via eth1) in order for your PAP2 to be configured correctly. ...
    (Fedora)
  • Re: Problem with multi-aliases network interfaces
    ... I'm using static ip's in all ifaces, and wpa_supplicant over eth1. ... only eth1 and eth0 configured with static ip's don't have problems. ... over diferent IP subnetworks, the "network" init script appear to forgot ...
    (Fedora)
  • ipw2100 (centrino) trouble
    ... I recently, briefly, had my ipw2100 wireless network ... adapter working under Fedora Core 2. ... entry for eth1. ... ipw2100: eth1: Failed to power on the adapter. ...
    (Fedora)