. Etherchannel .pdf

sefsefwsefews.PNG

<L3-A>
interface FastEthernet0/1
 channel-protocol lacp
 channel-group 1 mode active
 switchport mode access
!
interface FastEthernet0/2
 channel-protocol lacp
 channel-group 1 mode active
 switchport mode access
!
interface FastEthernet0/3
 switchport access vlan 10
 switchport mode access
interface Port-channel 1
 switchport access vlan 10
 switchport mode access
!
interface Vlan10
 ip address 192.168.10.2 255.255.255.0
!
interface Vlan100
 ip address 1.1.12.1 255.255.255.0

port12.PNG

[L3-B]
interface FastEthernet0/1
 channel-protocol lacp
 channel-group 1 mode passive
 switchport mode access
!
interface FastEthernet0/2
 channel-protocol lacp
 channel-group 1 mode passive
 switchport mode access
**=>
int range f0/1-2
channel-protocol lacp
channel-group 1 mode passive
interface Port-channel 1
 switchport access vlan 100
 switchport mode access**

!
interface FastEthernet0/3
 switchport access vlan 20
 switchport mode access

interface Port-channel 1
 switchport access vlan 100
 switchport mode access
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan20
 ip address 192.168.20.2 255.255.255.0
!
interface Vlan100
 ip address 1.1.12.2 255.255.255.0
!

esctewer.PNG

eve에서 하는 경우 no switchport를 넣어주어야 한다,

es123.PNG

ewvcx3123.PNG

[L2-A]
no ip routing
vlan 10
vlan 20

interface Port-channel1
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface range GigabitEthernet0/0-1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 media-type rj45
 negotiation auto 
 channel-protocol lacp
 channel-group 1 mode active
!
interface GigabitEthernet0/2
 switchport access vlan 10
 switchport mode access
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/3
 switchport access vlan 20
 switchport mode access
 media-type rj45
 negotiation auto
[L2-B]
no ip routing
vlan 30
interface Port-channel4
 switchport access vlan 30
 switchport mode access
!
interface **range** GigabitEthernet0/0-1
 switchport access vlan 30
 switchport mode access
 media-type rj45
 negotiation auto
 channel-protocol lacp
 channel-group 4 mode active

!
interface GigabitEthernet0/2
 switchport access vlan 30
 switchport mode access
 media-type rj45
 negotiation auto
[L3-A] routed
ip routing
vlan 10
vlan 20

ip route 0.0.0.0 0.0.0.0 1.1.12.2

interface Vlan10
 ip address 192.168.10.2 255.255.255.0
!
interface Vlan20
 ip address 192.168.20.2 255.255.255.0
!
interface range GigabitEthernet0/0-1
 no switchport
 no ip address
 negotiation auto
 channel-protocol lacp
 channel-group 2 mode active

!
interface range GigabitEthernet0/2-3
 switchport trunk encapsulation dot1q
 switchport mode trunk
 media-type rj45
 negotiation auto
 channel-protocol lacp
 channel-group 1 mode passive
!
interface Port-channel1
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel2
 no switchport
 ip address 1.1.12.1 255.255.255.0
[L3-B]
ip routing
vlan 100
vlan 30

interface Vlan30
 ip address 192.168.30.2 255.255.255.0
!
interface Vlan100
 ip address 1.1.23.1 255.255.255.0

interface range GigabitEthernet0/0-1
 no switchport
 no ip address
 negotiation auto
 channel-protocol lacp
 channel-group 2 mode passive
!
interface GigabitEthernet0/2-3
 switchport access vlan 100
 switchport mode access
 negotiation auto
 channel-protocol **pagp**
 channel-group 3 mode desirable
!
interface GigabitEthernet1/0-1
 switchport access vlan 30
 switchport mode access
 media-type rj45
 negotiation auto
 channel-protocol lacp
 channel-group 4 mode passive

interface Port-channel2
 no switchport
 ip address 1.1.12.2 255.255.255.0
!
interface Port-channel3
 switchport access vlan 100
 switchport mode access
!
interface Port-channel4
 switchport access vlan 30
 switchport mode access

ip route 192.168.10.0 255.255.255.0 1.1.12.1
ip route 192.168.20.0 255.255.255.0 1.1.12.1
ip route 192.168.40.0 255.255.255.0 1.1.23.2

[L3-C]
ip routing
vlan 100

interface Vlan100
 ip address 1.1.23.2 255.255.255.0

interface range GigabitEthernet0/2-3
 switchport access vlan 100
 switchport mode access
 media-type rj45
 negotiation auto
 channel-protocol **pagp**
 channel-group 3 mode auto

interface GigabitEthernet0/0
 no switchport
 ip address 192.168.40.2 255.255.255.0
 negotiation auto

interface Port-channel3
 switchport access vlan 100
 switchport mode access

ip route 0.0.0.0 0.0.0.0 1.1.23.1

<종합 예제 - LACP>

esdfcxcvx.PNG