L3 VXLAN - Cannot add default route on host2/host4 (VRF gold) #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
L3 VXLAN hosts (host2 and host4 in VRF gold) cannot add default route via their VRF gateway during lab deployment.
Error Message
When executing:
ip route add default via 10.34.34.1(host2) orip route add default via 10.78.78.1(host4)Current State
Host2 (VLAN 34 in VRF gold)
Working:
Not Working:
Current routing table:
Host4 (VLAN 78 in VRF gold)
Same issue - cannot add default route via 10.78.78.1
Root Cause
ContainerLab automatically adds a default route via the management network (172.16.0.254 dev eth0). When exec commands try to add another default route, the kernel rejects it with "File exists" error.
Possible Solutions
Option 1: Delete existing default route first
Option 2: Use ip route replace
Option 3: Add route with higher metric
This keeps the mgmt route but prefers the VRF gateway.
Option 4: Don't add default route
Simply rely on connected routes - host2 and host4 can reach each other via EVPN without a default route.
Testing Required
Once route issue is resolved, verify:
Branch
Topology is on debug branch for troubleshooting.
✅ RESOLVED - L3 VXLAN Working with Specific Routes
Solution
Instead of adding a default route (which conflicts with ContainerLab management), added specific routes to remote L3 VXLAN networks.
Configuration Applied
Host2 exec commands:
Host4 exec commands:
Verification - host2 Routing Table
✅ Connectivity Test Results
Why This Works
Benefits
Issue resolved - L3 VXLAN fully operational!