This document explains how to replace the configuration from "faulty port" to "new port".This is similar to 'find and replace' used in editors. The procedure is useful to quickly find and replace an interfaces, IP address, policy action, or any other configuration to a new value.
Interface status is physical down. Performed L1 troubleshooting, still interface is not coming up.
Thus customer wants to shift traffic to another port.
In order to replace specific port with new port number, we can use "replace pattern <pattern> with <new_value>" command.
replace pattern <old port number> with <new port number>
Note: Please make sure, there is no configuration present on the new port number where we want to replace configuration.
For example:
labroot@Router1# replace pattern et-5/0/6 with et-5/0/7 labroot@Router1# show |compare [edit interfaces] - et-5/0/6 { - gigether-options { - 802.3ad ae10; - } - } + et-5/0/7 { + gigether-options { + 802.3ad ae10; + } + }