Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 1996 13:11:09 +0400 (MSD)
From:      Igor Vinokurov <igor@cs.ibank.ru>
To:        questions@freebsd.org
Subject:   Aliases under FreeBSD 2.1.5R
Message-ID:  <199608020911.NAA11967@escape.cs.ibank.ru>

next in thread | raw e-mail | index | archive | help
re,

  FreeBSD 2.1.5R, 2nd edition :)

  I use two trivial command to assign two aliases for one ep0 interface:

bravo# ifconfig ep0 alias 194.58.131.142 netmask 0xffffffe0
ifconfig: ioctl (SIOCAIFADDR): File exists
bravo# ifconfig ep0 alias 194.58.131.143 netmask 0xffffffe0
ifconfig: ioctl (SIOCAIFADDR): File exists
bravo#

  Then I get message "File exists..."? Could you explain it please? May
do I admit a mistake?

  But FreeBSD assign requested aliases:

bravo# netstat -in | grep ep0
ep0   1500  <Link>00.20.af.11.42.a4           9751     0    11583     3     0
ep0   1500  194.58.131.12 194.58.131.141      9751     0    11583     3     0
ep0   1500  194.58.131.12 194.58.131.142      9751     0    11583     3     0
ep0   1500  194.58.131.12 194.58.131.143      9751     0    11583     3     0
bravo#

  Why? :)

  Then I publish MAC address of these aliases:

bravo# arp -s 194.58.131.142 00:20:af:11:42:a pub
bravo# arp -s 194.58.131.143 00:20:af:11:42:a pub 
bravo# arp -a | grep "194.58.131.14[23]"
bravo.cs.ibank.ru (194.58.131.142) at 0:20:af:11:42:a permanent published
bravo.cs.ibank.ru (194.58.131.143) at 0:20:af:11:42:a permanent published
bravo#

  Yes, it works (ping, telnet, etc), but if I run traceroute and
packets run through this host, router answer for icmp query from address
194.58.131.143 (i.e. from last entered alias):

escape# traceroute -n 194.58.94.14
traceroute to 194.58.94.14 (194.58.94.14), 30 hops max, 40 byte packets
 1  194.58.131.143  1.336 ms  1.063 ms  0.982 ms
 2  194.58.94.14  171.201 ms  4341.624 ms  189.100 ms
escape#

  Why? Main address (entered by ifconfig inet) = 194.58.131.141!

  Any clues? Any correct /etc/netstart? :)

-- 
Igor Vinokurov



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