Switchport mode access ??

Apr 13, 2006 3 Replies

What does the last commandline do?



interface FastEthernet0/1 description VLAN2-PublicNet switchport access vlan 2 switchport mode access


----- If I did not have the line: switchport access vlan 2, would the last line not make FastEthernet0/1 a member of VLAN1?



Regards Martin



It defines whether the port is a access port (end host) or a trunk port (multiple vlans, uplink ports, etc)

Yes, to your 2nd question. All ports are members of vlan 1 unless explicitly configured for another vlan.

Thank you both for your answers, it helped me :-)

Regards Martin

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required