Good day everyone I have a quick question here...I thought in order for a vlan to route you would need to define that vlan on the switch. I went on my sw1 and saw an interface configured for vlan12 but when I looked to see if it was configured on the switch it wasn't
How is this working? I can do a show IP route and it knows its next hope which goes to sw2 then on to a ASA.
The information you see in the vlan database reflects the Layer2 Vlan information.
The information you see in the running configuration interface vlan 12 reflects its Layer3 instance.
You don't need a Layer3 instance unless the switch is routing the Vlan on behalf of devices on that subnet.
You would also see vlan12 in the running config, if the switch was set to vtp mode transparent.
vtp mode server and vtp mode client does not display the layer2 information in the running-config. It's stored in the vlan.dat which can be accessed by issuing the show vlan command.
How did you verify it wasn't configured in the switch ?
Please post the output from the following commands:
show ip interface | i 12