Spring naar de inhoud

Netwerken

    Inhoudstabel

    Bonding & Trunking

    Small example how you can use bonding (several network cards together) and trunking (several VLAN’s together) on a linux server.

    Be carefull that the switchside (network) is also properly configured. You need to choose between an access vlan or a trunk vlan.

    Physical Interface

    First, define the physcial interface, and for which ‘bond’-group they’ll use…

    cat ifcfg-eth0 & cat ifcfg-eth7

    DEVICE=eth0
    ONBOOT=yes
    HWADDR=A0:B1:C2:D3:E4:F5
    TYPE=Ethernet
    SLAVE=yes
    MASTER=bond0
    HOTPLUG=no
    BOOTPROTO=dhcp
    PEERDNS=no
    
    DEVICE=eth7
    ONBOOT=yes
    HWADDR=A0:B1:C2:D3:E4:F6
    TYPE=Ethernet
    SLAVE=yes
    MASTER=bond0
    HOTPLUG=no
    BOOTPROTO=dhcp
    PEERDNS=no

    Bonding

    Define the group for the physical interfaces.
    cat ifcfg-bond0

    DEVICE=bond0
    ONBOOT=yes
    BONDING_OPTS="mode=4 miimon=100"
    BOOTPROTO=none

    Trunking

    Create the different VLAN that will be present in the bond. Be sure that the VLAN-ID’s are corresponding with the VLAN-ID’s on switch level.
    cat ifcfg-bond0.111 & cat ifcfg-bond0.112

    DEVICE=bond0.111
    ONBOOT=yes
    TYPE=Ethernet
    BOOTPROTO=static
    IPADDR=10.10.111.10
    NETMASK=255.255.255.0
    VLAN=yes
    ONPARENT=yes
    
    DEVICE=bond0.112
    ONBOOT=yes
    TYPE=Ethernet
    BOOTPROTO=static
    IPADDR=10.10.112.10
    NETMASK=255.255.255.0
    VLAN=yes
    ONPARENT=yes

    Cisco Switches

    interface GigabitEthernet1/0/13
    description EXAMPLE_TRUNK
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 111-112
    switchport mode trunk
    logging event trunk-status
    logging event bundle-status
    storm-control broadcast level 25.00
    storm-control multicast level 25.00
    spanning-tree portfast trunk


    Een reactie achterlaten?

    Je e-mailadres zal niet getoond worden. Vereiste velden zijn gemarkeerd met *