From owner-freebsd-questions Fri Aug 2 02:12:28 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA28750 for questions-outgoing; Fri, 2 Aug 1996 02:12:28 -0700 (PDT) Received: from escape.cs.ibank.ru (escape.cs.ibank.ru [194.58.131.150]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA28744 for ; Fri, 2 Aug 1996 02:12:02 -0700 (PDT) Received: (from igor@localhost) by escape.cs.ibank.ru (8.7.5/8.7.3/Zynaps) id NAA11967 for questions@freebsd.org; Fri, 2 Aug 1996 13:11:10 +0400 (MSD) From: Igor Vinokurov Message-Id: <199608020911.NAA11967@escape.cs.ibank.ru> Subject: Aliases under FreeBSD 2.1.5R To: questions@freebsd.org Date: Fri, 2 Aug 1996 13:11:09 +0400 (MSD) X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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