08-16-2024 12:49 AM - last edited on 08-16-2024 01:34 AM by shaiksh
I am very new to Cisco, apoligies for the elementary level of this request... My google-fu is failing me hard today. (9300 Switch)
If I do "show blah blah blah" and I have a configuration item that states:
"config-item option1 option2"
But I need to update this to read
"config-item option1 optionA optionB option2"
...How's this best performed?
Do I simply enter "config-item option1 optionA optionB option2" and save? Or is there some other way around it? (In a past life I managed another brand (not cisco...))
08-16-2024 01:43 AM
Yes, you typically just enter the desired configuration to replace existing config.
08-16-2024 02:13 AM
As @Torbjørn describes, typically a single configuration statement is replaced as a whole statement. There are some (very) few statements that permit some parameter "editing" (e.g. trunk VLANs allowed) and at least one, like ACL ACEs that can use positional sequence numbers.
Also, generally, on a Cisco device any configuration statement change takes effect immediately, there's no scratchpad or pending implementation as some other vendors offer.
Lastly, for configuration changes to survive a reboot, the running configuration needs to replace the start up configuration.
PS:
You do know to make configuration changes device needs to be in "enable" mode and configuration mode?
You are also aware of using a question mark, tan and/or line editing controls along with command buffer?
08-16-2024 01:52 AM
New configuration will replace the old one. Just make sure you are in the right place. For instance:
Existing config
Interface vlan 1
ip address 1.1.1.1 255.255.255.0
To replace it we enter:
config termina
int vlan 1
ip address 2.2.2.2 255.255.255.0
IF you have a more specific request write it.
BR
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide