From owner-freebsd-hackers Fri Oct 22 3: 8:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from citadel.cequrux.com (citadel.cdsec.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id AD02214F56 for ; Fri, 22 Oct 1999 03:08:33 -0700 (PDT) (envelope-from gram@cequrux.com) Received: (from nobody@localhost) by citadel.cequrux.com (8.9.3/8.9.3) id MAA07218; Fri, 22 Oct 1999 12:06:23 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 7215; Fri Oct 22 12:05:53 1999 From: Graham Wheeler To: Ruslan Ermilov , Graham Wheeler Subject: Re: aliasing a point-to-point interface Date: Fri, 22 Oct 1999 11:53:48 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: hackers@FreeBSD.ORG References: <99102118512208.17915@cequrux.com> <9910220959290C.17915@cequrux.com> <19991022111925.B69348@cequrux.com> In-Reply-To: <19991022111925.B69348@cequrux.com> MIME-Version: 1.0 Message-Id: <9910221201410E.17915@cequrux.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The above commands do not rely on the host's forwarding capabilities. > The first `route' command will remove the weird `X.X.X.X via X.X.X.X' entry. > The second `route' command will install the route allowing you to communicate > with X.X.X.X from this host itself. Look: > > : relay# ifconfig sl9 inet 1.1.1.1 1.1.1.1 alias > : relay# netstat -rn | grep ^1.1.1.1 > : 1.1.1.1 1.1.1.1 UH 0 0 sl9 > : relay# ping 1.1.1.1 > : PING 1.1.1.1 (1.1.1.1): 56 data bytes > : ^C > : --- 1.1.1.1 ping statistics --- > : 2 packets transmitted, 0 packets received, 100% packet loss > : relay# route delete -host 1.1.1.1 > : delete host 1.1.1.1 > : relay# route add -host 1.1.1.1 127.1 > : add host 1.1.1.1: gateway 127.1 > : relay# netstat -rn | grep ^1.1.1.1 > : 1.1.1.1 127.0.0.1 UGHS 0 0 lo0 > : relay# ping 1.1.1.1 > : PING 1.1.1.1 (1.1.1.1): 56 data bytes > : 64 bytes from 1.1.1.1: icmp_seq=0 ttl=255 time=0.108 ms > : 64 bytes from 1.1.1.1: icmp_seq=1 ttl=255 time=0.170 ms > : 64 bytes from 1.1.1.1: icmp_seq=2 ttl=255 time=0.208 ms > : ^C > : --- 1.1.1.1 ping statistics --- > : 3 packets transmitted, 3 packets received, 0% packet loss > : round-trip min/avg/max/stddev = 0.108/0.162/0.208/0.041 ms I still get no echo replies after doing this. My sequence: ifconfig ar0 inet up ifconfig ar0 inet alias route delete -host route add -host 127.1 ping -- Dr Graham Wheeler E-mail: gram@cequrux.com Cequrux Technologies Phone: +27(21)423-6065/6/7 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Data/Network Security Specialists WWW: http://www.cequrux.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message