To ensure that traffic from your management client to the management IP returns via the same management interface (not the frontend default route), follow these steps:
1. Enable Management Routing Instance
This feature creates a separate routing table for management traffic.
enable ns feature managementrouting
2. Configure Management IP Settings
Ensure the management IP is enabled for management access and bound to the management routing instance:
set ns ip <management_ip> -mgmtAccess ENABLED -mgmtEnabled ENABLED
Example:
set ns ip 10.0.0.100 -mgmtAccess ENABLED -mgmtEnabled ENABLED
3. Add Default Route in Management Routing Table
Point the management routing instance's default route to the management gateway:
add route 0.0.0.0 0.0.0.0 <management_gateway> -instance management
Example:
add route 0.0.0.0 0.0.0.0 10.0.0.1 -instance management
4. Verify Configuration
-
Check management IP settings:
show ns ip
Ensure mgmtAccess and mgmtEnabled are ENABLED for the management IP.
-
Check routes in the management instance:
show route -instance management
Confirm the default route points to the management gateway.
Key Points:
- Management Routing Instance: Forces all traffic sourced from the management IP to use its own routing table.
- Default Route: The management routing table uses the management gateway, overriding the system-wide default route for management traffic.
- Source-Based Routing: Responses from the management IP automatically use the management routing table, ensuring return traffic exits via the management interface.
Validation:
- From your management client, connect to the management IP and verify connectivity.
- Use packet captures on the management interface (
nstcpdump.sh -i <management_if> host <client_ip>) to confirm traffic flows correctly.
This setup isolates management traffic, ensuring it never uses the frontend default route.