Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 1996 23:08:19 +1000 (EST)
From:      Gavin Cameron <gavin@ormond.unimelb.edu.au>
To:        freebsd-chat@freebsd.org
Subject:   Setting up an alias on an ethernet interface
Message-ID:  <199607011308.XAA25380@gateway.ormond.unimelb.edu.au>

next in thread | raw e-mail | index | archive | help
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           |
[]-------------------------------------+--------------------------------------[]



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