LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2011, 05:17 PM   #1
bulbous23
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Rep: Reputation: 0
need to populate arp dynamically


I've got a bit of a weird situation I think -- running Ubuntu 9.04

I've got a dev machine where we've set up multihoming via this in the interfaces file:

auto eth0:1
iface eth0:1 inet static
address 10.0.2.22
netmask 255.255.255.0
network 10.0.2.0
broadcast 10.0.2.255

so that we can have multiple https hosts.

When we first set this up, other machines on our corporate network could not see ping the 10.0.2.22 address, even though they could ping the main address for this machine. (they get this error: 92 bytes from 10.5.0.1: Destination Host Unreachable)


after executing this command:
route add -host 8.8.8.8 dev eth0:1
and then
ping 8.8.8.8

other machines on the network could then ping the 10.0.2.22 address just fine.

I concluded that there was an arp problem, and so I set up a periodic ping in case the arp cache got flushed (I did this after it got flushed one time, and we lost connectivity again).

This all seems like a huge hack to me, with the right solution being to modify the 10.5.0.1 arp settings or something (although it seems like it is probably generally set up dynamically).

recently the network architecture at my work changed (I don't have any control over that, I just need my server to work), and now my ping solution isn't working -- any ideas?

Thanks much
Cheers
Kem
 
Old 07-10-2011, 10:53 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
It may be worth trying a packet sniffer (tcpdump, wireshark) to see what's really going on.
 
1 members found this post helpful.
Old 07-11-2011, 03:51 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Nic's chatter all the time. They send out arp requests and hold them for a time. You don't populate it dynamically. It is done automatically. You populate static by command if you want it there for longer times.

If you have a switch it may hold the arp page for a long time and you may be able to hold it there forever even depending on model.
 
1 members found this post helpful.
Old 07-11-2011, 03:57 PM   #4
bulbous23
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks much both of you -- I'm not very familiar with ARP, but suspected it was supposed to work automatically. Am investigating what is going on further (thanks for the tcpdump / wireshark suggestion, I've used them before for other issues, but for some reason didn't think to use it here, so
 
  


Reply

Tags
arp, multihomed, route



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
arp poisoning vs arp spoofing sulekha Linux - Networking 1 05-13-2009 04:22 AM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 01:25 PM
Populate the HCL finegan LQ Suggestions & Feedback 0 11-06-2003 07:34 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration