Link to home
Start Free TrialLog in
Avatar of MichaelBalack
MichaelBalackFlag for Singapore

asked on

How to configure NIC to support trunking?

This is using SuSE Enterprise Linux 12 SP4. There are 2 NIC available on this server. These 2 NICs are connected to separate distribution switch, accordingly for the high availability. If NIC1 connection is down, so long as NIC2 connection is up, both NICs are working.

On the 2 distribution switches, both these NIC ports are configure as a trunk as below,

    switchport mode trunk
    switchport trunk allowed vlan 100,102
    switchport trunk native vlan 1

Vlan 100 is public segment, and 102 is backup segment. On the SuSE linux server, NIC1 is configured with IP for public, and NIC2 for backup. How should we configure the NIC1 and NIC2 in order to support this trunk ports from 2 distribution switches?

Thanks in advance
Avatar of MichaelBalack
MichaelBalack
Flag of Singapore image

ASKER

Look like NIC bonding is needed?

If not wrong, both nic1 & 2 have to be blank. After that, create a bond0 for both nic1 & 2. Then create ifcfg-bond0.100 & ifcfg-bond0.102, for the respective VLANs. is that correct?
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for expert-noci in providing the advise. It works perfectly.