Bonding 2 NICS question
Hello
I would like to bond the 2 network interfaces on my Ubuntu server 18.04. There is information online about how to go about it, however I am confused about which IP information should I put in the bonding config file. The machine has two NICs. One is called eno1 and the second one enp13s0. Both interfaces are online and pinging. Which IP address should I use for the bonding? Will it be a completely new IP? or can I use the IP of one of the live interfaces? Thank you |
Quote:
https://www.interserver.net/tips/kb/...twork-bonding/ Perhaps, share your config files (feel free to mask the IPs), so we can understand and help? |
Hello
Sorry for my late reply. I understand that only the bonded NIC will have an IP address. What I am not sure about is what IP should I use for the bonding NIC? My /etc/network/interfaces file looks like this: Quote:
Quote:
eno1 is DHCPing and working. enp13s0 is currently unpatched. I read online that on ubuntu 18.04 netplan is used to do NIC bonding by creating a file inside /etc/netplan/my_net.yaml. Which IP should I use in the config file (my_net.yaml)? Can I use the one from eno1? Thank you |
Quote:
|
I'm curious how it is getting eno1 if you are using 18.04. Systemd uses it's own naming scheme (read enp13s0). eno, eth, ens, and any others should no longer show up. Netplan is also used and /etc/network/interfaces should do nothing without the ifupdown package, which shouldn't be installed on 18.04. If this is an upgrade from 16.04 then you would still use /etc/network/interfaces at which point you shouldn't be using netplan unless you manually switch to it. 16.04 also used systemd so there is still no explanation for how eno is showing up there either. May want to sort that out first. Something is not right and until the base issue is fixed this will be a headache, if you get it working at all. Here is a netplan guide once you get sorted out.
*EDIT* Maybe I misunderstand how systemd does interface names. Your ip a command doesn't make any sense to me. I will readily admit I could be wrong on these points. *END EDIT* https://netplan.io/examples I would adjust their bond example to the below based on my own experience. I'm not sure how old that guide is but the formatting they have for a bond, which is similar to static ip's didn't work in my case. The below would probably work (based on what I eventually got working and other parts of the same guide). Single spaces, no tabs. Indentation is key in Yaml files. *EDIT* Just did some looking around. Isn't in the guide but it appears some people have had to declare the interfaces individually with dhcp4/6: false in their netplan configs for bonds. I'm not sure if it's required or not as I cannot test it. They would be declared in the netplan config like so. Code:
network: Code:
network: Code:
network: Code:
network: |
Thank you both for your time. You have helped me understand a few things. My NIC bonding is working now.
ALl the best. |
All times are GMT -5. The time now is 02:11 AM. |