% Configuring IP routing on a LAN subinterface is only allowed if that subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,or ISL vLAN.
I'm trying to get around this. What do I need to do?
Well, you need to configure your sub-interface as part of a trunk just like the error message indicated. It's not very hard to do. You will need to configure each sub-interface as a member of a specific vlan/subnet. Then make sure that the switch you are attaching to supports the same trunking mechanism (802.1q/ISL) as the router encapsulation you are using.
That is configuring the fa0/0 with the subinterface of fa0/0.1 with 802.1q vlan trunking encapsulation for vlan 1, and x.x.x.x=ip address, y.y.y.y=mask. Fopr different vlans (I.E. vlan 20), it would be fa0/0.23, encaps dot1q 23
None of this will work if you have IP Base IOS, so if you have trouble (like "% Invalid input detected at '^' marker.), then post a sh ver.
i think i finally made my way through all this, thanks for your help. now, I read that you are matching sub-int number with vlan number and I didnt do that...i dont think i have the heart to go back and change that, this late in the day...
You don't necessarily have to make the subinterface number the same as the vlan, but it helps to lessen confusion, especially when troubleshooting. Glad you got it working.
And I made a typo...
"I.E. vlan 20), it would be fa0/0.23, encaps dot1q 23"
it should be
I.E. vlan 20), it would be fa0/0.20, encaps dot1q 20
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.