09-25-2008 10:15 PM - edited 03-06-2019 01:36 AM
I have 2 configs stored in the flash.
when i try to move from config1 to config 2 I get the folloeing error message:
Command rejected: Gi1/0/17 not a switching port.
Command rejected: Gi1/0/17 not a switching port.
These are the gi1/0/17 from both configs:
config 1:
interface GigabitEthernet1/0/17
no switchport
ip address 10.10.200.1 255.255.255.0
ip policy route-map cca1
config 2:
interface GigabitEthernet1/0/17
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 650
switchport mode trunk
end
Is there a workaround to load config 2.
Thanks in advance
09-25-2008 10:48 PM
Hi
I feel the switch is still treating the port as L3 port instead of L2 to permit the config lines realted to trunk.
Can you try adding switchport mode trunk in the begining of the config command instead of encapsulation to start with ?
Also try using switchport command to make that as L2 port to accept the L2 related commands.
regds
09-25-2008 10:51 PM
Hi,
the problem got solved..If I copy the config to startup config and reboot the switch, the problem does not arise.The error occurs when I copy to the running config
09-25-2008 11:53 PM
Yes, and that is because copying running confing means that you are reconfiguring over the already configured device (and, for example, once interface is configured as L3 interface it will not accept L2 commands).
Copying configuration to startup configuration and rebooting on the other hand means that you will apply configuration to an uncofigured device (right after reboot, device is unconfigured).
I hope it helps.
Best regards.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: