Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 1996 16:13:46 -0700 (PDT)
From:      Archie Cobbs <archie@tribe.com>
To:        freebsd-hackers@freebsd.org
Subject:   ifconfig aliases
Message-ID:  <199604222313.QAA26291@bubba.tribe.com>

next in thread | raw e-mail | index | archive | help

This is with FreeBSD 2.2-CURRENT #0: Tue Apr  9 18:59:00 PDT 1996

Seems like the two commands marked below generate error messages
backwards ... the second one should have the error message, not
the first. Does anyone else see this?

Seems to be coming from function in_ifinit() in netinet/in.c
(but that's as far as I got).


  $ ifconfig ed0
  ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	  inet 192.168.0.22 netmask 0xffffff00 broadcast 192.168.0.255
	  ether 00:00:e8:cd:1b:b8 
=>$ ifconfig ed0 192.168.0.97 alias
  ifconfig: ioctl (SIOCAIFADDR): File exists
  $ ifconfig ed0
  ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	  inet 192.168.0.22 netmask 0xffffff00 broadcast 192.168.0.255
	  inet 192.168.0.97 netmask 0xffffff00 broadcast 192.168.0.255
	  ether 00:00:e8:cd:1b:b8 
=>$ ifconfig ed0 192.168.0.97 alias
  $ ifconfig ed0
  ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	  inet 192.168.0.22 netmask 0xffffff00 broadcast 192.168.0.255
	  inet 192.168.0.97 netmask 0xffffff00 broadcast 192.168.0.255
	  ether 00:00:e8:cd:1b:b8 

-Archie

__________________________________________________________________________
Archie L. Cobbs, archie@tribe.com   *   Whistle Communications Corporation



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