[65091] in North American Network Operators' Group
Re: Router with 2 (or more) interfaces in same network
daemon@ATHENA.MIT.EDU (sthaug@nethelp.no)
Tue Nov 11 12:58:10 2003
To: crist.clark@globalstar.com
Cc: nanog@merit.edu
From: sthaug@nethelp.no
In-Reply-To: Your message of "Tue, 11 Nov 2003 09:38:23 -0800"
Date: Tue, 11 Nov 2003 18:57:26 +0100
Errors-To: owner-nanog-outgoing@merit.edu
> You _used_ to be able to do this (oh, over two years ago?). The address
> was assigned to the interface, and the error from trying to add a duplicate
> route was simply ignored, no route got added anywhere. You can figure out
> when the change was made by examining the code or by seeing when the
> maillists started to get flooded by people who could no longer do,
>
> # ifconfig if0 inet 10.0.0.1
> # ifconfig if0 alias 10.0.0.2
>
> When they meant,
>
> # ifconfig if0 inet 10.0.0.1
> # ifconfig if0 alias 10.0.0.2 netmask 0xffffffff
There is a difference, of course - Cisco is perfectly happy to let
you do
int fa0
ip addr 10.0.0.1 255.255.255.0
ip addr 10.0.0.2 255.255.255.0 secondary
I never could understand why this should be impossible in FreeBSD.
But I guess this discussion is no longer NANOG relevant :-)
Steinar Haug, Nethelp consulting, sthaug@nethelp.no