cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
456
Views
0
Helpful
9
Replies

Switchport difference

londint
Level 1
Level 1

What is the difference between

interface FastEthernetx/x

no ip address

speed 10

duplex full

spanning-tree cost 3100

and

interface FastEthernet7/26

switchport

no ip address

speed 10

duplex full

spanning-tree cost 3100

The first one does not have switchport in the config and the second one has.

Please what is the difference?

Thanks

9 Replies 9

Hieu Cao
Level 4
Level 4

I am not sure what switch model that you're using, basically "switchport" command configures that the particular port as a Layer 2 port.

You can read more about it from this link

http://www.cisco.com/warp/public/473/67.html#tbl-2

HTH,

Hieu

network.king
Level 4
Level 4

Hi,

The difference is simple .Both the ports are capable of acting as a l2 as well as l3 port.

The first one is a L3 port .

The second one is converted L2 port from a L3 port.

http://www.cisco.com/en/US/products/hw/routers/ps368/products_configuration_guide_chapter09186a008007e6a5.html#wp1041189

Hope this helps

regards

vanesh k

comment --> the first one is a L3 port.

if he got the output from a router then it's a L3 port but if he got the output from a switch then it's a L2 port

Thank you very much.

Does this mean if I omit the swithcport command, I can give the interface an ip addresses?

Thanks

if it's a switch and you command "no switchport" you could put in an ip address and when you do sh run you would see on the int the "no switchport" statement

hi,

means that by default,all ports are L3 ports?

pls explain

regards,

nilay

Hi

No all the ports will be L2 on the switches except 6500 series.it would be better if u let us know the platfrom which u r using.

Thanks

Mahmood

exactly my point. that's why i asked if what equipment is the port he's referring to.

trick question? :)

Endwigast
Level 1
Level 1

trick question?

what equipment is fx/x? what equipment is f7/26?

Getting Started

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco