Re: arp problem in pinging host

From: Allen McIntosh (nospam_at_mouse-potato.com)
Date: 05/16/05


Date: Mon, 16 May 2005 14:24:03 -0400


[Removed comp.protocols.tcp-ip since it isn't relevant]

I guess I should have asked for ifconfig -a in the same post -
newsreader won't let me go back and look at original. Anyway
> Routing table for hostA
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 172.16.1.0 192.168.1.1 255.255.255.0 UG 0 0 0
> eth0
OK but redundant, since it is covered by the default route.
> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
> eth0
So eth0 has an IP addr of 192.168.1.x where x != 1, and is connected by
a crossover cable to eth1 on R1. eth1 on R1 has address 192.168.1.1.
OK so far?

> Routing table for R1
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth1
> 172.16.1.0 0.0.0.0 255.255.255.0 UG 0 0 0 eth0
Redundant.
> 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> eth0
> 0.0.0.0 10.1.1.100 0.0.0.0 UG 0 0 0
> eth0
eth1 had address 192.168.1.1 and is connected to A.
eth0 has address 10.1.1.1 and is connected to R2. More on this later.
>
> I have also crosscable connection of R1 to another R2 with routing
> table
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 172.16.1.0 0.0.0.0 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
> eth0
> 0.0.0.0 10.1.1.1 0.0.0.0 UG 0 0 0
> eth0
eth0 has address 10.1.1.100 and is connected to R1 via crossover cable?
  I see several things wrong with this. First, R1 and R2 send default
traffic to each other. Second, it would be more usual to use a netmask
of 255.255.255.0 for the 10.1.1.0 network. Third, I don't understand
how the 192.168.1 entry got here or what it is supposed to be doing.
(There are two wildly different networks assigned to the same interface
with no gateway on either entry.) The 172.16.1.0 entry looks funny too.
  What is the address of eth1 supposed to be?

I think you need to sit down with a piece of paper and draw your
network. For each network segment (each crossover cable is one) write
in the interface name, the addresses of each interface, the network
address, the broadcast address and the netmask. Then double check that
the routing tables and addresses (output of ifconfig -a or equivalent)
match the diagram.



Relevant Pages

  • Re: AIX 1.3 Failures and Fables
    ... Found this in #man ifconfig ... " The address family default is DARPA Internet. ... Configures network interface parameters. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Ethernet cable check
    ... >>nonfunctional network. ... >>the way if I later fire up the wireless interface. ... with linux around the same time i started opening PCs up and looking ... cards and not have ifconfig tell me which one had a "good physical link" ...
    (Fedora)
  • Re: Questions with configuring multiple NICs
    ... I can ifconfig sis0, the onboard ethernet, ... I can't reach anything off the local network. ... > cards configured correctly with ifconfig. ... > the modules and ifconfig'ing only the interface I need at that point in ...
    (freebsd-questions)
  • Re: laptop restart eth0 automatically on plugin or on awake like a desktop
    ... bring the interface up or down? ... ifconfig output if there is no cable). ... With those settings hotplug never gets to function, ... network manager is not installed of course. ...
    (Debian-User)
  • Re: Windows 2000 Not Routing Correctly
    ... Clear the Routing Table with this command from a command line... ... Check the Network settings of each Interface. ... > CARD A: 63.174.244.x ...
    (microsoft.public.win2000.networking)