MACsec vs IPsec: which one protects which traffic, and where
When a vendor, tender or audit asks about MACsec or IPsec, the first thing to establish is the layer each one protects. MACsec encrypts frames at the link layer between directly connected devices, while IPsec encrypts IP packets at the network layer across routed paths. That difference in layer decides which traffic is covered, which devices must participate, and what a post-quantum change would have to touch. Network and security engineers usually meet MACsec in switch, router and data center fabric discussions, where the term appears alongside port-level configuration and hop-by-hop protection. IPsec usually appears in VPN, site-to-site tunnel and remote access discussions, where it is tied to gateways and endpoints across the internet or a WAN. Security leads and auditors tend to see both in the same questionnaire, so the answer should name which layer the question concerns before comparing the two.
For a post-quantum review, treat the two as separate protocol stacks with separate key exchange paths, not as interchangeable options. A question about MACsec protection is a question about the link-layer key agreement and the devices on each hop. A question about IPsec protection is a question about IKE key exchange and the gateways at each end of the tunnel. Before accepting any vendor statement, confirm in writing which key exchange each product uses, which versions and editions it runs, and whether any post-quantum key exchange is supported, planned or only documented for a later release. The sources listed on this page do not give a MACsec post-quantum status, so that point must be checked against the vendor's own documentation and the relevant IETF or IEEE specification for the version deployed.
Practically, the reader's next step is to map their traffic before judging either protocol. List which flows cross only directly connected links, which cross routed paths, and which devices terminate each protection. Ask each vendor which of those hops its product encrypts, at what layer, and with which key exchange. Record the answers with the product name, version and date, because a statement about one layer does not establish protection at the other. Where the answer depends on the version, request the release notes or configuration guide for that exact version. This mapping is the evidence a reviewer will ask for, and it is what lets the post-quantum discussion focus on the right devices.
MACsec and IPsec side by side: attributes the sources give
This table sets out the attributes the sources on this page give for MACsec and IPsec, one row each, so you can see where the two differ and where a source is silent. Where the listed sources give no value for one side, the cell says so instead of filling the gap. Check each row against the specification or vendor documentation for the version you run before relying on it.
| Attribute | MACsec | IPsec |
|---|---|---|
| Layer of operation | The sources on this page do not give a layer for MACsec. Confirm against the standard before use. | The sources on this page do not give a layer for IPsec. Confirm against the standard before use. |
| Defining document | The sources on this page do not name a defining document for MACsec. Check the IEEE standard that covers it. | The sources on this page do not name a defining document for IPsec. Check the IETF documents that cover it. |
| Purpose | The sources on this page do not state a purpose for MACsec. Confirm the purpose in the defining document. | The sources on this page do not state a purpose for IPsec. Confirm the purpose in the defining document. |
| Where it is supported | The sources on this page do not say where MACsec is supported. Ask your switch and NIC vendors. | The sources on this page do not say where IPsec is supported. Ask your gateway and endpoint vendors. |
| Post-quantum key exchange in the sources | The sources on this page do not describe post-quantum key exchange for MACsec. | The sources on this page do not describe post-quantum key exchange for IPsec in this table. See the IKEv2 topics in this section. |
What MACsec is and what IPsec is
MACsec is a link-layer encryption mechanism. Its purpose is to protect Ethernet frames on one hop, between two devices that are directly connected, such as a host and a switch, two switches, or a switch and a router. It encrypts and authenticates frames as they cross that link, so the protection stops at the device at each end of the link. The protocol is defined by IEEE 802.1AE, which covers the frame protection, and key agreement for it is handled by IEEE 802.1X-2010 and its MKA (MACsec Key Agreement) extensions. Practitioners most often meet MACsec as a capability on data center and campus switches, on routers with Ethernet interfaces, on network interface cards for servers, and on the uplinks between sites that run over leased Layer 2 circuits. Because the sources listed on this page do not describe a post-quantum variant of MACsec, the reader should confirm with the switch or NIC vendor which key agreement and cipher options their equipment supports.
- Scope of protection: MACsec covers only the link it is configured on. Traffic that crosses a second switch is protected again only if that hop is also configured.
- Layer: It works below IP, so it protects traffic regardless of the IP protocol above it.
- Defining documents: IEEE 802.1AE for frame protection and IEEE 802.1X-2010 with MKA for key agreement.
- Where it appears: Switch and router port configuration, server NIC settings, and Layer 2 links between data centers or campuses.
- Key management: Keys are negotiated per link through the key agreement protocol, so the post-quantum question for MACsec sits in that key agreement step and in the vendor's support for it.
Before planning any change, check the MACsec and MKA versions in your switch and NIC documentation, and ask the vendor in writing whether any post-quantum key agreement is planned, and on what date.
IPsec is a network-layer encryption framework. Its purpose is to protect IP traffic between two endpoints that may be separated by many routers, which is why it is the usual choice for site-to-site VPNs, remote access gateways and tunnels across the internet or other shared networks. IPsec is defined by a set of IETF RFCs rather than a single document, and the key exchange used to set up its security associations is IKE, which the sources on this page cover in their sibling topics. Practitioners meet IPsec as a feature of firewalls, VPN concentrators, routers, cloud VPN gateways and some endpoint clients. Because IPsec runs over IP, it can traverse routed networks and be terminated at a gateway rather than at each host. The post-quantum work on IPsec is concentrated in its key exchange, which the sibling topics on IKEv1 vs IKEv2 and multiple key exchanges address in detail.
- Scope of protection: IPsec protects traffic between the two gateways or endpoints that form a tunnel, whatever path the packets take between them.
- Layer: It works at the network layer, above Ethernet and below the transport layer.
- Defining documents: A family of IETF RFCs, with key exchange carried by the IKE protocol. The exact RFC numbers for each component should be taken from the IETF datatracker when you cite them in an audit.
- Where it appears: Firewalls, VPN concentrators, routers, cloud VPN gateways and endpoint VPN clients.
- Key management: Keys for each security association are set up by IKE, so a post-quantum change to IPsec is primarily a change to the key exchange, not to the packet protection itself.
When reviewing an IPsec deployment, ask each vendor which IKE version and key exchange groups their gateway supports, and confirm the answer against the version running on your devices.
MACsec and IPsec are often deployed together, but they protect different segments of a path. MACsec protects one link, while IPsec protects a tunnel between two endpoints that may cross several links, so the two do not replace each other. An organization may run MACsec on the Ethernet links inside a data center and IPsec on the tunnels that leave it, and each needs its own inventory entry and its own vendor question. The choice between them is usually decided by where the traffic must be protected, not by which is stronger, and this page does not rank them. Security leads should also note that the post-quantum work on each is owned by a different part of the stack: switch and NIC vendors for MACsec, and gateway and firewall vendors for IPsec. The two areas may have different update cycles, different support contracts and different test environments, so the migration plan should list them separately.
- Different segments: MACsec covers a link, IPsec covers a tunnel between endpoints.
- Different owners: Network switch teams and gateway or firewall teams often manage each one.
- Different defining documents: IEEE 802.1AE and MKA for MACsec, IETF RFCs and IKE for IPsec.
- Combined use: Both can be configured on the same path, in which case both need to be inventoried.
- Migration planning: Each needs its own vendor confirmation of post-quantum support and its own test window.
For an inventory, record each MACsec link and each IPsec tunnel separately, with the device, the software version and the owning team.
Key differences between MACsec and IPsec that matter in practice
MACsec and IPsec both encrypt traffic, but they act at different layers, cover different path lengths and are configured in different places. The cards below set out what each difference means for systems, configuration and decisions, using only what the sources on this page state.
Layer where protection applies
MACsec protects frames at the link layer, between directly connected devices on one link. IPsec protects packets at the network layer, so it is applied to IP traffic regardless of the link it crosses. This decides which device pairs must support each technology and where encryption starts and stops. Confirm the layer your deployment targets before you plan which devices terminate protection. Check the layer first, because it sets everything else on this list.
Reach beyond a single link
Because MACsec operates on one link, protection ends at the next hop, and any device that forwards the frame must decrypt it to forward it. IPsec can carry protected traffic across multiple links and routed networks until it reaches the endpoint that holds the security association. Teams should map which hops carry traffic in clear text before deciding where each technology is placed. The sources on this page do not address specific throughput or latency effects of either approach.
Who can terminate the protection
A MACsec session terminates on the link peers that negotiate it, which are usually switches, routers or network interface hardware on that link. An IPsec tunnel terminates at gateways or endpoints that hold its security associations, which can be far from the link where traffic originates. This affects who must hold keys, who must be upgraded and who you need to involve in a vendor review. Ask each vendor which components terminate the protection in your setup.
How the path is configured
MACsec is configured per link and must be enabled on each interface pair that participates. IPsec is configured per tunnel or policy and is set up between the two endpoints that negotiate it, often across many network segments. Expect MACsec changes to be made on each device along a link, and IPsec changes to be made at the tunnel endpoints. Review both configuration sets with your network team before any change window. The sources on this page do not give configuration steps, so confirm them in your vendor's documentation.
Introducing post-quantum key exchange
Post-quantum key exchange would enter IPsec through its IKE key exchange negotiation, while MACsec's key agreement sits in a different place on the link. The protocol versions and groups that carry the exchange differ, so the migration path for each is not the same. Ask your vendors whether and how each protocol version will carry post-quantum key exchange, and which hybrid forms they plan to support. The sources on this page do not state how either protocol will add post-quantum key exchange, so check the specifications and vendor roadmaps directly.
RFC 10024Where MACsec and IPsec appear: protocols, equipment, vendor documents and audit requests
Start by finding where each protocol actually runs in your estate. MACsec is a link-layer protection that is configured on switch ports and, in some products, on network interface cards, so the question for a security lead is which switch models, NIC drivers and firmware in the environment support it and at what version. IPsec is a network-layer protection that terminates on gateways, firewalls, routers and tunnel endpoints, so the question shifts to which gateway platforms and software releases terminate your tunnels and whether they negotiate the key exchange you intend to use. The two protocols rarely sit on the same device, so an inventory that lists only one of them will miss the other.
Vendor documentation is where support is stated, and it is the source to check before any design decision. Look for the MACsec and IPsec sections of each product's configuration guide, the release notes for the exact version you run, and any statement about post-quantum key exchange. The sources supplied for this section do not list which switch, NIC or gateway products support MACsec or IPsec with post-quantum key exchange, so confirm support against each vendor's documentation for your own hardware and software rather than assuming it from a product family name.
Tenders and audit requests tend to ask narrower questions than the vendor guides answer. Procurement reviewers often ask whether a product supports a named key exchange, whether that support is in a stated release, and whether the configuration is documented well enough for an auditor to verify it. Write those questions into the request and ask the vendor to point to the exact guide section and release number, so the answer can be checked later. Where a vendor answers with a roadmap rather than a shipping release, record that difference, because it changes what you can deploy this year.
For each protocol, keep a short evidence file: the device model, the software or firmware version, the vendor document and section that describes the feature, and the date you checked it. This file is what an assessor will ask to see, and it is also what you will need when a vendor updates a release and the older answer no longer holds. Plan to recheck it at each upgrade, since support for a given key exchange can arrive or change between versions.
How to work out whether MACsec, IPsec or both apply to your network
This sequence establishes which encryption layer your traffic needs, starting from the requirement that names it and ending with a documented view of what is enabled today. Each step produces a record you can check, so the decision rests on evidence from your contracts, inventory, vendor documentation and configuration.
Find the requirement that names the protocol
Start with the contract, tender, audit request or internal policy that governs the traffic in scope, and search it for the words MACsec, IPsec, IKEv2 or link-layer encryption. Record the exact clause, the document version and the party who wrote it. If the requirement names only a goal, such as encryption in transit between sites, write that down too, because it does not decide the protocol on its own. The output is a short list of requirements, each with its source, that you can show an auditor or procurement reviewer.
Map the links and paths that carry the traffic
Use your network inventory to list each link and path that carries the in-scope data, separating point-to-point connections between switches or routers on the same network segment from traffic that crosses routed networks, the internet or a provider's cloud. Mark which links are hop-by-hop Ethernet connections and which are end-to-end or site-to-site tunnels. The output is a diagram or table that shows, for each path, whether the segment is a link layer segment or a network layer path.
Check vendor documentation for protocol support
For each device and product on those paths, open the vendor's documentation for the installed version and search for MACsec and IPsec support, including the supported IKE version and any key exchange groups listed. Note the version number, edition and license tier that the feature requires, because support is often limited to particular models or software releases. Where the documentation says nothing on a point, record that gap and ask the vendor in writing rather than assuming support exists. The output is a per-device table of supported protocols and versions with links to the source pages.
Review current configuration on each device
On each device in scope, export or view the running configuration and look for MACsec settings on physical interfaces and IPsec settings in tunnel, VPN or crypto configuration, noting which features are enabled, which are defined but inactive, and which are absent. Record the protocol version and any key exchange settings that are visible. Compare the result against the mapped paths from the previous step to find any link or path that carries traffic without the required protection. The output is a configuration record per device that shows what is enabled today.
Decide which protocols apply to each path
Combine the requirements, the path map, the vendor support records and the configuration records to decide, path by path, whether MACsec, IPsec or both are needed. Mark a path as MACsec where the requirement is for link-layer protection on a hop, as IPsec where it is for network-layer protection across routed networks, and as both where the requirements and the path call for each. Flag any path where support or configuration is missing and assign a named owner to resolve it. The output is a decision table with one row per path, the reason for each choice, and the source records it relies on.
Common mix-ups between MACsec and IPsec in tenders and vendor claims
MACsec and IPsec both encrypt traffic, but they operate at different layers and protect different segments of a path. Tender responses and vendor material often use one name where the other is meant, or attach post-quantum claims without saying which component they cover. The cards below list the confusions to check before accepting a claim.
Link-layer protection is not end-to-end
MACsec protects frames on a single link between two directly connected devices. Traffic is encrypted hop by hop, so it is readable at each intermediate device unless another layer protects it. A vendor describing MACsec as protecting data from source to destination is describing a scope the protocol does not cover. Ask which hops are covered, where traffic is decrypted, and whether a network-layer protocol is also in use for the end-to-end path.
RFC 9954 textOne term used for the other's scope
Tender documents sometimes ask for encryption of all traffic in transit without stating a layer, and a response may name MACsec or IPsec to cover it. Each covers a different segment and encapsulation, so a single name can leave parts of the path unprotected. Check whether the response names the layer, the link or tunnel endpoints, and which traffic types fall inside the protected scope.
Claims made under one name, meant for the other
Vendor material can use a single product label for both link-layer and tunnel features, or describe a feature under a name that belongs to the other protocol. A claim about key exchange, algorithm support or encryption strength may be true for one protocol and silently extended to the other. Ask the vendor to name the protocol, the version and the component each claim refers to, and request the configuration that enables it.
Post-quantum claims without a version or component
A statement that a product supports post-quantum encryption does not say which key exchange, which parameter set or which protocol version it applies to. Post-quantum work in IPsec and in TLS is defined by separate documents and separate components, so support in one does not establish support in the other. Ask for the specific version, the named key exchange group, and the standard or RFC each feature implements. The sources do not establish that MACsec has a published post-quantum key exchange, so confirm that with the vendor directly.
NIST FIPS 203Assuming a standard covers the whole product
A reference to a standard or RFC in a tender response does not show that a product implements all of it, or that the implemented version is the one named. Drafts and informational documents are not the same as standards track publications. Check the status of each cited document, confirm which parts the product implements, and ask for interoperability evidence against the versions your environment runs.
Questions people search about MACsec and IPsec
Are MACsec and IPsec the same thing?
No. MACsec and IPsec protect traffic at different layers of the network stack and solve different problems. MACsec operates at the link layer (Layer 2), so it protects frames between directly connected devices, such as a switch and its neighbor on the same segment. IPsec operates at the network layer (Layer 3), so it protects IP packets across routed paths, which makes it the usual choice for tunnels between sites or from remote users to a gateway. Both provide encryption and integrity, but their scope, key management and typical deployment differ. The sources listed on this page do not compare their overhead or performance, so confirm those points against the standards and your own hardware before relying on them.
Which one is newer, MACsec or IPsec?
IPsec is the older of the two in general use. Its protocol suite was developed through the IETF in the 1990s and has been revised several times, with IKEv2 now the current key exchange version. MACsec was standardized later as an IEEE link-layer security standard. The sources listed on this page do not give dates for MACsec's publication or revision history, so check the IEEE 802.1AE documentation and the IETF RFCs directly for exact dates and current revisions.
Which one does a rule or customer usually ask for?
The answer depends on the requirement's wording. A rule or customer that asks for protection of traffic between sites, or for remote access, usually points toward a network-layer tunnel such as IPsec. A requirement to protect traffic between adjacent devices in the same facility, such as between switches or between a switch and a router on a shared link, points toward link-layer encryption such as MACsec. Ask the requester which hop or path must be protected, and whether the requirement names a protocol or only a security outcome, because a requirement stated as an outcome can often be met by either approach.
Do I need both MACsec and IPsec?
Not necessarily. Each protects a different segment, so an environment may use one, the other, or both where they cover different paths. For example, link-layer encryption can protect a local segment while network-layer tunnels protect traffic that leaves the site. Whether both are needed depends on which paths carry sensitive data and what your requirements name as in scope. The sources listed on this page do not set out a recommended combination, so decide based on your own data flow mapping and confirm the design with your security architect.
What does post-quantum key exchange mean for MACsec and IPsec?
Post-quantum key exchange concerns how the keys for these protocols are established, and it applies differently to each. IPsec uses IKE for key exchange, and the IETF is working on post-quantum key exchange methods for IKEv2 that would sit within that negotiation. For TLS, the IETF has defined hybrid groups that combine ML-KEM with ECDHE, and RFC 10024 is an example of that approach. The sources listed on this page do not describe a post-quantum key exchange method for MACsec, so check the IEEE 802.1 work and your vendor's documentation to confirm what is supported. Confirm the status of each protocol against its current specification.
What should I ask a vendor about MACsec and IPsec support?
Ask the vendor which protocol versions and key exchange methods their product supports, and whether those are documented in their configuration guides. Ask whether MACsec is supported on the ports you need, and which key agreement mechanism it uses. For IPsec, ask which IKE version is implemented and whether any post-quantum key exchange methods are available, and whether they are enabled by default or must be configured. Request written confirmation of supported features and their versions, because vendor claims about post-quantum support should be checked against the specific product and firmware you will run.
Where can I check the standards behind MACsec and IPsec?
Start with the primary documents. For IPsec and IKE, consult the IETF RFCs that define the protocol and its key exchange, along with any post-quantum drafts that are in progress. For MACsec, consult IEEE 802.1AE and the related IEEE 802.1 documents. For post-quantum key exchange in TLS, the sources listed on this page include RFC 10024 and RFC 9954, which define hybrid groups and their combination framework. Check each document's status, because drafts and standards can change, and confirm which revision your equipment implements.
How DeployOpen helps plan and configure post-quantum migration on these links
DeployOpen plans, implements and documents self-hosted platforms inside your own infrastructure, including the links that carry your traffic. For MACsec and IPsec, the work starts with a written scope that records where each protocol is deployed and which key exchange it uses, then moves into configuration, testing and handover.
How we scope
- Engagements are fixed-scope, with the links, devices and protocol versions agreed in writing before work starts.
- We inventory which links use MACsec at the link layer and which use IPsec at the network layer, and record the versions in use.
- The written scope states which key exchange methods are in place today and which configuration changes are in or out of scope.
How we build
- We configure IPsec key exchange settings and test the negotiated groups on the links in scope, in your environment.
- We review how MACsec key agreement is set up on the links in scope and document where it is handled by your switches or routers.
- We test each change for interoperability with the peer devices on the links in scope before it moves toward production.
How we hand over
- You receive written documentation of each configuration change, the tested versions, and the settings applied to each link.
- The handover records which items were verified in testing and which still need confirmation against your vendor's current documentation.
- Your security and network teams receive the evidence they need to review the configuration in their own change process.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement ends.
- When vendors release new versions, a retainer lets us retest the links in scope against the updated configuration.
- Confirm current interoperability and supported key exchange groups for your exact device versions with the vendor before you rely on them.

