# Layer 3 Etherchannel

**URL:** https://forum.networklessons.com/t/layer-3-etherchannel/622
**Category:** Lessons Discussion
**Created:** [March 8, 2016, 4:20pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622 "2016-03-08T16:20:43Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![vishaul](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/vishaul/32/2260_2.png) [@vishaul](https://forum.networklessons.com/u/vishaul)
#### Post date: [March 8, 2016, 4:20pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/1 "2016-03-08T16:20:43Z")

</div>

Hi, can someone please say if this etherchannel configuration between a 3560 and 3750 switch is correct, thanks.

3560

```auto
int range fa0/11 - 12
description ETHER CHANNEL TRUNK LINK TO S3750
switchport trunk encapsulation dot1q 
switchport mode trunk
switchport trunk native vlan 2
switchport trunk allowed vlan 1-20
no switchport
channel-group 1 mode on
no shut
exit

```

```auto
int po1
description ETHER CHANNEL TRUNK LINK TO S3750
switchport trunk encapsulation dot1q 
switchport mode trunk
switchport trunk native vlan 2
switchport trunk allowed vlan 1-20
ip address 192.168.2.49 255.255.255.252
no shut
exit

```

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [March 8, 2016, 8:16pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/2 "2016-03-08T20:16:58Z")

</div>

Hi Dinesh,

If you want a L3 Etherchannel then you don’t need any of the “switchport” commands (except the no switchport command).

Access/Trunk mode and VLANs are only for L2 interfaces.

Rene

---

<div class="post-metadata">

### Author: ![vishaul](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/vishaul/32/2260_2.png) [@vishaul](https://forum.networklessons.com/u/vishaul)
#### Post date: [March 9, 2016, 9:03am UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/3 "2016-03-09T09:03:47Z")

</div>

Hi Rene, thanks for your reply. I was concerned about having the etherchannel in trunk mode to carry all vlans, but I guess after using the “no switchport” command, the etherchannel will automatically go in trunk mode. Can I specify the native and allowed vlan, as was stated, or can you say if the commands below is correct, thanks.

int range fa0/11 - 12  
description ETHER CHANNEL TRUNK LINK TO S3750  
switchport trunk native vlan 2  
switchport trunk allowed vlan all  
no switchport  
channel-group 1 mode on  
exit

int po1  
description ETHER CHANNEL TRUNK LINK TO S3750  
ip address 192.168.2.49 255.255.255.252  
no shut  
exit

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [March 10, 2016, 4:30pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/4 "2016-03-10T16:30:03Z")

</div>

Hi Dinesh,

Once you use “no switchport” then the interface has no idea what trunks or VLANs are anymore…those are L2 and the interface will be running in L3:

```auto
SW1(config)#interface GigabitEthernet 0/1
SW1(config-if)#no switchport 
SW1(config-if)#switchport mode trunk
Command rejected: Gi0/1 is not a switching port.

```

You can put an IP address on it but that’s it. The interface is now the same as a router’s interface.

Rene

---

<div class="post-metadata">

### Author: ![vishaul](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/vishaul/32/2260_2.png) [@vishaul](https://forum.networklessons.com/u/vishaul)
#### Post date: [March 13, 2016, 11:53pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/5 "2016-03-13T23:53:21Z")

</div>

Ok thanks Rene

---

<div class="post-metadata">

### Author: ![mfmolett](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/mfmolett/32/816_2.png) [@mfmolett](https://forum.networklessons.com/u/mfmolett)
#### Post date: [September 6, 2019, 3:43am UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/6 "2019-09-06T03:43:35Z")

</div>

I have two 3850 switches connected to each other.

There is a layer 3 port channel and a layer 2 port channel created between SW1 and SW2. I am trying to understand why they setup a L2 and L3 on the switches…one for trunking and one for routing? Wouldn’t it be easier to keep it simple with one port channel and it would be layer 2 ? Is there a best practice ?

ROUTER ------SW1=======SW2

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [September 6, 2019, 4:40am UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/7 "2019-09-06T04:40:59Z")

</div>

Hello Matt

The set up you are indicating is somewhat unconventional, but it is not unheard of. These types of setups are usually created when you want to employ something for which you don’t really have the required hardware, so you’re trying to find solutions with what you have.

Without knowing more about the rest of the topology, it may be that SW2 is set up to function as a default gateway for various subnets/VLANs connected to it, and traffic from those subnets are to be routed to the router in your diagram. At the same time, there may be other VLANs which are common to both SW1 and SW2 for which you require a L2 portchannel to share those VLANs. You can come up with many scenarios where this would “solve” a problem, but the fact remains that this should never be employed as a best practice for your networks.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![mfmolett](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/mfmolett/32/816_2.png) [@mfmolett](https://forum.networklessons.com/u/mfmolett)
#### Post date: [September 6, 2019, 12:18pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/8 "2019-09-06T12:18:27Z")

</div>

Hello Laz,  
Thanks for your reply. There is not much more to the diagram…There are users sharing the same VLANs on SW1 and SW2. There are servers on SW2 and there are users on SW1, and there is nothing hanging off of SW2 network related. If SW2 is only connected to SW1 because they have a lack of fiber then I guess it makes sense.

A simpler/best practice setup would be SW1 holds the VLANs and SW1 and SW2 have a layer 2 etherchannel?

Thanks,

M

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [September 6, 2019, 3:27pm UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/9 "2019-09-06T15:27:17Z")

</div>

Hello Matt

If the VLANs are distributed between both switches, then yes, a L2 etherchannel would be preferable, even with 3 or 4 or more links, if bandwidth is an issue. The only reason you’d need an L3 etherchannel is if you were performing routing on SW2 as well.

To look at the issue more simply, let’s get rid of etherchannel all together. Imagine you have a L3 link between the two switches (that is, you create routed ports on the switches using the `no switchport` command on both devices) and you have a second link between them using an L2 connection, possibly a trunk. The trunk would distribute all VLANs to both switches, but the L3 link will obligate SW2 to do routing as well, depending on the source and destination of the particular packets being sent. Like I said before, it’s not a good design, and you can expect trouble on the network at some point…

> [@mfmolett](#):
>
> A simpler/best practice setup would be SW1 holds the VLANs and SW1 and SW2 have a layer 2 etherchannel?

Yes absolutely!

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![mfmolett](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/mfmolett/32/816_2.png) [@mfmolett](https://forum.networklessons.com/u/mfmolett)
#### Post date: [September 7, 2019, 3:45am UTC](https://forum.networklessons.com/t/layer-3-etherchannel/622/10 "2019-09-07T03:45:02Z")

</div>

Laz,

Thanks for clearing that up. Your explanations are always terrific and it clears up the confusion as well. There are some routing issues that I have seen already. I will be fixing this but I am finding a lot of “jobs” that are done with “just getting it working” attitude and then issues arise. I really appreciate you breaking it down like you did.

Thanks

M
