LinuxQuestions.org
Visit Jeremy's Blog.
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 04-27-2023, 01:29 AM   #1
bboness
LQ Newbie
 
Registered: Apr 2023
Posts: 1

Rep: Reputation: 0
ARP table messed-up


Hi there..

I am on
"Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux"


The host has a bunch of VLAN intefaces. All works well except the arp table is messed-up and I wonder why. All IP's appear to be on all interfaces, example 100.64.0.34:

Code:
# arp -an | grep 100.64.0.34
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1505
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1506
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1501
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1502
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1510
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.500
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.314
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1507
? (100.64.0.34) at b4:0f:3b:fa:ff:90 [ether] on ens161.1509
TCPdump of the ARP seems to be fine (??):

Code:
# tcpdump -i any arp | grep 100.64.0.34
07:09:36.050439 ens161.1502 Out ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 28
07:09:36.050767 ens161.314 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.500 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.1510 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.1507 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.1509 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.1501 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.1505 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.050767 ens161.1506 B   ARP, Request who-has 100.64.0.34 tell 100.64.0.33, length 46
07:09:36.066682 ens161.1502 In  ARP, Reply 100.64.0.34 is-at b4:0f:3b:fa:ff:90 (oui Unknown), length 46
Interfaces look like (they are all separated /30's):

Code:
# ifconfig ens161.1502
ens161.1502: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 100.64.0.33  netmask 255.255.255.252  broadcast 100.64.0.35
        inet6 fe80::20c:29ff:fe47:718c  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:47:71:8c  txqueuelen 1000  (Ethernet)
        RX packets 93581560  bytes 12095853206 (11.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 63022644  bytes 177126550268 (164.9 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


# ifconfig ens161.1507
ens161.1507: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 100.64.0.13  netmask 255.255.255.252  broadcast 100.64.0.15
        inet6 fe80::20c:29ff:fe47:718c  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:47:71:8c  txqueuelen 1000  (Ethernet)
        RX packets 43986815  bytes 7216935263 (6.7 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38691972  bytes 80984162080 (75.4 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
The hosts's connects to a vswitch on ESXi.

Although everything seems working the arp entries break an integration of another script in my case.
Since all interfaces have separate /30's I'd expect to see each IP only on one interface in the arp table.

Any hint welcome!

Martin
 
Old 05-05-2023, 08:08 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,855

Rep: Reputation: 161Reputation: 161
The MAC address of the VLAN interface is equal to physical interface's. The everything should be fine.
 
Old 05-06-2023, 03:52 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,005

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Just for grins use arp -a and see what is static and what is dynamic. About the only way I know of arp seeming to be wrong is if someone added static entries.
 
  


Reply



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 table or routing table consulted first? YaMaHaBoB Linux - Networking 4 07-15-2011 04:56 PM
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
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 05:44 PM.

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