| Summary: | changing IP address on an interface may not propagate properly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Robert Watson <rwatson> | ||||
| Component: | kern | Assignee: | ru <ru> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.1-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Robert Watson
2000-08-22 19:10:01 UTC
On Tue, Aug 22, 2000 at 02:06:06PM -0400, rwatson@FreeBSD.org wrote: > > Changing the IP address of an interface may not necessarily cause new > sockets to make use of the new IP address, if the address is in the same > subnet as the previous address under IPv4. This only seems to affect > outgoing packets to non-local addresses; the correct IP is used for outgoing > local packets on the subnet. > I recently experienced this bug (with exact the same workaround) when I was playing with my libalias(3) ICMP fixes. Yesterday, when I was playing with my kernel ICMP error generation fixes, I noticed that a similar bug happens with `-reject' static routes and thought that this might be related to this bug. 1. Add the `-reject' route on your gateway machine: # route add -host 1.2.3.4 -iface lo0 -reject 2. From another box ping this host: $ ping -c1 1.2.3.4 You will not see the ICMP unreachable message. 3. On the router box, re-add the default route: # route delete default # route add default $foo 4. From another box try to ping this host again: $ ping -c1 1.2.3.4 Now you will see the ICMP unreachable message. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age As we now have a second complain (PR 21914), I feel I better let the others know that I was working on resolving this issue. Attached is the latest message from my private discussion with Garrett on this topic. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age Responsible Changed From-To: freebsd-bugs->ru I am working on this issue. State Changed From-To: open->analyzed The fix has been committed to 5.0-CURRENT: Revision Changes Path 1.25 +9 -4 src/usr.bin/netstat/netstat.1 1.47 +3 -3 src/usr.bin/netstat/route.c 1.61 +5 -4 src/sys/net/route.c 1.51 +12 -1 src/sys/netinet/in.c 1.38 +9 -11 src/sys/netinet/in_rmx.c State Changed From-To: analyzed->closed The fix (slightly evolved) has been MFCed into 4.3-STABLE. |