{"id":48,"date":"2020-04-11T04:04:00","date_gmt":"2020-04-11T04:04:00","guid":{"rendered":""},"modified":"2022-11-21T18:11:10","modified_gmt":"2022-11-21T18:11:10","slug":"unir-dos-tarjetas-de-red-bounding","status":"publish","type":"post","link":"http:\/\/aldarias.es\/wordpress\/?p=48","title":{"rendered":"UNIR DOS TARJETAS DE RED: BOUNDING"},"content":{"rendered":"<p>BOUNDING<\/p>\n<p>El bounding es la suma de dos o m\u00e1s interfaces de red para aumentar el ancho de banda o la redundancia. Esto implica la divisi\u00f3n del trafico de red entre los distintos interfaces.<\/p>\n<p>Esto esta probado para linux ubuntu 18 que usa para configurar la red netplan. Si dispones de dos tarjetas de red enp3s0 y enp4s0 las puedes conectar a la misma red a trav\u00e9s de un dispositivo virtual llamado bond0.<\/p>\n<p>INSTALACI\u00d3N <\/p>\n<p>Debemos instalar ifenslave:<\/p>\n<p>sudo apt-get install ifenslave<\/p>\n<p>CONFIGURACI\u00d3N MANUAL<\/p>\n<p>&nbsp;Para probar que funciona el bounding debemos poner en la terminal:<\/p>\n<p>sudo modprobe bonding miimon=100<br \/>sudo ifup bond0<br \/>sudo ifconfig bond0 192.168.1.50 netmask 255.255.0.0<\/p>\n<p>sudo ifenslave bond0 enp3s0 enp4s0<\/p>\n<p>CONFIGURACI\u00d3N&nbsp; DEL ARRANQUE<\/p>\n<p>Para configurar bond0 al arrancar debemos usar netplan<\/p>\n<p>sudo nano \/etc\/netplan\/my-network-file.yaml<\/p>\n<p>network:<br \/>&nbsp; version: 2<br \/>&nbsp; renderer: networkd<br \/>&nbsp; ethernets:<br \/>&nbsp;&nbsp;&nbsp; enp3s0:<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dhcp4: true<br \/>&nbsp;&nbsp;&nbsp; enp4s0:<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dhcp4: true<br \/>&nbsp; bonds:<br \/>&nbsp;&nbsp;&nbsp; bond0:<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addresses: [192.168.1.50\/24]<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gateway4: 192.168.1.1<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interfaces: [enp3s0, enp4s0]<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; parameters:<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mode: balance-rr<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; primary: enp3s0<\/p>\n<p>Aplicar la configuraci\u00f3n con:<br \/>sudo netplan apply<\/p>\n<p>Cargar en el nucleo bond al arrancar<br \/>sudo nano \/etc\/modprobe.conf<\/p>\n<p>alias bond bounding<br \/>options bond0 mode=balance-rr miimon=100<\/p>\n<p>3.&nbsp; Podemos ver los interface con:<br \/>ifconfig <br \/>bond0: flags=5187<up>&nbsp; mtu 1500<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 192.168.1.50&nbsp; netmask 255.255.255.0&nbsp; broadcast 192.168.1.255<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 fe80::2e0:4cff:fe68:32f8&nbsp; prefixlen 64&nbsp; scopeid 0x20<link><\/link>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ether 00:e0:4c:68:32:f8&nbsp; txqueuelen 1000&nbsp; (Ethernet)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets 7049&nbsp; bytes 5723342 (5.7 MB)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX errors 0&nbsp; dropped 7&nbsp; overruns 0&nbsp; frame 0<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets 4741&nbsp; bytes 661331 (661.3 KB)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX errors 0&nbsp; dropped 29 overruns 0&nbsp; carrier 0&nbsp; collisions 0<br \/>&#8230;<\/up><\/p>\n<p><up><up><up><host><br \/><\/host><\/up><\/up><\/up><up><up><up><host>4. Fuentes:<\/host><\/up><\/up><\/up><br \/><a href=\"https:\/\/www.blogger.com\/goog_1722997821\"><br \/><\/a><a href=\"https:\/\/www.systutorials.com\/docs\/linux\/man\/8-ifenslave\/\"><up><up><up><host>https:\/\/www.systutorials.com\/docs\/linux\/man\/8-ifenslave\/<\/host><\/up><\/up><\/up><\/a><\/p>\n<p><a href=\"https:\/\/www.elmundoenbits.com\/2013\/01\/ifenslave-bonding.html\"><up><up><up><host>https:\/\/www.elmundoenbits.com\/2013\/01\/ifenslave-bonding.html<\/host><\/up><\/up><\/up><\/a><\/p>\n<p><a href=\"http:\/\/www.nerrots.com\/?p=130\"><up><up><up><host>http:\/\/www.nerrots.com\/?p=130<\/host><\/up><\/up><\/up><\/a><\/p>\n<p><a href=\"http:\/\/www.estrellateyarde.org\/configurar-la-red-en-linux\/union-de-interfaces-de-red-channel-bonding-en-linux\"><up><up><up><host>http:\/\/www.estrellateyarde.org\/configurar-la-red-en-linux\/union-de-interfaces-de-red-channel-bonding-en-linux<\/host><\/up><\/up><\/up><\/a><\/p>\n<p><up><up><up><host><a href=\"https:\/\/netplan.io\/examples\">https:\/\/netplan.io\/examples<\/a><\/host><\/up><\/up><\/up><\/p>\n<p><up><up><up><host><a href=\"https:\/\/www.youtube.com\/watch?v=WubzWJ9G_8c\">https:\/\/www.youtube.com\/watch?v=WubzWJ9G_8c<\/a> <\/host><\/up><\/up><\/up><\/p>\n<p><up><up><up><host>&nbsp; <\/host><\/up><\/up><\/up><\/p>\n<p><up><up><up><host><br \/><\/host><\/up><\/up><\/up><\/p>\n","protected":false},"excerpt":{"rendered":"<p>BOUNDING El bounding es la suma de dos o m\u00e1s interfaces de red para aumentar el ancho de banda o la redundancia. Esto implica la divisi\u00f3n del trafico de red entre los distintos interfaces. Esto esta probado para linux ubuntu &hellip; <a href=\"http:\/\/aldarias.es\/wordpress\/?p=48\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"categories":[41,43,42,40],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-bond","category-bounding","category-ifenslave","category-redes"],"_links":{"self":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":1,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":237,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/237"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}