Courseiva
PCNSEChapter 18 of 19Objective 2.3

Deployment Scenarios and Migration Best Practices

Deployment scenarios and migration best practices. When you plug a new Palo Alto firewall into a live network, you are deciding exactly how it will see traffic and assign addresses. Getting this wrong means dropped packets, broken applications, and a very angry boss – so PCNSE wants you to know the three core modes (virtual wire, Layer 2, Layer 3) and the safest way to swap out an old firewall without causing a blackout.

12 min read
Advanced
Updated Jul 23, 2026
Reviewed by Johnson Ajibi· Senior Network & Security Engineer · MSc IT Security

A simple way to picture Deployment Scenarios and Migration Best Practices

The Office Building Relocation Analogy

An office building’s address and internal layout are the heart of how its occupants receive mail and visitors. If the entire company decides to move to a new office block down the street, the building manager cannot just change the street number overnight and expect deliveries to arrive correctly. First, the manager must choose a deployment scenario for the new space: does the company want to keep the exact same internal room numbering scheme (Layer 2) so that employees feel at home immediately, or does it want to start fresh with a completely new numbering system and street address (Layer 3) to modernise the layout? For the busiest, most sensitive teams, the manager might use a virtual wire – a simple transparent passthrough where no room numbers are changed at all, just the physical walls moved around them. The migration from the old building to the new one is the critical phase. The manager cannot just flip a switch; she must move one team at a time, testing that each new desk can still receive mail from the post room and that the fire exit routes still work. If she moves the CEO’s office before the network closet is patched, the CEO cannot call a cab – a failed migration. The goal is to have every employee working in the new building with zero lost letters and zero missed meetings, all while the old building is slowly emptied and decommissioned.

How It Actually Works

A Palo Alto Networks firewall can be placed into a network in three fundamental deployment modes: virtual wire, Layer 2, and Layer 3. Each mode changes how the firewall sees and processes traffic. For a complete beginner, think of the firewall as a security guard standing in a hallway. In virtual wire mode, the guard does not ask for any identification; he simply inspects everyone who walks through and lets them pass or stops them, without changing their name tag. The firewall becomes invisible to the network – it has no IP address of its own on the segment and does not participate in routing. This mode is perfect when you want to insert security into an existing network without redesigning IP addresses or changing the switch and router configurations. The firewall simply forwards frames (data packets) between two interfaces as if they were a single wire.

In Layer 2 mode, the firewall behaves like a transparent bridge. It has an IP address for management – a way for the administrator to talk to it – but it does not route traffic. Instead, it learns MAC addresses (the hardware addresses of devices) and forwards frames based on those addresses, just like a switch. The benefit is that the firewall can still inspect traffic and enforce security policies without requiring any changes to the IP addressing scheme of the network. It sits in the middle of a broadcast domain, like a security checkpoint inside a single office floor where everyone already knows each other’s desk numbers.

In Layer 3 mode, the firewall acts as a router. It has its own IP addresses on each interface, it runs routing protocols (like OSPF or BGP) to exchange routes with neighbouring routers, and it makes forwarding decisions based on destination IP addresses. This mode requires you to assign new IP subnets to the firewall’s interfaces and often means renumbering adjacent devices. Layer 3 mode is the most flexible because the firewall can perform all advanced features – NAT (network address translation), VPN termination, traffic shaping, and deep packet inspection on routed traffic. It is the default mode for most internet-facing deployments.

Why do these modes exist? Because networks are messy and businesses cannot always re-IP everything just to add a firewall. Virtual wire and Layer 2 let you insert security without architectural change. Layer 3 lets you take full control when you can plan the addressing.

Migration from a legacy firewall (like a Cisco ASA or a Check Point appliance) is a separate but equally critical skill. The goal is to replace the old firewall with a Palo Alto firewall with minimal downtime and zero security gaps. The best practice is the “pre-stage and cutover” method:

First, physically rack and cable the new Palo Alto firewall alongside the old one.

Configure the Palo Alto firewall in the exact same deployment mode as the legacy device (virtual wire, Layer 2, or Layer 3).

Build your security policies on the Palo Alto offline – use the built-in migration tool (Expedition) or manually translate rules.

Connect the Palo Alto interfaces to a switchport that mirrors the old firewall’s connections, but keep the Palo Alto interfaces disabled.

When ready, schedule a maintenance window, shut down the old firewall, enable the Palo Alto interfaces, and test traffic flow.

Keep the old firewall powered off but connected as a rollback plan for at least 48 hours.

This method avoids the classic trap of trying to “hot swap” rules on the fly. The PCNSE exam expects you to know that virtual wire mode is the simplest for migration because it requires no IP changes at all. Layer 3 migrations often fail because administrators forget to update the default gateway on end devices or redistribute routes.

Another key concept is the use of “logical” versus “physical” interfaces. In virtual wire mode, you pair two physical interfaces (or sub-interfaces) into a virtual wire. Traffic enters one and exits the other with no MAC or IP header changes. In Layer 2, you create a VLAN interface (an L3 interface) for management but traffic stays bridged. In Layer 3, each physical interface or sub-interface gets its own IP address.

The exam also tests your understanding of “tap mode” – a fourth, less common deployment where the firewall only listens to traffic (like a network sniffer) and does not block anything. This is used for monitoring only, not for enforcement.

Finally, migration best practices include creating a migration plan document, testing in a lab first, using the “Security Policy Optimizer” tool to clean up unused rules, and always having a rollback strategy. The most common exam trap is assuming you can migrate a virtual wire firewall to Layer 3 without changing the IP scheme – you cannot, because Layer 3 requires IP addresses on the firewall interfaces, which changes the network’s addressing.

A flowchart showing the migration process from a legacy firewall to a Palo Alto firewall, starting with deployment mode assessment and ending with policy optimisation.

Walk-Through

1

Assess the existing network topology and deployment mode

Before any migration, you must document the legacy firewall's current mode (virtual wire, Layer 2, or Layer 3) and the IP addresses, VLANs, and routing protocols in use. This determines how you will configure the Palo Alto firewall. Skipping this step leads to incompatible interface setups.

2

Pre-stage the Palo Alto firewall alongside the legacy device

Physically install the new firewall in the same rack and connect the same cables to mirror the legacy device's connections, but keep the Palo Alto interfaces administratively down. This allows you to configure the firewall offline without affecting live traffic.

3

Translate legacy security policies using Expedition or manual configuration

Use Palo Alto's Expedition tool to import the legacy firewall's configuration and automatically convert ACLs and NAT rules into Palo Alto policy objects. Review and clean up the converted rules – remove duplicates and expired entries – to avoid overly permissive or conflicting rules.

4

Conduct a controlled cutover during a maintenance window

Power down the legacy firewall, then enable the Palo Alto interfaces. Immediately test critical traffic flows (web, email, VPN, DNS) to confirm the firewall is passing traffic correctly. Keep the legacy device powered off but connected for at least 48 hours as a rollback option.

5

Monitor logs and optimise policies post-migration

After cutover, continuously monitor traffic logs for denied traffic that should be permitted. Use the Security Policy Optimizer to identify unused or overly broad rules. Adjust policies as needed, then decommission the legacy device only after a week of stable operation.

What This Looks Like on the Job

An IT professional at a mid-sized company is tasked with replacing an ageing Cisco ASA firewall that connects the corporate office to the internet. The company has 500 users, three internal subnets, and a static public IP from the ISP. The ASA is in Layer 3 mode with NAT (it translates private internal IPs to the public IP).

The IT professional starts by creating a detailed migration plan. She physically racks the new PA-Series firewall in the same server rack, just above the Cisco ASA. She connects the same copper cables from the ISP modem and the internal switch to the Palo Alto interfaces, but leaves the Palo Alto ports administratively down. She then uses Expedition (Palo Alto’s free migration tool) to import the Cisco ASA configuration. Expedition converts the ASA ACLs (access control lists) and NAT rules into Panorama or local firewall policy format. She reviews the converted rules, merging duplicates and removing expired ones.

Next, she sets up the Palo Alto firewall in Layer 3 mode. She assigns the same IP address to the Palo Alto’s external interface that the ASA used, and configures the internal interface with the same default gateway IP for the internal subnet. She builds a simple security policy: allow internal users to browse the web (HTTP/HTTPS), deny inbound traffic except for VPN, and permit only necessary outbound services like DNS and email.

On cutover day, she sends a company-wide email that there will be a 15-minute internet outage at 10:00 PM. She logs into the ASA via SSH, performs a “write mem” to save the running config, then shuts down the ASA. She immediately logs into the Palo Alto and commits the configuration. She enables the external and internal interfaces. She pings the ISP’s next-hop IP from the Palo Alto – successful. She asks a colleague in the office to load a website – successful. She then monitors the traffic logs for 30 minutes, looking for denied traffic that should be permitted. She finds that the internal DNS server’s queries are being dropped because the DNS server’s source IP was not in the allowed list. She quickly adds a temporary allow rule, then refines it the next morning.

Finally, she leaves the ASA powered off but cabled in place for 72 hours as a rollback option. If something catastrophic happens, she can power the ASA back on and re-cable in 5 minutes. After a week of stable operation, she decommissions the ASA and updates the network diagram.

The key actions an IT professional performs in this scenario are:

Pre-staging the firewall with identical IP and topology settings.

Using Expedition tool for rule conversion.

Conducting a maintenance window with a clear rollback.

Testing traffic flows for all critical services (email, web, VPN, DNS).

Monitoring logs for policy violations post-cutover.

Decommissioning the legacy device only after full confidence.

How PCNSE Actually Tests This

PCNSE exam 2.3 tests your ability to plan and execute firewall deployments in virtual wire, Layer 2, and Layer 3 modes, plus migration from legacy firewalls. Expect approximately 5–8 questions on this topic. The exam loves to trick you with mode-specific behaviours and migration pitfalls.

Key concepts that appear repeatedly:

Virtual wire mode characteristics: no IP address on the firewall interfaces, no MAC learning (frames are forwarded unchanged), no routing protocols, and it can only inspect traffic passing between the two paired interfaces. The exam will give you a scenario like “two switches connected by a firewall with no IP configuration” – the answer is virtual wire.

Layer 2 mode: the firewall has a management IP (VLAN interface) but does not route. It bridges frames and can run STP (Spanning Tree Protocol) as a switch does. The trap: beginners think Layer 2 mode means the firewall is invisible, but it still has an IP for management and can participate in VLAN tagging.

Layer 3 mode: the firewall routes traffic, supports NAT, VPN, dynamic routing (OSPF, BGP), and can have multiple virtual routers. The exam will test that you cannot use NAT in virtual wire or Layer 2 modes – NAT is a Layer 3 function.

Tap mode: a passive-only mode where the firewall copies traffic but does not block. Common exam question: “Which deployment mode allows zero impact on traffic flow but provides no prevention?” – answer is tap mode.

Migration best practices are heavily tested. Know these patterns:

The “pre-stage and cutover” method is the recommended approach.

The Expedition tool converts Cisco ASA, Check Point, and other firewall configs to Palo Alto policy.

Always maintain a rollback plan – the exam presents a scenario where the migration fails and asks what the next step is: roll back to the old firewall.

The biggest trap: assuming you can migrate a virtual wire firewall to Layer 3 without IP renumbering. You cannot – Layer 3 requires IP addresses on the firewall interfaces.

Another trap: thinking you can run dynamic routing protocols in virtual wire mode. You cannot – virtual wire has no Layer 3 capabilities.

The exam also tests that during migration, you must ensure that the new firewall’s security policies are at least as permissive as the old one before cutover to avoid breaking applications.

Specific question types: - “An administrator wants to insert a firewall between a router and a switch without changing IP addresses. What deployment mode should be used?” Virtual wire. - “A company is replacing a Cisco ASA in Layer 3 mode with a Palo Alto firewall. What is the first step?” Pre-stage the Palo Alto alongside the ASA. - “Which tool helps convert legacy firewall rules to Palo Alto format?” Expedition.

Memorise this list for the exam:

Virtual wire: no IP, no routing, transparent.

Layer 2: management IP, bridges frames, like a switch.

Layer 3: IP addresses, routing, NAT, VPN.

Tap: passive copy, no blocking.

Migration steps: pre-stage, convert rules, cutover in maintenance window, monitor, rollback ready.

Key Takeaways

Virtual wire mode inserts a firewall without changing any IP addresses or requiring routing configuration.

Layer 2 mode gives the firewall a management IP but keeps traffic bridged like a transparent switch.

Layer 3 mode turns the firewall into a router, supporting NAT, VPN, and dynamic routing protocols.

Migration from a legacy firewall should always be done with a pre-stage and cutover plan, not a live hot swap.

Palo Alto's Expedition tool is the recommended utility for converting Cisco ASA and Check Point firewall configurations to Palo Alto policy.

Tap mode is used for passive monitoring only and provides no traffic blocking or prevention capabilities.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Virtual Wire Mode

No IP address assigned to data interfaces

Cannot perform NAT or routing

Traffic forwarded based on ports, not IP headers

Layer 3 Mode

Each interface has its own IP address

Full NAT and routing capabilities (OSPF, BGP)

Traffic forwarded based on destination IP address

Tap Mode

Passive copy of traffic; never forwards packets

Used for monitoring only, not inline security

Requires a network tap or SPAN port

Virtual Wire Mode

Active inline forwarding between two interfaces

Used for security enforcement (blocking threats)

Directly connected between two network devices

Layer 2 Mode

Bridges frames based on MAC addresses

Management IP via VLAN interface only

No support for dynamic routing protocols

Layer 3 Mode

Routes packets based on IP addresses

Multiple routed interfaces with IPs

Supports OSPF, BGP, and static routes

Expedition Tool

Automatically converts legacy firewall configs (Cisco, Check Point)

Generates Palo Alto policy objects and rules

Reduces human error during migration

Manual Rule Creation

Requires administrator to manually type each rule

Time-consuming and prone to mistakes

No automatic translation of NAT or ACL logic

Watch Out for These

Mistake

Virtual wire mode means the firewall has no IP address at all, so you cannot manage it.

Correct

Virtual wire mode does not assign an IP to the data interfaces, but you can still manage the firewall via a dedicated management interface (MGT) that has its own IP address.

Beginners conflate 'no data-plane IP' with 'no management access'. The management interface is separate and always reachable regardless of deployment mode.

Mistake

You can run OSPF or BGP on a firewall in Layer 2 mode to exchange routes.

Correct

Layer 2 mode does not route traffic; it bridges frames. Routing protocols require Layer 3 interfaces. You must use Layer 3 mode for dynamic routing.

The term 'Layer 2' sounds similar to a switch, and many cheap switches support static routing, so beginners assume a firewall in Layer 2 mode can also route. It cannot.

Mistake

During a firewall migration, you can simply replace the old firewall with the new one while both are powered on (hot swap).

Correct

A hot swap is dangerous because IP addresses and MAC tables may conflict. The best practice is a controlled cutover: power down the old device, then power up the new one.

People see 'high availability' features and think they can just pull cables. Most legacy firewalls cannot exactly mirror MAC addresses, causing network loops and outages.

Mistake

Tap mode is the same as virtual wire mode because both forward traffic without changes.

Correct

Tap mode is a passive copy – it never forwards traffic to the destination. Virtual wire actively forwards frames between two interfaces. Tap mode is for monitoring only, not for inline security.

Both modes are 'invisible' to traffic, so beginners lump them together. The key differentiator is that virtual wire is inline (traffic passes through), while tap mode is out-of-band (the firewall only listens).

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the difference between virtual wire and Layer 2 mode in a Palo Alto firewall?

Virtual wire mode has no IP address on the data interfaces and forwards frames unchanged between two ports, like a bump in the wire. Layer 2 mode gives the firewall a management IP (VLAN interface) and bridges traffic based on MAC addresses, similar to a switch.

Can I use NAT in virtual wire mode?

No. NAT is a Layer 3 function that requires the firewall to have IP addresses and make routing decisions. Virtual wire mode operates below Layer 3 and cannot perform any network address translation.

How do I convert my old Cisco ASA firewall rules to Palo Alto format?

Use Palo Alto's free Expedition tool (or the built-in Migration Tool in Panorama). It imports the ASA configuration and converts ACLs and NAT rules into Palo Alto policy objects. You can then review and refine them before committing.

What is tap mode and when would I use it?

Tap mode copies traffic from a network tap or SPAN port to the firewall for inspection, but the firewall never blocks or forwards traffic. Use it for monitoring and threat detection without risking any impact on live traffic.

Do I need to change IP addresses if I migrate from a Layer 3 legacy firewall to a Palo Alto in virtual wire mode?

Yes. If the legacy firewall is in Layer 3 mode, you cannot simply put the Palo Alto in virtual wire mode because virtual wire does not route. You would either keep the Palo Alto in Layer 3 mode matching the legacy IP scheme, or re-IP the whole network to remove the firewall as a routing hop.

What is the biggest risk during a firewall cutover?

The biggest risk is that the new firewall's security policies block critical traffic (like DNS, DHCP, or VPN) that was allowed on the legacy device. Always test all essential services immediately after cutover and have a rollback plan ready.

Terms Worth Knowing

Keep going

You've finished Deployment Scenarios and Migration Best Practices. Continue through the PCNSE study guide to build a complete picture of the exam.

Done with this chapter?