L3 VXLAN hosts (host2 and host4 in VRF gold) cannot add default route via their VRF gateway during lab deployment.
Error Message
RTNETLINK answers: File exists
When executing: ip route add default via 10.34.34.1 (host2) or ip route add default via 10.78.78.1 (host4)
Current State
Host2 (VLAN 34 in VRF gold)
Working:
✅ Bond0 interface up with LACP
✅ VLAN 34 interface configured (10.34.34.102/24)
✅ Can ping gateway 10.34.34.1
Not Working:
❌ Cannot add default route via 10.34.34.1
Current routing table:
default via 172.16.0.254 dev eth0 # Management network default route
10.34.34.0/24 dev bond0.34 proto kernel scope link src 10.34.34.102
172.16.0.0/24 dev eth0 proto kernel scope link src 172.16.0.102
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
exec:- ip route del default via 172.16.0.254 dev eth0- ip route add default via 10.34.34.1
Option 2: Use ip route replace
exec:- ip route replace default via 10.34.34.1
Option 3: Add route with higher metric
exec:- ip route add default via 10.34.34.1 metric 100
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:
host2 can ping host4 (10.78.78.104)
host4 can ping host2 (10.34.34.102)
L3 VXLAN routes learned via EVPN Type-5
VRF gold routing working end-to-end
Branch
Topology is on debug branch for troubleshooting.
## Problem
L3 VXLAN hosts (host2 and host4 in VRF gold) cannot add default route via their VRF gateway during lab deployment.
## Error Message
```
RTNETLINK answers: File exists
```
When executing: `ip route add default via 10.34.34.1` (host2) or `ip route add default via 10.78.78.1` (host4)
## Current State
### Host2 (VLAN 34 in VRF gold)
**Working:**
- ✅ Bond0 interface up with LACP
- ✅ VLAN 34 interface configured (10.34.34.102/24)
- ✅ Can ping gateway 10.34.34.1
**Not Working:**
- ❌ Cannot add default route via 10.34.34.1
**Current routing table:**
```
default via 172.16.0.254 dev eth0 # Management network default route
10.34.34.0/24 dev bond0.34 proto kernel scope link src 10.34.34.102
172.16.0.0/24 dev eth0 proto kernel scope link src 172.16.0.102
```
### 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
```yaml
exec:
- ip route del default via 172.16.0.254 dev eth0
- ip route add default via 10.34.34.1
```
### Option 2: Use ip route replace
```yaml
exec:
- ip route replace default via 10.34.34.1
```
### Option 3: Add route with higher metric
```yaml
exec:
- ip route add default via 10.34.34.1 metric 100
```
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:
- [x] host2 can ping host4 (10.78.78.104)
- [x] host4 can ping host2 (10.34.34.102)
- [x] L3 VXLAN routes learned via EVPN Type-5
- [x] VRF gold routing working end-to-end
## Branch
Topology is on **debug** branch for troubleshooting.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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!