2 Intern

 • 

812 Posts

June 18th, 2004 14:00

There is no special character to add text comments to a configuration file. Most instances we've seen in which someone manually edits the configuration file result in corruption of the configuration and/or unpredictable behavior of the switch.

2 Posts

August 6th, 2020 15:00

For the record @RouterGeniusNot , there is a way to comment config files.
The clue is in every "SHOW RUNNING-CONFIG" output.

Using an exclamation point ( ! ) as the first character in a line causes the line to be ignored.

Thus, you can comment to your hearts' content after a "!"

Like so...

10G-STACK01-LAB#SuPerCraZY GARBAge stuff *** HI THERE PEOPLE *** vlan show help nothing
               
^
% Invalid input detected at '^' marker.
10G-STACK01-LAB#

=== vs ===

10G-STACK01-LAB#!SuPerCraZY GARBAge stuff *** HI THERE PEOPLE *** vlan show help nothing
10G-STACK01-LAB#

2 Posts

August 6th, 2020 16:00

Also, you can append a "!" to any line containing a command and everything after the "!" is ignored.

 

Like so...

10G-STACK01-LAB#configure !hooo weee

10G-STACK01-LAB(config)#exit

10G-STACK01-LAB#

 

May 5th, 2021 09:00

I would like to do the same for all my static routes on an N4000 firmware version 6.1.0.6

E.g.

ip routing
ip route 0.0.0.0 0.0.0.0 192.168.10.2 ! default route
ip route 10.100.10.0 255.255.255.0 192.168.10.3 ! SW VPN1
ip route 10.100.20.0 255.255.255.0 192.168.1.17 !SW VPN2
ip route 192.168.113.0 255.255.255.0 192.168.101.2 !SW VPN3
ip route 10.10.7.0 255.255.255.0 192.168.20.21 !Test Network

when creating the static route I use the ! in the comman line, but it does not show in a running config

N4000_L3Core(config)#ip route 10.10.50.0 255.255.254.0 192.168.16.4 !test comment

this is accepted and the static route is created, but does not show in the running config

N4000_L3Core(config)#ip route 10.10.50.0 255.255.254.0 192.168.16.4 !test commentN4000_L3Core(config)#show running-config

ip routing
ip route 0.0.0.0 0.0.0.0 192.168.10.2
ip route 10.100.10.0 255.255.255.0 192.168.10.3
ip route 10.100.20.0 255.255.255.0 192.168.1.17
ip route 192.168.113.0 255.255.255.0 192.168.101.2
ip route 10.10.7.0 255.255.255.0 192.168.20.21
ip route 10.10.50.0 255.255.254.0 192.168.16.4 <-- static route created but no comment\remark

Moderator

 • 

9.5K Posts

May 5th, 2021 12:00

Hi shawn,

 

You can use the text command to add a name for the route instead.

https://dell.to/2Sjfwf9 Page 1558

Comments should work, but you made need to try a newer version of the OS.

No Events found!

Top