Layer 2 Interfaces together with Vlan Interfaces or Layer 3 Interfaces

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layer 2 Interfaces together with Vlan Interfaces or Layer 3 Interfaces

L0 Member

Hello Community

 

I am struggling to choose one of the following two configurations. Which concept would you choose?

 

I have a trunk between the Paloalto (PA-5060) and a switch.
In the first variant I would configure the trunk interface on the paloalto as a layer 3 interface (subinterfaces). The IP, vlan tag etc. are directly on the interface. In the secound variant I would configure the trunk interface as layer 2 which I assign a vlan interface.

 

Simplified the following network scheme:

paloalto-l2-or-l3-interface.jpg

 

Are there any advantages/disadvantages about these the two variants? Are there some best practices about when to use L2 or L3 Interfaces?

One advantage of the L2 interface I thought about is, that unused Ports on the Paloalto are less difficult to integrate to an existing Vlan/network.

 

Regards
Dominik

7 REPLIES 7

Cyber Elite
Cyber Elite
layer2 makes it possible to plop the firewall, using as many ports as you like, in the middle if a switched environment with the same broadcast domains east and west (you could bridge 3 switches all holding the same vlans, for example) layer3 makes for a more traditional routed environment where each network requires routing to get to another network from a security perspective having routing in the mix, prevents 'rogue' subnets in one vlan from being able to traverse onto a legitimate subnet in a different vlan, it also simplifies segregation
Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

Hi Reaper

 

Thanks for your response.

 

In my situation there is only one aggregated link from the switching fabric to the firewall.
Therefore I dont need the firewall to switch packets. So i thought about configuring the link as L3.

 

The reason why I am still considering a L2 interface is that I can bind them to an vlan interface which is L3. With the Vlan interfaces i am able to route to different vlans/subnets with the virtual router from Palo. Also with this configuration i am still able to easily attach network devices to the Firewall.

 

Are there any drawbacks if I consider the L2 configuration method ?

that works in layer3 mode as well, using tagged sub-interfaces no real drawbacks in using Layer2 though, security wise all 3 modes are the same Layer2 is a little more complex because you need to configure 3 different settings (vlan, vlan interface and physical interface/sub-interfaces) but that's basically the only difference
Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

L7 Applicator

My preference is to use straight Layer-3 or Layer-3 + subinterfaces.  It is more simple & straight-forward to configure, and the great majority of the customers I've worked with use these L3 modes.  My rule of thumb is: "use L3 interfaces unless you can articulate the specific reasons why your deployment requires L2 w/ VLAN interfaces".    

L0 Member

I'm looking to configure Layer 3 subinterfaces with the access layer switches pointing to the subinterface IP as it's gateway.  As this is East/West traffic, I am concerned about routing between the "East VLANs" routing to the "West network interfaces".  I have all the interfaces in the same virtual router.  The firewall isn't operational yet, but hope it works.  I cannot find much documentation on this type of configuration.

@Todd_Benshoof 

this sounds pretty straight forward, do you have a network design?

 

if you have all L3 (sub)interfaces, and they're all in the same VR, routing will happen automagically (the routing table will be populated with 'connected' networks and route from the get-go)

 

 

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

Good evening,
Please Help find solution with example with L2, L3 sub, L3. West solution.
I find How to Configure a Layer 2 to Layer 3 Connection on the Palo Al... - Knowledge Base - Palo Alto Netw...
But KB missing part of solution.

  • 17273 Views
  • 7 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!