From owner-freebsd-questions@FreeBSD.ORG Fri Dec 3 18:39:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7A8116A4CE for ; Fri, 3 Dec 2004 18:39:58 +0000 (GMT) Received: from szerver.siodigit.hu (ns.siodigit.hu [194.143.225.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7718943D49 for ; Fri, 3 Dec 2004 18:39:56 +0000 (GMT) (envelope-from feczo@siodigit.hu) Received: from feczo.sdi.hu ([192.168.0.217]) by szerver.siodigit.hu with esmtp (Exim 4.43 (FreeBSD)) id 1CaILJ-000DIr-Ud for freebsd-questions@freebsd.org; Fri, 03 Dec 2004 19:39:50 +0100 From: Feczak Szabolcs To: FreeBSD Questions In-Reply-To: <1102073998.27824.3.camel@localhost.localdomain> References: <1101744133.31856.1.camel@localhost.localdomain> <1102073998.27824.3.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-2 Organization: =?ISO-8859-1?Q?Si=F3digit?= Kft. Date: Fri, 03 Dec 2004 19:38:30 +0100 Message-Id: <1102099110.11799.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.1.1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.9 (-----) X-Spam-Report: Spam detection software, running on the system "szerver.siodigit.hu", hasmessagelabel similar future email. If you have any questions, see the administrator of that system for details.two physical nets without subnetting I must use bridging. The following commands solve the problem: sysctl net.link.ether.bridge=1 sysctl net.link.ether.bridge_cfg=fxp0,fxp1 [...] Content analysis details: (-5.9 points, 5.0 required) pts rule name description -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts 1% [score: 0.0000]white-list Subject: Re: Routing help with arp or zebra -> BRIDGE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 18:39:58 -0000 so the answer to myself If I would like to connect two physical nets without subnetting I must use bridging. The following commands solve the problem: sysctl net.link.ether.bridge=3D1 sysctl net.link.ether.bridge_cfg=3Dfxp0,fxp1 > 2004-11-29, h keltez=E9ssel 17:02-kor Feczak Szabolcs ezt =EDrta: > > Hi there, > >=20 > > I have the following network env. (IPs are not real though similar) > >=20 > > (INTERNET) - [? ? ? ?] Internet GW (cisco) [195.223.41.1] - switch - > >=20 > > hosts connected to the switch like 195.223.41.10 195.223.41.119 etc. > > probably in the /24 range or maybe it uses classless routing I do > > not realy know > >=20 > > My host/router is connected to this switch as well > >=20 > > [195.223.41.14/28 fxp0] inner gw [195.223.41.161/28 fxp1] > >=20 > > I have hosts connected to this innergw in the 195.223.41.160/28 network > > like 195.223.41.163 for example > >=20 > >=20 > > of course this setup doesn't work promptly, but If I do > > on the inner-gw the following > >=20 > > ifconfig fxp1 down > > route delete 195.223.41.163 > > ifconfig fxp0 alias 195.223.41.163/32 > >=20 > > ping 195.223.41.163 from the other side of the internet > > of course it works since Internet GW forwards the packet > > to its switched interface, than arp request and response > > on the innergw fxp0 interface > > Now the Cisco router has 195.223.41.163 in its arp cache > > so now I do the following on the innergw > >=20 > > ifconfig fxp0 -alias 195.223.41.163 > > ifconfig fxp1 up > >=20 > > ping 195.223.41.163 > > whoala it works .. I can reach my machine behind the > > innergw > >=20 > > for 4 hours, then cisco clears this entry from its arp > > cache and no more fun. > >=20 > > I have tried to do something with arp host hwaddr pub command, > > but its trying to advertise things on the inner interface > > so its no good. > >=20 > > I know the best would be a static route entry on the cisco > > to route all packets in the 195.223.41.160/28 network to > > the innergw interface. > >=20 > > Sadly I do not have access to the cisco router and its admin > > is nearly unreachable and make him do things is even harder. > >=20 > > So my question is ... is it possible to do the trick with > > some arp magic, or do I need zebra to talk rip or sg. with > > the cisco, so I can advertise my subnet .... ?