Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 1999 16:46:36 +0000
From:      Kiril Mitev <kiril@idea.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   IP aliasing - shant , wont , no way !
Message-ID:  <99031617075801.09234@loki.idea.co.uk>

next in thread | raw e-mail | index | archive | help
or is it me :-) ?

here is ifconfig command  1:
ifconfig tl0 
and here is the output:
tl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:80:5f:ed:4a:5d
        media: autoselect (10baseT/UTP <half-duplex>)
        supported media: 10baseT/UTP <full-duplex> autoselect .......ETC

ifconfig command 2:
ifconfig tl0 inet 194.36.20.10 netmask 0xffffff00 broadcast 194.36.20.255
followed by "ifconfig tl0" gives :
tl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 194.36.20.10 netmask 0xffffff00 broadcast 194.36.20.255
        ether 00:80:5f:ed:4a:5d       ......... ETC

so far so good...now, ifconfig command 3:
ifconfig tl0 alias 194.36.20.201
produces
ifconfig: ioctl (SIOCAIFADDR): File exists
OK, fine, this is obviously NOT the way to do it, so clean out the
settings, and confirm with "ifconfig tl0":
tl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:80:5f:ed:4a:5d
        media: autoselect (10baseT/UTP <half-duplex>) .. BLAH BLAH BLAH

ifconfig command 4:
ifconfig tl0 inet 194.36.20.10 netmask 0xffffff00 broadcast 194.36.20.255 alias 194.36.20.201
check with "ifconfig tl0"
tl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 194.36.20.10 netmask 0xffffff00 broadcast 194.36.20.201 
HUH??-------------------------^^^^^^^^^^^^^^^^^^^^^^^
	ether 00:80:5f:ed:4a:5d
	media: autoselect (10baseT/UTP <half-duplex>)

another clean-out, followed by ifconfig command 5:
ifconfig tl0 inet 194.36.20.10 alias 194.36.20.201 netmask 0xffffff00 broadcast 194.36.20.255
(basically, move 'alias' up front), check again:
tl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 194.36.20.10 netmask 0xffffff00 broadcast 194.36.20.255
        ether 00:80:5f:ed:4a:5d                .. ETC

is it me, the man page, ifconfig, or the weather in Timbuktoo ?????

any and all pointers appreciated....

P.S.

# uname -a
FreeBSD MYHOST  3.0-RELEASE FreeBSD 3.0-RELEASE 

TIA...

--
Kiril


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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