Network: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
nmcli connection modify enp_bond ipv4.method manual | nmcli connection modify enp_bond ipv4.method manual | ||
nmcli connection modify enp_bond ipv4.address 129.57.69.11/24 | nmcli connection modify enp_bond ipv4.address 129.57.69.11/24 | ||
You can use 'nmtui' as well to programm all above. |
Revision as of 10:52, 8 February 2024
Display traffic
nload -i 10000000 -o 10000000 p6p1
netstat -anp | grep <port>
Bond two network ports together (example for clonfarm21)
nmcli connection add type bond con-name enp_bond ifname enp_bond bond.options mode=802.3ad nmcli connection add type ethernet ifname ens2np0 master enp_bond nmcli connection add type ethernet ifname ens7np0 master enp_bond nmcli connection show
Last command will show follwoing:
NAME UUID TYPE DEVICE enp_bond 969dc408-bb43-49e0-8c29-62965f70f4c7 bond enp_bond ens10f0 f333ab08-b67a-41c9-9108-7658af3435d0 ethernet ens10f0 ens2np0 85e7f4bd-5daf-3095-b207-bdcaf14d903c ethernet ens2np0 ens7np0 5abd79b1-22e9-4210-9262-fc2dbbda51f7 ethernet ens7np0 lo bcf93a26-5114-45c5-b586-9288dfefbb33 loopback lo bond-slave-ens2np0 7961787a-f51f-459d-9bf8-0add8a528679 ethernet -- bond-slave-ens7np0 aa376ad3-fd9f-44a2-8154-04685ce2da72 ethernet -- ens10f1 0c14d2dd-c3bc-4d3d-8c7d-04cded521498 ethernet -- usb0 4fef7067-fb03-4115-ac62-c95a91979384 ethernet --
Now, set bond method to 'manual', and set IP address:
nmcli connection modify enp_bond ipv4.method manual nmcli connection modify enp_bond ipv4.address 129.57.69.11/24
You can use 'nmtui' as well to programm all above.