From owner-freebsd-chat Mon Jul 1 06:08:29 1996 Return-Path: owner-chat Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25760 for chat-outgoing; Mon, 1 Jul 1996 06:08:29 -0700 (PDT) Received: from gateway.ormond.unimelb.edu.au (College.ormond.unimelb.edu.au [203.17.189.253]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA25752 for ; Mon, 1 Jul 1996 06:08:24 -0700 (PDT) Received: (from gavin@localhost) by gateway.ormond.unimelb.edu.au (8.6.11/8.6.9) id XAA25380 for freebsd-chat@freebsd.org; Mon, 1 Jul 1996 23:08:20 +1000 From: Gavin Cameron Message-Id: <199607011308.XAA25380@gateway.ormond.unimelb.edu.au> Subject: Setting up an alias on an ethernet interface To: freebsd-chat@freebsd.org Date: Mon, 1 Jul 1996 23:08:19 +1000 (EST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-chat@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, If I want to make on interface talk to more than one subnet how should I do the alias. I already have the interface working with an IP address of 203.17.189.1 and a netmask of 255.255.255.128. I now want the same interface to handle traffic on a subnet with the network address os 203.22.108.0 and a netmask of 255.255.255.192. Which of the following 2 methods should I use to set this alias up? 1) ifconfig de0 203.22.108.1 netmask 255.255.255.192 alias or 2) ifconfig de0 203.22.108.1 netmask 255.255.255.255 alias route add -net 203.22.108.0 -netmask 255.255.255.192 203.22.108.1 It seems the seconds gets rid of the arplookup: host not on local network errors, but is this the way to do the aliases or have I got it totally wrong? many thanks Gavin -- []-------------------------------------+--------------------------------------[] | Gavin Cameron | Ormond College | | Ph : +61 3 9344 1201 | The University of Melbourne | | Fax : +61 3 9344 1111 | Parkville, Victoria | | Email : gavin@ormond.unimelb.edu.au | Australia, 3053 | []-------------------------------------+--------------------------------------[]