Weblog entry #5 for lykwydchykyn
Well, now I have had to implement it for a server for actual reasons, and I'm wondering what exactly is causing this delay. I've observed it on at least 3 debian boxes, so I know it's not just a hardware issue or anything.
The delay seems to happen just on first access; once the service is accessed, there is no slowness; just an initial delay of 10-30 seconds.
The two IP's are on the same block, if it makes a difference, though I've observed it in situations where the IP's were on different blocks and at least once where there were two NIC's on separate blocks on the machine.
Anyone know what's up? Do I need to put in static routes or something?
Comments on this Entry
Install iproute and do an;
"up ip addr add dev $IFACE a.b.c.d/nm"
"down ip addr flush dev $IFACE"
In /etc/network/interfaces
I have many machines with many IP addresses running Sarge, and I see no delay.
My guess would be something is doing a DNS lookup and timing out, check the reverse lookup of IP addresses is right.
Possibly there any other kit in the way? I'm thinking router or firewall, or maybe even a switch, doing something daft with arp requests.
Be aware that where the addresses are on the same IP block that routing out may be not exactly what you expect.
[ Parent | Reply to this comment ]
Is the "ip addr" part literal, or do you mean I should put the actual ip in there? I guess I should read the man page :-).
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View sebastian's Scratchpad | View Weblogs ]
With ifconfig I only see the first IP address.
Cheers, Sebastian
[ Parent | Reply to this comment ]
The command has built in help, especially for syntax type issue.
[ Parent | Reply to this comment ]
[ Send Message | View sebastian's Scratchpad | View Weblogs ]
Cheers, Sebastian
[ Parent | Reply to this comment ]
Although experience dictates any mental model you build about how IP networking works is likely to differ from the source code (unless you are Alan, or Rusty, or other kernel network hacker, when you probably correct the source code to conform with your mental models).
If you have one NIC and one IP address, you don't need to care.
[ Parent | Reply to this comment ]