From owner-freebsd-current Sun Apr 13 14:21:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA24951 for current-outgoing; Sun, 13 Apr 1997 14:21:33 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA24937 for ; Sun, 13 Apr 1997 14:21:30 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA24678 for freebsd-current@FreeBSD.org; Sun, 13 Apr 1997 23:21:28 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id XAA10930; Sun, 13 Apr 1997 23:07:15 +0200 (MET DST) Message-ID: <19970413230712.AV02454@uriah.heep.sax.de> Date: Sun, 13 Apr 1997 23:07:12 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-current@FreeBSD.org (FreeBSD-current users) Subject: ifconfig problem in -current X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk After finally upgrading my machine to a post-Lite2 system, each ifconfig for my SLIP interface causes an error message. The system is usable nevertheless, but the error message is annoying. This didn't happen before the Lite2 integration (the scripts remained the same). This can easily be demonstrated: uriah # netstat -ran Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 6 2002 lo0 192.168 link#1 UC 0 0 192.168.0.1 0:a0:24:55:7a:c3 UHLW 0 22 lo0 As one can see, the routing table is almost empty, except a local network (that won't be routed to the outside). uriah # ifconfig -a vx0: flags=8843 mtu 1500 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:a0:24:55:7a:c3 sl0: flags=9010 mtu 552 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 (All irrelevant interfaces omitted for brevity.) Now, go and configure the SLIP interface: uriah # ifconfig sl0 193.175.26.65 193.175.26.94 netmask 0xffffffff ifconfig: ioctl (SIOCAIFADDR): File exists Hmm, so what? Which ``File'' (aka. route) does already exist? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)