Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Effect of 'no switchport' on Layer 3 switch

Imagine I want to let my 3750 do ip routing:

RouterB[g0/0:192.168.10.1]----[fa0/10:no switchport CAT3750 fa0/11:no switchport]----[fa0/0:192.168.20.1 RouterC]

Then on my CAT3750, I configure:

(...)

int vlan1

ip add 192.168.10.2 255.255.255.0

int vlan 2

ip add 192.168.20.2 255.255.255.0

(...)

My observation is, if I did "no switchport" on the port fa0/12 and fa/011 in the switch how should I approach the respective fa0/12 and fa0/12 in order to specify to which vlan the respective ports are associated with?

I am sorry for this question, but I came across this concept which I forgot and I don't have a switch handy to test it out right now.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Effect of 'no switchport' on Layer 3 switch

Hi,

When using "no switchport" the port is converted into a layer 3 interface, which needs an IP address, and can't be assigned to a certain VLAN, as its now a routed port not a switched port, further more it can communicate with VLAN1 and VLAN2 through the SVI interfaces of the VLANs (int vlan1 and int vlan2).

HTH, please do rate all helpful relies,

Mohammed Mahmoud.

4 REPLIES

Re: Effect of 'no switchport' on Layer 3 switch

Hi,

When using "no switchport" the port is converted into a layer 3 interface, which needs an IP address, and can't be assigned to a certain VLAN, as its now a routed port not a switched port, further more it can communicate with VLAN1 and VLAN2 through the SVI interfaces of the VLANs (int vlan1 and int vlan2).

HTH, please do rate all helpful relies,

Mohammed Mahmoud.

Community Member

Re: Effect of 'no switchport' on Layer 3 switch

Thanks!!

Re: Effect of 'no switchport' on Layer 3 switch

Hi,

You are very welcomed :)

Please do come back if you have further questions.

BR,

Mohammed Mahmoud.

Silver

Re: Effect of 'no switchport' on Layer 3 switch

Either you configure it as you have done and on the fa0/12 and 11 you just say sw acc vla 1 sw mode access,

or

give no switchport on your interface and then assign ip address inside the interface.. When you give the command no switchport the port becomes a layer 3 port.

HTH

Hoogen

Do rate if this post helps :)

27308
Views
10
Helpful
4
Replies
CreatePlease to create content