From owner-freebsd-net Mon Mar 12 6:10: 3 2001 Delivered-To: freebsd-net@freebsd.org Received: from filk.iinet.net.au (syncopation-dns.iinet.net.au [203.59.24.29]) by hub.freebsd.org (Postfix) with SMTP id 16F2537B718 for ; Mon, 12 Mar 2001 06:09:57 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 28795 invoked by uid 666); 12 Mar 2001 14:10:57 -0000 Received: from i003-015.nv.iinet.net.au (HELO elischer.org) (203.59.3.15) by mail.m.iinet.net.au with SMTP; 12 Mar 2001 14:10:57 -0000 Message-ID: <3AACD88F.71BCAFEC@elischer.org> Date: Mon, 12 Mar 2001 06:09:19 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Satyajeet Seth Cc: net@freebsd.org, gbnaidu@sasken.com Subject: Re: Ping Problem References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Satyajeet Seth wrote: > > Hi > > Please see my comments below. > > > I am using FreeBSD 4.1. I followed Roger's suggestion about "autosrc 0" > message. But "autosrc" message is not available in ng_ether. > I have tried commenting > bcopy((IFP2AC(priv->ifp))->ac_enaddr, eh->ether_shost, > 6); > in ng_ether_rcv_lower in ng_ether.c with the effect that fxp0 is able to > send packets with pseudo ethernet interface MAC address. please upgrade to at least 4.1.1 which has the autosrc command. preferably to 4.2. If you need to maybe look at upgrading just netgraph and possibly if_ethersubr.c bit I would be happier to see a move up for the system as a whole. An upgrade within the '4' family should be pretty painless. > > I have tried the following setup for pinging from nge0 to some machine on > LAN. > > on pcs130 (Machine with pseudo ethernet interfaces, see output of > "ifconfig -a" below) > ============================== > 1. #route change -host 10.0.36.134 -ifp nge0 > Now arp starts to print messages like: > arp: 'IP addr' is on fxp0 but got response from 'MAC address' on nge0. broadcast frames received have to be sent to the interface that is on that net. To do this you would need to read arp packets to decide which network to send it. (sinc ethey are the usual users of broadcast messages. At the moment you MAY MAY have success if you enable some bridging as that disables some of those checks. > > 2. #ping 10.0.36.134 > This does not work. probably the arp packets are never getting back to the right interface You need to do more packet tracing. does the packet hit the wire? does the target respond? is there a arp packet before it? does the dest respond tothe arp? does the response appear in the arp table? does the destination in turn send an arp request before responding to the ping? does the arp response (broadcast) get assigned to an interface? does it get answered? from which interface? does the response hit the wire? It was never envisionned to multiplex multiple ether networks over a single network without adding a layer e.g. VLAN. This is what VLAN is for. The problems with broadcast packets is one of the problems. > > on pcs134(some machine on lan) > ============================== > Using tee's I found that 10.0.36.134 receives ethernet frames with src > MAC address of nge0 and dest MAC address of 10.0.36.134. > pcs134 response frames are sent to MAC address of default router > 10.0.32.1. But pcs130 does not receive these frames. why does the PC send to the default router? netmask problems I think mask == ffffffff is probably a problem. > > Thanks > Satya > > > > My ifconfig settings and routing table entries are given below. > > > > > > pcs130# ifconfig -a > > > fxp0: flags=8843 mtu 1500 > > > inet 10.0.36.130 netmask 0xfffff000 broadcast 10.0.47.255 > > > inet6 fe80::2d0:b7ff:febd:711%fxp0 prefixlen 64 scopeid 0x1 > > > ether 00:d0:b7:bd:07:11 > UC nge1 -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message