01-08-2025 01:26 AM
I copied the running config from a production stack 3850 ( 2 switches ) to another 3850 stack on the test bench :-
1- The config did not apply the 2nd switch on test stack. - should I manually edit each g2/0/X interfaces ?
2- The IP routes did not apply & Gateway of last resort is not set.
Is it right in thinking even if the IP routing is enabled, The IP routes and gateways can only be configured if there are active connections?
thanks in advance.
01-08-2025 01:42 AM - edited 01-08-2025 01:43 AM
Are they exactly same model?
The process you did should work. You dont need to connect the switch to the network in order to configure route and Gateway.
I dont know how you transferred the config but the right way to do is Export the running-config file and import in the other switch
01-09-2025 04:36 AM
Hi yes exact same model - firmware of the production is older
copied from old switch to and applied by running command from usb to startup config and reloading.
01-08-2025 02:01 AM - edited 01-08-2025 02:02 AM
Hello @machine23
The switches are the same model, but discrepancies in behavior can arise due to differences in stack member numbering or how the configuration was transferred. While copying the configuration manually or using commands like copy running-config is common, ensure that the imported configuration matches the stack setup of the destination switches. For example, interface references like Gi2/0/x in the original stack need to correspond to the member numbers in the test stack.
As for IP routes and gateways, they can indeed be configured without the switch being connected to the network, provided IP routing is enabled. However, static routes won’t appear in the routing table unless the associated next-hop IP or interface is reachable.
01-09-2025 04:38 AM
Thanks for the reply - I will check the stack numbering-
so is there any reason why it still says gateway of last resort not set even after issuing the ip route 0.0.0.0 0.0.0.0 <firewall ip > ?
02-16-2026 05:22 AM
No — that’s not quite correct 👍. Static routes and the gateway of last resort **do not require active physical connections** in order to be configured or appear in the running configuration.
Here’s what’s likely happening in your case:
**1️⃣ Second switch configuration not applying**
When you copy a config from one **Cisco 3850 stack** to another, the interface numbering depends on the *stack member IDs*.
If the production stack used switch numbers like `2/0/x` but your test stack members have different IDs (for example `1` and `3`), those interfaces won’t match and the config lines are ignored.
✅ Fix:
* Check stack numbering with:
```
show switch
```
* Either renumber the switches to match the original stack:
```
switch X renumber Y
reload
```
OR manually adjust interfaces (`Gi2/0/x → Gi1/0/x`, etc.).
So yes — you may need to edit interfaces **unless you match the stack numbering**.
---
**2️⃣ Static routes & Gateway of last resort missing**
Static routes should still be accepted even without links up. However, the **gateway of last resort only appears** when:
* A valid default route exists:
```
ip route 0.0.0.0 0.0.0.0 <next-hop>
```
AND
* The next-hop is reachable (or at least resolvable via an interface).
If the referenced VLAN/interface doesn’t exist, is shutdown, or its SVI has no IP, the route may not install into the routing table.
✅ Check:
```
show run | include ip route
show ip route
show ip interface brief
```
---
**✔ Key Point**
Static routes can be configured anytime, but they only show as active (and create a gateway of last resort) when the switch has a valid Layer-3 path to the next hop — not necessarily an active cable, but a valid interface/network.
If you want, share:
* `show switch`
* `show ip route`
* `show run | section interface Vlan`
02-16-2026 05:19 PM
@machine23 wrote:
I copied the running config from a production stack 3850 ( 2 switches ) to another 3850 stack on the test bench :-
The most accurate way (no config are lost) to "copy" the config from a stack to another is to take advantage of the stack.
Connect the "new switch" to the stack. The entire config of the stack gets copied across to the new switch.
Remove the new switch and renumber the new switch to switch 1 and voilà!
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