Date: Fri, 05 Jul 2002 13:10:03 -0700 From: "Jin Guojun[DSD]" <j_guojun@lbl.gov> To: Jonathan Chen <jon@FreeBSD.org> Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/21292: ifconfig warn but does duplicate IP address Message-ID: <3D25FD1B.4AF0217@lbl.gov> References: <200207051941.g65Jf3x2084537@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jonathan Chen wrote: > > Synopsis: ifconfig warn but does duplicate IP address > > State-Changed-From-To: open->closed > State-Changed-By: jon > State-Changed-When: Fri Jul 5 12:40:04 PDT 2002 > State-Changed-Why: > fixed [src/sys/netinet/in.c 1.44.2.8] > > http://www.freebsd.org/cgi/query-pr.cgi?pr=21292 I am not sure if this is completely fixed -- it is fixed if same netmask is given. If a different netmask is used, the same IP can still be assigned to a different interface, which is meaningless even they are in different class. I think this type of checking should be simple IP only; ie., it should not invoke netmask: # ifconfig -a sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 131.243.2.35 netmask 0xffffff00 broadcast 131.243.2.255 inet6 fe80::200:5aff:fe98:ea24%sk0 prefixlen 64 scopeid 0x2 ether 00:00:5a:98:ea:24 media: Ethernet 1000baseSX <full-duplex> status: active sk1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::200:5aff:fe98:ea25%sk1 prefixlen 64 scopeid 0x3 ether 00:00:5a:98:ea:25 media: Ethernet autoselect (none) status: no carrier # ifconfig sk1 131.243.2.35 # ifconfig -a sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 131.243.2.35 netmask 0xffffff00 broadcast 131.243.2.255 inet6 fe80::200:5aff:fe98:ea24%sk0 prefixlen 64 scopeid 0x2 ether 00:00:5a:98:ea:24 media: Ethernet 1000baseSX <full-duplex> status: active sk1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::200:5aff:fe98:ea25%sk1 prefixlen 64 scopeid 0x3 inet 131.243.2.35 netmask 0xffff0000 broadcast 131.243.255.255 ether 00:00:5a:98:ea:25 media: Ethernet autoselect (none) status: no carrier ------------ Jin Guojun ----------- v --- j_guojun@lbl.gov --- Distributed Systems Department http://www.itg.lbl.gov/~jin M/S 50B-2239 Ph#:(510) 486-7531 Fax: 486-6363 Lawrence Berkeley National Laboratory, Berkeley, CA 94720 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D25FD1B.4AF0217>