---
# System prepended metadata

title: Lab 6. System and Network administartion

---

# Lab 6. System and Network administartion
## Mariia Charikova && Timur Mustafin

# Linux Bonding & old Cisco Catalyst switches

## Physical connections:

1. Host 1 with IP 10.1.1.131 with 2 ethernet cards
2. Host 2 with IP 10.1.1.146 with 2 ethernet cards
3. Switch Cisco catalyst 2950

Both hosts connected via 2 cables to the switch.

## Software setup 

We used Ubuntu 18.04 LTS. 

Install the package for Linux bound set up:

    sudo apt install ifenslafe

Configuring interfaces

    sudo nano /etc/modprobe.d/bonding.conf
    
![](https://i.imgur.com/v6zUGcb.png)


    sudo nano /etc/network/interfaces
![](https://i.imgur.com/O8ormpO.png)
    
**bond-mode 6**: configure both interfaces to work with inbound and outbound traffic. In case one dies another gonna take its MAC and everything will work

## Practical part

## Mode 5,6 
We were able to achive ~94 Mbits/s with the switch both with logical aggregation and without it
![](https://i.imgur.com/NrPn2bt.png)


## Mode 0
Connecting two hosts inderctly to each other we achived 2+ Gbits/s bandwidth. With switch connected it was like 40-50 Mbits/s

## Mode 4
With enabled LACP on the switch we got ~94Mbits/s.

for enabling LACP we did in Ciso's terminal

For 1-2 ports:

    configure
    interface range fastEthernet 0/1 - 2
    channel-group 1 mode active 
For 3-4 ports

    configure
    interface range fastEthernet 0/3 - 4
    channel-group 1 mode active
    
LACP is enabled in active mode by default.

With ON mode we achived only 20Mbits/s bandwith.

## Mode 3 
Ping is duplicated, bandwidth 89-94 Mbits/s

## Results

Most probably, this old Cisco requires different setup of LACP in order to provide wide bandwith. But at the same time disconnecting a cable (1 out of 2) doesn't affect transimission which means that fault-tolerance was achived. 