Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 1999 13:32:44 +0300
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        Graham Wheeler <gram@cequrux.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: aliasing a point-to-point interface
Message-ID:  <19991022133244.B10699@relay.ucb.crimea.ua>
In-Reply-To: <9910221201410E.17915@cequrux.com>; from Graham Wheeler on Fri, Oct 22, 1999 at 11:53:48AM %2B0200
References:  <99102118512208.17915@cequrux.com> <9910220959290C.17915@cequrux.com> <19991022111925.B69348@cequrux.com> <9910221201410E.17915@cequrux.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 22, 1999 at 11:53:48AM +0200, Graham Wheeler wrote:
> 
> > 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 <myaddr> <remaddr> up
> ifconfig ar0 inet <myalias> <myalias> alias
> route delete -host <myalias>
> route add -host <myalias> 127.1
> ping <myalias>
> 
What does `netstat -rn | grep <myalias>' show you after each command?
Are you running some routing software?  GateD? routed?

-- 
Ruslan Ermilov		Sysadmin and DBA of the
ru@ucb.crimea.ua	United Commercial Bank,
ru@FreeBSD.org		FreeBSD committer,
+380.652.247.647	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991022133244.B10699>