Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
nic-teaming [2022/01/11 00:24] warmachine |
nic-teaming [2022/01/20 14:08] (current) warmachine |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | cisco configurations for port channel. change your channel number, interface range, and description to suit your deployment. | + | ====== NIC Teaming/ |
| - | < | + | **on the windows server side:**\\ |
| - | interface port-channel 4 | + | |
| - | interface rang gi0/ | + | |
| - | channel-group 4 | + | |
| - | channel-group 4 mode active | + | |
| - | conf int port-channel 4 | + | |
| - | spanning-tree portfast | + | |
| - | port description | + | |
| - | no shut</ | + | |
| - | verify: | + | < |
| + | top pain, left side > nic teaming > enabled | ||
| + | add the nics you wish to bond | ||
| + | bottom right corner > tasks > add team | ||
| + | name your team</ | ||
| - | show ethernet channel summary | + | once applied, you will lose internet connect and gain a new IP. if you are doing this via RDP, use angry IP scanner or similar tools to find your server, RDP back in, and assign a static IP\\ |
| - | on the windows server | + | After you complete the switch configuration, |
| - | sever manager > local server\\ | + | ** |
| - | top pain, left side > nic teaming > enabled\\ | + | if you ware not running a server |
| - | add the nics you wish to bond\\ | + | |
| - | bottom right corner > tasks > add team\\ | + | |
| - | name your team\\ | + | |
| - | once applied, you will lose internet connect and gain a new IP. if you are doing this via RDP, use angry IP scanner or similar tools to find your server, RDP back in, and assign a static IP\\ | + | < |
| + | run it from an elevated powershell prompt and replace the team name with your desired one, and ethernet 1-4 with your NIC names. | ||
| + | **If you have at least one intel NIC** , there is yet, another way LACP/nic teaming can be done. | ||
| + | ref: [[https:// | ||
| + | |||
| + | install the intel pro set drivers, and make sure to check ' | ||
| + | |||
| + | **if you have a linux server instead:** | ||
| + | |||
| + | reference: [[https:// | ||
| + | |||
| + | install the prerequisite packages (this assumes ubuntu, debian, or similar distros): | ||
| + | < | ||
| + | |||
| + | verify the module is loaded: | ||
| + | < | ||
| + | |||
| + | stop the network | ||
| + | |||
| + | < | ||
| + | |||
| + | load the bonding kernel module: | ||
| + | |||
| + | < | ||
| + | |||
| + | configure your interfaces for the bond/team: | ||
| + | |||
| + | < | ||
| + | |||
| + | LACP bond example | ||
| + | |||
| + | < | ||
| + | |||
| + | # eth0 is manually configured, and slave to the " | ||
| + | auto eth0 | ||
| + | iface eth0 inet manual | ||
| + | bond-master bond0 | ||
| + | |||
| + | # eth1 ditto, thus creating a 2-link bond. | ||
| + | auto eth1 | ||
| + | iface eth1 inet manual | ||
| + | bond-master bond0 | ||
| + | |||
| + | # bond0 is the bonded NIC and can be used like any other normal NIC. | ||
| + | # bond0 is configured using static network information. | ||
| + | auto bond0 | ||
| + | iface bond0 inet static | ||
| + | address 192.168.1.10 | ||
| + | gateway 192.168.1.1 | ||
| + | netmask 255.255.255.0 | ||
| + | |||
| + | # bond0 uses standard IEEE 802.3ad LACP bonding protocol | ||
| + | bond-mode 4 | ||
| + | bond-miimon 100 | ||
| + | bond-lacp-rate 1 | ||
| + | bond-slaves eth0 eth1 | ||
| + | | ||
| + | </ | ||
| + | |||
| + | restart the network | ||
| + | |||
| + | < | ||
| + | |||
| + | verify the bond | ||
| + | |||
| + | < | ||
| + | |||
| + | brining the bond up or down: | ||
| + | |||
| + | < | ||
| + | ifup bond0 | ||
| + | ifdown bond0 | ||
| + | </ | ||
| + | |||
| + | another config example with more NICs: | ||
| + | |||
| + | < | ||
| + | |||
| + | root@Violet-Nas-01:/ | ||
| + | # This file describes the network interfaces available on your system | ||
| + | # and how to activate them. For more information, | ||
| + | |||
| + | source / | ||
| + | |||
| + | # The loopback network interface | ||
| + | auto lo | ||
| + | iface lo inet loopback | ||
| + | |||
| + | #LACP config | ||
| + | |||
| + | # eth0 is manually configured, and slave to the " | ||
| + | auto enp5s0 | ||
| + | iface enp5s0 inet manual | ||
| + | bond-master bond0 | ||
| + | |||
| + | # eth1 ditto, thus creating a 2-link bond. | ||
| + | auto enp6s0 | ||
| + | iface enp6s0 inet manual | ||
| + | bond-master bond0 | ||
| + | |||
| + | # eth2 ditto, thus creating a 3-link bond. | ||
| + | auto enp7s0 | ||
| + | iface enp7s0 inet manual | ||
| + | bond-master bond0 | ||
| + | |||
| + | # eth3 ditto, thus creating a 4-link bond. | ||
| + | auto enx000ec6a3f30f | ||
| + | iface enx000ec6a3f30f inet manual | ||
| + | bond-master bond0 | ||
| + | |||
| + | |||
| + | |||
| + | # bond0 is the bonded NIC and can be used like any other normal NIC. | ||
| + | # bond0 is configured using static network information. | ||
| + | auto bond0 | ||
| + | iface bond0 inet static | ||
| + | address 192.168.1.38 | ||
| + | netmask 255.255.255.0 | ||
| + | network 192.168.1.0 | ||
| + | gateway 192.168.1.1 | ||
| + | broadcast 192.168.1.255 | ||
| + | dns-nameservers 192.168.1.33 208.67.222.222 | ||
| + | |||
| + | # bond0 uses standard IEEE 802.3ad LACP bonding protocol | ||
| + | bond-mode 4 | ||
| + | bond-miimon 100 | ||
| + | bond-lacp-rate 1 | ||
| + | bond-slaves enp5s0 enp6s0 enp7s0 enx000ec6a3f30f | ||
| + | bond-downdelay 200 | ||
| + | bond-updelay 200 | ||
| + | bond-xmit_hash_policy 1 | ||
| + | root@Violet-Nas-01:/ | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | **on the switch side:** | ||
| + | |||
| + | cisco configurations for port channel. change your channel number, interface range, vlan, and description to suit your deployment. if you are instead using a trunk port, remove the spanning tree line and vlan, and designate trunk. | ||
| + | |||
| + | < | ||
| + | conf t | ||
| + | interface port-channel 5 | ||
| + | interface rang gi1/0/36-39 | ||
| + | channel-group 5 mode active | ||
| + | spanning-tree portfast | ||
| + | switchport access vlan 100 | ||
| + | description sv3-hp | ||
| + | no shut | ||
| + | end</ | ||
| + | |||
| + | verify: | ||
| + | < | ||
Last modified: le 2022/01/11 00:24
