Cisco 851W, switchport command is not recognized.

I am a newbie and trying to use switchport command in order to enter switchport mode access. However, switchport command is not recognized in all 4 fastethernet interfaces.

I returned to the privilege mode, and entered:
#show ip interface brief
all four fastethernet ports are all up (nothing is administratively down).

Can anyone please tell me why switchport command is unrecognized?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The FastE ports on the 851W are layer3 capable, therefore they are in "switchport" mode by default.

You should be able to configure access vlan as needed with just switchport access vlan <id> commands on each interface.
LakemontAuthor Commented:
Then how do I set up these FastEthernet ports so that only end devices with specific mac addresses  can connect to these EastEthernet ports? According to the book, you should first make these ports access by entering
config-if#switchport mode access
config-if#switchport port-security maximum [maximum number]
config-if#switchport port-security violation ....

However, switchport command is returned as invalid.

Actually, the 4 ethernet switch ports on the 851W are layer 2 only and limited in their configurability. It appears they're access mode only for VLAN 1 - this can't be changed so I guess it's ambitious to try and configure for port protection. If it's something you need then you will need to use different hardware.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LakemontAuthor Commented:
Thank you Frabble.

I tried to enter switchport command in the VLAN 1, but that command was not recognized either. What does it mean?
It means that command is not supported for those interfaces. You may be able to use it on the fast ethernet WAN interface which by default is layer 3 but the options will be limited.
The 85x series is one of the low end routers and simply isn't capable of what you want to do.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Operations

From novice to tech pro — start learning today.