enable 
configure terminal
hostname SW1
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name IT
vlan 20 
name HR
vlan 30 
name ACC
vlan 40 
name Finance
exit 
interface vlan 10 
ip address 192.168.10.1 255.255.255.0
exit 
port-channel load-balance src-dst-ip
interface range fastEthernet 0/1-2
channel-group 1 mode desirable
exit 
port-channel 1 
switchport mode trunk
exit 
interface range fastEthernet 0/3-4
channel-group 2 mode desirable
exit 
port-channel 2 
switchport mode trunk
exit
interface fastEthernet 0/5
switchport mode trunk
exit
interface fastEthernet 0/6
switchport mode access
switchport access vlan 10
exit 
show etherchannel summary
show vlan brief
show interfaces trunk
show etherchannel load-balance
 
..............................................

enable 
configure terminal
hostname SW2
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name IT
vlan 20 
name HR
vlan 30 
name ACC
vlan 40 
name Finance
exit 
interface vlan 20 
ip address 192.168.20.1 255.255.255.0
exit 
port-channel load-balance src-dst-ip
interface range fastEthernet 0/1-2
channel-group 1 mode auto
exit 
port-channel 1 
switchport mode trunk
exit 
interface range fastEthernet 0/3-4
channel-group 4 mode on
exit 
port-channel 4 
switchport mode trunk
exit 
interface range fastEthernet 0/5-6
switchport mode access
switchport access vlan 20
exit
show etherchannel summary
show vlan brief
show interfaces trunk
show etherchannel load-balance

..............................................

enable 
configure terminal
hostname SW3
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name IT
vlan 20 
name HR
vlan 30 
name ACC
vlan 40 
name Finance
exit 
interface vlan 30 
ip address 192.168.30.1 255.255.255.0
exit 
port-channel load-balance src-dst-ip
interface range fastEthernet 0/1-2
channel-group 3 mode active
exit 
port-channel 3 
switchport mode trunk
exit 
interface range fastEthernet 0/3-4
channel-group 2 mode auto
exit 
port-channel 2
switchport mode trunk
exit 
interface range fastEthernet 0/5-7
switchport mode access
switchport access vlan 30
exit
show etherchannel summary
show vlan brief
show interfaces trunk
show etherchannel load-balance

..............................................

enable 
configure terminal
hostname SW4
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name IT
vlan 20 
name HR
vlan 30 
name ACC
vlan 40 
name Finance
exit 
interface vlan 40 
ip address 192.168.40.1 255.255.255.0
exit 
port-channel load-balance src-dst-ip
interface range fastEthernet 0/1-2
channel-group 3 mode passive
exit 
port-channel 3 
switchport mode trunk
exit 
interface range fastEthernet 0/3-4
channel-group 4 mode on
exit 
port-channel 4
switchport mode trunk
exit 
interface range fastEthernet 0/5-6
switchport mode access
switchport access vlan 40
exit
show etherchannel summary
show vlan brief
show interfaces trunk
show etherchannel load-balance

..............................................

enable
configure terminal
hostname R1
ip routing
interface g0/0/0.10
encapsulation dot1q 10
ip address 192.168.10.254 255.255.255.0
exit
interface g0/0/0.20
encapsulation dot1q 20
ip address 192.168.20.254 255.255.255.0
exit
interface g0/0/0.30
encapsulation dot1q 30
ip address 192.168.30.254 255.255.255.0
exit
interface g0/0/0.40
encapsulation dot1q 40
ip address 192.168.40.254 255.255.255.0
exit
interface g0/0/0
no shutdown

 

