Configure a VRF called "VrfGreen" and the static route in it to network 172.16.128.64/28 through next-hop 10.10.10.1. Set an administrative distance of 213.
see the explanation for all step by step solution with all explanation.
Options Selected by Other Users:
Option A: (20 votes)
100%
Explanation
Here are the steps to configure the VRF and the static route:
Enter Configuration Mode:
sonic# configure terminal
Create VRF "VrfGreen":
sonic(config)# ip vrf VrfGreen
Configure the Static Route:
sonic(config)# ip route vrf VrfGreen 172.16.128.64/28 10.10.10.1 213
Save Configuration:
sonic# write memory
Comprehensive Detailed Step by Step Explanation with References:
Enter Configuration Mode:
Begin by entering the global configuration mode to make changes to the switch configuration.
Create VRF "VrfGreen":
Use the command ip vrf VrfGreen to create a new VRF named "VrfGreen". This command sets up a new VRF instance which will isolate the routing table for this VRF from the global routing table and other VRFs.
Configure the Static Route:
Use the command ip route vrf VrfGreen 172.16.128.64/28 10.10.10.1 213 to configure the static route.
ip route vrf VrfGreen specifies that the route should be added to the "VrfGreen" VRF.
172.16.128.64/28 is the destination network.
10.10.10.1 is the next-hop IP address.
213 is the administrative distance, which in this case is set to a non-default value to influence route preference.
Save Configuration:
Save the configuration to ensure the changes persist after a reboot using the write memory command.
References:
Dell Technologies Networking - SONiC
Dell Enterprise SONiC Deployment Guide
These steps provide a comprehensive guide to configure a VRF and a static route within that VRF on a SONiC-based switch, ensuring the specific requirements for routing and administrative distance are met.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit