Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8913841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:33:34+00:00 2026-06-15T04:33:34+00:00

My embedded system uses a Micrel KSZ8995M switch, connected to two "internal" devices (and

  • 0

My embedded system uses a Micrel KSZ8995M switch, connected to two "internal" devices (and by internal I mean sitting physically on the same board) and a LAN.

Device 1 is a ARMv5 processor running Busybox Linux, with a LAN IP configured either by DHCP or statically on eth0, and a link-local/APIPA 169.254.137.10 address on eth0:0.

Device 2 is a smaller chip running ARTOS and who knows what else, with only a link-local/APIPA 169.254.137.11 address.

+----------------------------+
| +----------+  +----------+ |
| | Device 1 |  | Device 2 | |
| +-----+----+  +-----+----+ |
|       |             |      |   <-- a "unit"
| +-----+-------------+----+ |
| | Micrel KSZ899M switch  | |
| +-----------+------------+ |
+-------------|--------------+
              |
           +--+--+
           | LAN |
           +  -  +

The intention is for device 1 and device 2 to be able to talk to each other via TCP/IP, without any other devices on the LAN (or any recursively attached network) being able to see device 2 or see the data going between the two devices.

Also there may be multiple instances of the whole unit on the network, and the link-local addresses must not clash between units.

By my understanding, link-local addressing as defined in RFC 3927 is intended for "internal" communications only and packets dispatched between interface with link-local addressing should not be forwarded by switches or routers.

Woe and alas, with the system as a whole hooked up to the LAN, I’m seeing ARP responses to device 2 from multiple devices across the wider network, implying that the link-local IPs are visible and clashing across the network. That is, the Micrel appears to forward these and I cannot see any configuration with which to make it stop.

Have I misunderstood the way in which the APIPA addressing works?

Or, if I am correct but the Micrel merely does not support them properly, can I coerce it into compliance?


References:

  • "Link-local address" on Wikipedia
  • RFC 3927
  • Micrel Switch CLI User Guide
  • Micrel KSZ8995M datasheet
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:33:35+00:00Added an answer on June 15, 2026 at 4:33 am

    By my understanding, link-local addressing as defined in RFC 3927 is intended for “internal” communications only and packets dispatched between interface with link-local addressing should not be forwarded by switches or routers.

    Well, a Layer-2 switch doesn’t even know about IP addresses. Your understanding is wrong. Link-local addresses must not be forwarded by routers, as defined in RFC 3927. (layer-3 network equiment)

    The ARP requests are forwarded by switches, though. (layer-2 network equipment)

    See the first sentence in the data sheet which states:

    The KS8995M is a highly integrated Layer-2 managed switch

    Refer Network Switch and the OSI Model for more details about the difference between layer-2 (MAC / Ethernet) and layer-3 (TCP/IP) communication.

    As you already pointed out, the KSZ8895M does define “local” in this way:

    “Local” packets. Based on DA (Destination Address) look-up. If the destination port from the look-up table matches the port where the packet was from, the packet is defined as “local”.

    This means that the switch does not forward packets (on layer-2, ethernet, MAC!), when the destination of this packet is assigned to the port where the packets is sent from. The “Destination Address” is a MAC address in this matter – not an IP address.

    Conclusion: (REVISED)

    By default, all devices attached to the switch are visible to the outside as long as the internal switch is physically connected to your LAN.

    To avoid that, you must seperate the Network Segments physically or virtually.

    But you are lucky, the KS8995M does support VLANs – using VLAN you can seperate the “internal” network from the outside:

    • Add Port with “Device 1” to the “VLAN 1” (private VLAN)
    • Add Port with “Device 2” only to “VLAN 1” (private VLAN)
    • Add Port with “Device 1” to the “VLAN 2” (outside VLAN)
    • Make sure the Port with “Outside LAN” only has “VLAN 2” (outside VLAN)
    • Make sure “VLAN 0” (default VLAN) is removed from all ports.

    This way the Port with “Device 1” can communicate with both the outside LAN segment and the private internal LAN segment. “Device 2” is virtually seperated from the outside, so the LAN can not communicate with “Device 2”.

    Refer Page 6 in the CLI User Guide for VLAN configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an embedded system and it uses one serial port for all
My current problem is that I'm developing a embedded system that uses a binary
I am writing a server in an embedded system that uses axTLS to provide
I am just getting strted with lpcXpresso for embedded system development. It uses a
What is mean by embedded system? If a system/machine or product which we are
I'm in a embedded led measuring system project now. It uses ARM & linux,
I have an embedded system running a busybox distribution and for some reason i
I am working in embedded system domain. I would like to know how a
I have an embedded system (ARM 9263) running an RTOS, IAR tools. The system
I have a remote embedded system which it is telnet-able. How can I download

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.