davidb
10-16-2001, 07:03 PM
Ok, small problem here. I removed some ips from my free bsd box, ifconfig conferms that they are not added anymore. When I add it to a new box and ping it from the old box, I get this nice little error:
Oct 16 18:22:44 pluto /kernel: arp: 128.242.181.20 is on lo0 but got reply from 00:08:c7:ea:17:47 on tl0
cperciva
10-16-2001, 08:03 PM
How long did you wait? You'll have to either wait for the ARP entries to timeout (a few minutes IIRC) or manually flush the ARP table.
davidb
10-16-2001, 09:52 PM
oh no, its been well over 2 weeks.
Planet Z
10-16-2001, 10:17 PM
My networking knowledge is limited, but to my uneducated eye it almost looks like you put the ip on lo0, whereas tl0 is your ethernet card. lo0 is local loopback and the only ip assigned to it should be 127.0.0.1. I could be totally misreading it, though. Mind pasting the results of a ifconfig -a ?
davidb
10-16-2001, 10:34 PM
ifconfig -a shows the same as ifconfig
pluto# ifconfig -a
tl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 128.242.181.2 netmask 0xffffffe0 broadcast 128.242.181.31
inet6 fe80::280:5fff:fe9f:169%tl0 prefixlen 64 scopeid 0x1
inet 128.242.181.3 netmask 0xffffffff broadcast 128.242.181.3
inet 128.242.181.4 netmask 0xffffffff broadcast 128.242.181.4
inet 128.242.181.5 netmask 0xffffffff broadcast 128.242.181.5
inet 128.242.181.6 netmask 0xffffffff broadcast 128.242.181.6
inet 128.242.181.7 netmask 0xffffffff broadcast 128.242.181.7
inet 128.242.181.8 netmask 0xffffffff broadcast 128.242.181.8
inet 128.242.181.9 netmask 0xffffffff broadcast 128.242.181.9
inet 128.242.181.10 netmask 0xffffffff broadcast 128.242.181.10
inet 128.242.181.11 netmask 0xffffffff broadcast 128.242.181.11
inet 128.242.181.12 netmask 0xffffffff broadcast 128.242.181.12
inet 128.242.181.13 netmask 0xffffffff broadcast 128.242.181.13
inet 128.242.181.14 netmask 0xffffffff broadcast 128.242.181.14
ether 00:80:5f:9f:01:69
media: autoselect (100baseTX <full-duplex>) status: active
supported media: 10base5/AUI 10base2/BNC 10baseT/UTP <hw-loopback> none autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8000<MULTICAST> mtu 1500
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
the ip addys i am trying to use, but cant are .20-.25
Try these commands:
/sbin/ifconfig tl0 inet 128.242.181.20 netmask 0xffffffff broadcast 128.242.181.20 alias
/sbin/ifconfig tl0 inet 128.242.181.21 netmask 0xffffffff broadcast 128.242.181.21 alias
/sbin/ifconfig tl0 inet 128.242.181.22 netmask 0xffffffff broadcast 128.242.181.22 alias
/sbin/ifconfig tl0 inet 128.242.181.23 netmask 0xffffffff broadcast 128.242.181.23 alias
/sbin/ifconfig tl0 inet 128.242.181.24 netmask 0xffffffff broadcast 128.242.181.24 alias
/sbin/ifconfig tl0 inet 128.242.181.25 netmask 0xffffffff broadcast 128.242.181.25 alias
Also, that netmask and broadcast is likely wrong, but I've followed the same syntax as you have for your other IPs. Those values should be based on the size of the block of IPs routed to your server.
davidb
10-17-2001, 12:22 PM
cjb, I am trying to remove those ips from the system, doesnt that command add them?
I assumed you wanted to add them given that you said you were trying to use them. Anyway, the ifconfig output you pasted doesn't show that they are bound to the system.
davidb
10-17-2001, 08:00 PM
see, thats the problem. The system thinks ips .20-.25 are pointing to the system. Ie causing that error above. They use to belong to the system but where moved. So my question is why is that machine thinking the ips are pointing to it when they are not.
cperciva
10-17-2001, 08:02 PM
davidb, can you show us the output of `arp -a`?
davidb
10-17-2001, 09:52 PM
cperciva, thanks a lot, you hit it on the nose. I ran that command saw them listed, and removed them with the arp -d command and all is working great. Thanks so much everyone.