Showing posts with label VLANs. Show all posts
Showing posts with label VLANs. Show all posts

Monday, December 1, 2014

Segmenting Enterprise Networks: Best Practices with VLANs and ACLs

December 2014   |   Reading Time: 9 min read

In modern enterprise networks, effective segmentation is a critical component for maintaining performance, security, and policy enforcement. One of the most widely adopted segmentation strategies involves the combined use of VLANs (Virtual Local Area Networks) and ACLs (Access Control Lists). In this post, we walk through practical design strategies and technical guidelines to ensure proper segmentation using these tools.

Why Segment Networks?

Segmentation serves multiple purposes: reducing broadcast domains, isolating sensitive devices, applying granular security policies, and optimizing performance. By segmenting networks, you also make troubleshooting more manageable, and compliance with regulatory frameworks becomes easier.

VLAN Fundamentals in Segmentation

VLANs allow Layer 2 separation of devices into logical broadcast domains, regardless of their physical location. A well-structured VLAN scheme reflects business or security domains. Examples include separating Finance, HR, Guest Wi-Fi, and VOIP into distinct VLANs.

Typical recommendations:

  • Use a dedicated VLAN for infrastructure components like switches, firewalls, and monitoring tools.
  • Avoid flat networks—segment by role, not just location.
  • Apply a logical VLAN numbering scheme aligned to site and function.

Role of Access Control Lists (ACLs)

While VLANs provide segmentation, they do not enforce any security or traffic rules by themselves. ACLs bridge this gap by allowing or denying traffic between VLANs based on source, destination, and protocol. ACLs are enforced at Layer 3 boundaries—typically on the router or Layer 3 switch interface for each VLAN (SVI).

Tips for effective ACL use:

  • Use a default deny policy at the end of each ACL.
  • Permit only the necessary traffic between VLANs (e.g., DNS, HTTPS, SMTP).
  • Document every rule to prevent policy sprawl.
  • Apply ACLs inbound at the routed interface where possible to reduce unnecessary processing.

Sample Configuration

    ! Define VLANs
    vlan 10
     name Finance
    vlan 20
     name HR
    vlan 30
     name Guest
    vlan 40
     name Voice

    ! Assign VLANs to switchports
    interface FastEthernet0/1
     switchport access vlan 10
    interface FastEthernet0/2
     switchport access vlan 20

    ! Create Layer 3 interfaces
    interface Vlan10
     ip address 10.10.10.1 255.255.255.0
    interface Vlan20
     ip address 10.10.20.1 255.255.255.0

    ! Apply ACL
    ip access-list extended BLOCK_GUEST_TO_FINANCE
     deny ip 10.10.30.0 0.0.0.255 10.10.10.0 0.0.0.255
     permit ip any any

    interface Vlan30
     ip access-group BLOCK_GUEST_TO_FINANCE in
  

Testing and Monitoring

Ensure that segmentation policies are verified with tools like packet captures or log reviews. Periodically test inter-VLAN reachability to verify that ACLs are working as expected. For larger environments, consider tools like Cisco Prime, SolarWinds, or open-source options such as ntopng or OpenNMS for network visibility.

Common Pitfalls to Avoid

  • Neglecting to secure the management VLAN.
  • Failing to maintain ACL documentation—leads to shadow rules and troubleshooting nightmares.
  • Overusing permit ip any any rules, defeating the purpose of segmentation.
  • Using trunk links without VLAN pruning, exposing all VLANs to every device.

Future Considerations

While VLAN and ACL-based segmentation still reign in 2014, enterprises are beginning to explore SDN and microsegmentation models—particularly in data centers or cloud-adjacent environments. Regardless of new trends, the fundamentals of VLANs and ACLs remain vital in traditional enterprise LANs.

 

Enjoyed this deep dive?
Share your thoughts or ask a question—this blog is for engineers who want clarity and depth.


Eduardo Wnorowski is a network infrastructure consultant and technologist.
With over 19 years of experience in IT and consulting, he brings deep expertise in networking, security, infrastructure, and transformation.
Connect on Linkedin

Wednesday, January 1, 2014

Designing Layer 3 Access Layer Architectures

January 2014 - Reading time: 7 minutes

Designing Layer 3 access layer architectures has become increasingly relevant in enterprise networks seeking performance, scalability, and simplified routing. In this post, we walk through the principles behind Layer 3 at the access layer and why it may be a better choice in modern enterprise networks than traditional Layer 2 access.

What Is Layer 3 at the Access Layer?

Traditionally, the access layer operates at Layer 2, forwarding frames based on MAC addresses and using VLANs for segmentation. However, in Layer 3 designs, the access layer performs routing between VLANs and communicates with the distribution layer via IP rather than Spanning Tree-based loops.

Advantages of Layer 3 Access

  • Improved Convergence: By removing Spanning Tree dependencies, Layer 3 designs converge faster after topology changes.
  • Better Scalability: Routing protocols scale better than Layer 2 flooding domains.
  • Simplified Troubleshooting: IP-based routing tools make problem resolution clearer and more deterministic.
  • Fault Isolation: Layer 3 boundaries help contain failures and limit broadcast storms.

Use Case: VLANs and SVI Design

Each access switch may host its own SVIs (Switched Virtual Interfaces) for connected VLANs. DHCP and access policies are typically localized at the switch, which becomes the default gateway for end devices.

For example, in a 3-floor office building, each floor might have its own access switch configured with:

interface Vlan10
  ip address 10.10.10.1 255.255.255.0
interface Vlan20
  ip address 10.10.20.1 255.255.255.0
  

Routing Protocols at the Edge

To advertise these SVIs upstream, a dynamic routing protocol such as OSPF or EIGRP can be enabled on the access switch. This simplifies redistribution and enables ECMP (Equal Cost Multipath) if supported.

router ospf 10
  network 10.10.10.0 0.0.0.255 area 0
  network 10.10.20.0 0.0.0.255 area 0
  

By advertising directly from the access layer, you reduce the distribution layer’s workload and create a more hierarchical, routed design.

Considerations

  • Routing Capacity: Ensure your access switches can support routing at wire speed.
  • Policy Enforcement: ACLs may need to be replicated on multiple access switches unless centrally managed.
  • Redundancy: Use dual uplinks and routing protocols with fast convergence (like OSPF or EIGRP with tuning).
  • Design Consistency: Standardize VLAN and IP schemes for easier support.

When to Use It

Layer 3 access designs are ideal when your organization requires:

  • Rapid failover with minimal downtime
  • Clear IP boundaries for security or compliance
  • Routing-centric data center or branch environments

Smaller, flat networks may still benefit from Layer 2 simplicity, but as organizations grow, the operational advantages of Layer 3 become undeniable.

Understanding Layer 3 at the access layer is key to unlocking scalable and resilient enterprise network designs.



Eduardo Wnorowski is a network infrastructure consultant and technologist.
With over 19 years of experience in IT and consulting, he brings deep expertise in networking, security, infrastructure, and transformation.
Connect on Linkedin

Saturday, January 1, 2011

Layer 3 Switching vs Router-on-a-Stick for Inter-VLAN Routing

 January 2011    |   Reading time: 11 min

Inter-VLAN routing is the foundation of multi-subnet communication in enterprise LANs. Two dominant methods for achieving this are Layer 3 switching and the classic router-on-a-stick (ROAS) model. While both approaches accomplish the same goal, their performance characteristics, design implications, and scalability differ significantly.

Understanding Inter-VLAN Routing

In VLAN-based designs, each VLAN represents a separate broadcast domain. Devices on one VLAN cannot communicate with devices on another VLAN without a Layer 3 device forwarding the traffic. This is where inter-VLAN routing comes in—forwarding packets between VLANs based on IP routing logic.

What is Router-on-a-Stick (ROAS)?

ROAS is a legacy design where a single physical link between a router and a Layer 2 switch is trunked with 802.1Q encapsulation. The router has subinterfaces, each assigned to a VLAN. It receives tagged frames, routes them, and sends them back out the same interface.

ROAS Configuration Example

interface FastEthernet0/0
 no shutdown
!
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
  

What is Layer 3 Switching?

Modern multilayer switches can perform both Layer 2 and Layer 3 functions. Inter-VLAN routing is handled directly within the switch hardware using Switched Virtual Interfaces (SVIs). This allows for line-rate routing performance, eliminating the bottleneck of the single trunk link in ROAS.

SVI Configuration Example

interface Vlan10
 ip address 192.168.10.1 255.255.255.0
 no shutdown
!
interface Vlan20
 ip address 192.168.20.1 255.255.255.0
 no shutdown
!
ip routing
  

Performance and Scalability

ROAS is simple but does not scale well. All inter-VLAN traffic must traverse a single trunk, potentially oversaturating the link and introducing latency. In contrast, Layer 3 switches use ASICs to perform routing at wire speed, supporting hundreds of VLANs and routing instances concurrently.

Design Considerations

  • Use ROAS in small environments or for lab/testing purposes where budget is limited.
  • Use Layer 3 Switching in production networks requiring high throughput, HA, and reduced broadcast impact.
  • Ensure your switch supports IP routing and has sufficient CPU/ASIC resources for dynamic routing if needed.

Security Implications

With ROAS, all routed traffic flows through a central point, making it easier to apply ACLs and policies. However, it also introduces a single point of failure. Layer 3 switches support distributed policies (e.g., VACLs or port-based ACLs), offering more granular control but requiring more configuration effort.

Monitoring and Troubleshooting

show ip route
show ip interface brief
show interfaces trunk
show interfaces vlan 
  

These commands help verify routing table entries, SVI states, and trunk status. Monitor CPU load when routing via software on older switches to ensure routing doesn't impact overall performance.

Conclusion

While ROAS remains a valid technique for basic networks, Layer 3 switching is the standard for modern enterprises. It improves performance, simplifies design, and supports advanced features like HSRP, VRRP, OSPF, and more—all within a single chassis. Choose the method that aligns with your scale, performance goals, and architectural flexibility.


Eduardo Wnorowski is a network infrastructure consultant and technologist.
With over 16 years of experience in IT and consulting, he brings deep expertise in networking, security, infrastructure, and transformation.
Connect on Linkedin

Tuesday, November 2, 2010

DHCP Relay vs ip helper-address in VLAN Designs

November 2010    |   Reading time: 11 min

Dynamic Host Configuration Protocol (DHCP) is essential in automating IP address distribution across enterprise networks. When using multiple VLANs, clients are often located on different subnets than the DHCP server, requiring a relay mechanism. Two common terms—DHCP relay and ip helper-address—are often used interchangeably, but they involve slightly different layers of implementation and configuration logic.

Understanding the Need for DHCP Relay

DHCP is a broadcast-based protocol. When a client boots up and sends a DHCPDISCOVER message, it uses a layer 2 broadcast that does not cross subnet boundaries. This becomes a problem in modern networks where centralized DHCP servers serve multiple subnets. A relay mechanism is required at the layer 3 boundary (usually the VLAN’s default gateway) to forward requests to the server.

What Does ip helper-address Do?

On Cisco routers and multilayer switches, the ip helper-address command is used to enable UDP forwarding. It listens for incoming broadcast requests on specific UDP ports—including port 67 (DHCP server port)—and forwards them as unicast to the specified DHCP server.

DHCP Relay Agent Functionality

The DHCP relay agent acts at the router or L3 switch interface and modifies the packet by inserting its own IP address as the giaddr (Gateway IP Address) field. This tells the DHCP server which subnet the request originated from, allowing it to assign the appropriate IP scope.

Default UDP Ports Affected by Helper-Address

By default, ip helper-address forwards more than just DHCP-related traffic:

  • Port 67 – BOOTP/DHCP Server
  • Port 68 – BOOTP/DHCP Client
  • Port 69 – TFTP
  • Port 53 – DNS
  • Port 37 – Time
  • Port 49 – TACACS
  • Port 137 – NetBIOS Name Service
  • Port 138 – NetBIOS Datagram Service

This may result in unnecessary forwarding of non-DHCP traffic. To restrict this behavior, administrators can use ip forward-protocol to disable or selectively enable specific protocols.

Configuration Example

interface Vlan10
 ip address 10.10.10.1 255.255.255.0
 ip helper-address 192.168.1.5
!
no ip forward-protocol udp tftp
no ip forward-protocol udp netbios-ns
no ip forward-protocol udp netbios-dgm
  

DHCP Relay on Non-Cisco Devices

While Cisco uses ip helper-address as the configuration interface, other vendors often refer to this simply as DHCP relay. Devices from Juniper, HP, and Palo Alto offer similar functionality but use different command sets and terminology. Understanding how to set the giaddr and unicast the relay message is crucial regardless of the platform.

Common Troubleshooting Pitfalls

  • Missing giaddr: If the relay device doesn’t populate the gateway address, the DHCP server won’t know which pool to use.
  • ACL Blocking: Ensure that access control lists (ACLs) between the relay device and the DHCP server allow UDP ports 67 and 68.
  • Server Unreachable: Routing between the relay and server must be verified. No return path = no lease assignment.
  • Wrong scope: If scopes are misconfigured on the server, clients may receive incorrect addresses or none at all.

Best Practices

  • Use one ip helper-address per VLAN interface pointing to a valid DHCP server.
  • Restrict UDP forwarding to ports you actually need.
  • Confirm the giaddr insertion behavior in your platform.
  • Log and monitor DHCP interactions to verify health and lease issues.
  • Consider redundancy by adding multiple relay addresses or deploying DHCP failover pairs.

Conclusion

The distinction between DHCP relay and ip helper-address matters most when working across platforms. The core function is the same: extend DHCP capability across broadcast domains. By configuring relays properly and monitoring behavior, enterprises can ensure reliable address assignment and reduce manual IP overhead in scalable VLAN deployments.


Eduardo Wnorowski is a network infrastructure consultant and technologist.
With over 15 years of experience in IT and consulting, he brings deep expertise in networking, security, infrastructure, and transformation.
Connect on Linkedin

Monday, November 1, 1999

Segmenting with VLAN Pruning and Trunks

Published: November 1999 • 5 min read

In campus switching environments, segmentation is a key concept to maintain performance and manageability. VLANs (Virtual LANs) are commonly used to divide broadcast domains logically. However, with larger switch deployments, ineffective use of VLANs can lead to unnecessary traffic flooding and spanning-tree convergence issues.

One of the simplest ways to improve this is through VLAN pruning. This ensures that VLAN traffic only traverses trunk links where it's truly needed. Combined with proper trunk configuration and native VLAN awareness, engineers can scale Catalyst switch environments while minimizing broadcast overhead.

Why Prune VLANs?

Without VLAN pruning, all VLANs are allowed over all trunks by default. This behavior can result in traffic being forwarded over segments that have no hosts for that VLAN. This not only wastes bandwidth but increases the potential for loops and unnecessary STP (Spanning Tree Protocol) processing.

By using vtp pruning or manually configuring allowed VLANs on trunks, traffic is constrained to where it's actually needed. This is particularly effective in environments with multiple access layer switches feeding into a collapsed backbone.

Trunk Management

Trunks should be clearly documented and controlled. Use static trunking where possible (switchport mode trunk) and limit VLANs via switchport trunk allowed vlan. Avoid relying solely on dynamic trunking protocols like DTP unless absolutely necessary.

Also, verify consistency of native VLAN configurations across trunk links. Mismatches can lead to spanning tree inconsistencies and forwarding issues. Use show interfaces trunk to audit and correct discrepancies.

 

Network Reliability Engineering: Turning Modern Network Operations into a Discipline Network Reliability Engineering: Turning ...