{"id":619,"date":"2019-07-18T10:36:09","date_gmt":"2019-07-18T16:36:09","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=619"},"modified":"2019-09-25T13:43:36","modified_gmt":"2019-09-25T19:43:36","slug":"proxmox-5-configuracion-de-truncales-poseidon","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=619","title":{"rendered":"PROXMOX 5: Configuraci\u00f3n de Truncales Poseidon"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Ingresamos por ssh al servidor<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh 10.20.200.14 -l ugit<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos como usuario root<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>su root<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Editamos el archivo interfaces para a\u00f1adir las subinterfaces<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/network\/interfaces<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>ESTADO ACTUAL<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># network interface settings; autogenerated\n# Please do NOT modify this file directly, unless you know what\n# you're doing.\n#\n# If you want to manage part of the network configuration manually,\n# please utilize the 'source' or 'source-directory' directives to do\n# so.\n# PVE will preserve these directives, but will NOT its network\n# configuration from sourced files, so do not attempt to move any of\n# the PVE managed interfaces into external files!\n\nauto lo\niface lo inet loopback\n\nauto enp66s0\niface enp66s0 inet manual\n#Poseidon INT 2\n\nauto enp4s0\niface enp4s0 inet manual\n#Poseidon EXT\n\nauto enp69s0f0\niface enp69s0f0 inet manual\n#Poseidon INT 6\n\nauto enp69s0f1\niface enp69s0f1 inet manual\n\nauto enp70s0f0\niface enp70s0f0 inet manual\n\nauto enp70s0f1\niface enp70s0f1 inet manual\n\nauto vmbr0\niface vmbr0 inet static\naddress 10.20.200.14\nnetmask 255.255.255.0\nbridge_ports enp66s0\nbridge_stp off\nbridge_fd 0\n\nauto vmbr1\niface vmbr1 inet static\naddress 10.20.252.14\nnetmask 255.255.255.0\nbridge_ports enp69s0f0\nbridge_stp off\nbridge_fd 0\n#Interfaz COROSYNC\n\nauto vmbr2\niface vmbr2 inet manual\nbridge_ports enp69s0f1\nbridge_stp off\nbridge_fd 0\n\nauto vmbr3\niface vmbr3 inet manual\nbridge_ports enp70s0f0\nbridge_stp off\nbridge_fd 0\n\nauto vmbr4\niface vmbr4 inet manual\nbridge_ports enp70s0f1\nbridge_stp off\nbridge_fd 0\n\nauto vmbr5\niface vmbr5 inet static\naddress 181.193.87.5\nnetmask 255.255.255.0\ngateway 181.193.87.1\nbridge_ports enp4s0\nbridge_stp off\nbridge_fd 0\n#Interfaz Publica\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>MODIFICAR <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>##############################################\n################ LOCALHOST ###################\n##############################################\n\nauto lo\niface lo inet loopback\n\n##############################################\n###### INTERFACES FISICAS DE POSEIDON ########\n##############################################\n\n#---- INTERFAZ TRONCAL REDES LOCALES --------#\n\nauto enp66s0\niface enp66s0 inet manual\n#Poseidon INT 2\n\n#----------- INTERFAZ PUBLICA ----------------#\n\nauto enp4s0\niface enp4s0 inet manual\n#Poseidon EXT\n\n#----------- INTERFAZ COROSYNC----------------#\n\nauto enp69s0f0\niface enp69s0f0 inet manual\n#Poseidon INT 6\n\n#------------- INTERFAZ LIBRE ----------------#\n\nauto enp69s0f1\niface enp69s0f1 inet manual\n\n#------------- INTERFAZ LIBRE ----------------#\n\nauto enp70s0f0\niface enp70s0f0 inet manual\n\n#------------- INTERFAZ LIBRE ----------------#\n\nauto enp70s0f1\niface enp70s0f1 inet manual\n\n################################################\n###### SUBINTERFACES DEL TRONCAL enp66s0 #######\n################################################\n\n#----------------------------------------\n#VLAN SIUA_ADM:60\n#----------------------------------------\nauto enp66s0.60\niface enp66s0.60 inet manual\n\n#----------------------------------------\n#VLAN SIUA_UCR:61\n#----------------------------------------\nauto enp66s0.61\niface enp66s0.61 inet manual\n\n#----------------------------------------\n#VLAN SIUA_TEC:90 NOTA: cambiar a 62\n#----------------------------------------\nauto enp66s0.90\niface enp66s0.90 inet manual\n\n#----------------------------------------\n#VLAN SIUA_UNA:20 NOTA:cambiar a 63\n#----------------------------------------\nauto enp66s0.20\niface enp66s0.20 inet manual\n\n#----------------------------------------\n#VLAN SIUA_UNED:64\n#----------------------------------------\nauto enp66s0.64\niface enp66s0.64 inet manual\n\n#----------------------------------------\n#VLAN SIUA_UTN:65\n#----------------------------------------\nauto enp66s0.65\niface enp66s0.65 inet manual\n\n#----------------------------------------\n#VLAN SIUA_UGIT:190\n#----------------------------------------\nauto enp66s0.190\niface enp66s0.190 inet manual\n\n#----------------------------------------\n#VLAN SIUA_VIDEOCONFERENCIA:30\n#----------------------------------------\nauto enp66s0.30\niface enp66s0.30 inet manual\n\n#----------------------------------------\n#VLAN SIUA_VOZIP:40\n#----------------------------------------\nauto enp66s0.40\niface enp66s0.40 inet manual\n\n#----------------------------------------\n#VLAN SIUA_SER_DMZ:111\n#----------------------------------------\nauto enp66s0.111\niface enp66s0.111 inet manual\n\n#----------------------------------------\n#VLAN SIUA_SER_INT:201 NOTA: cambiar 200\n#----------------------------------------\nauto enp66s0.201\niface enp66s0.201 inet manual\n\n#----------------------------------------\n#VLAN SIUA_VIGILANCIA:210\n#----------------------------------------\nauto enp66s0.210\niface enp66s0.210 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB01:101\n#----------------------------------------\nauto enp66s0.101\niface enp66s0.101 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB02:102\n#----------------------------------------\nauto enp66s0.102\niface enp66s0.102 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB03:103\n#----------------------------------------\nauto enp66s0.103\niface enp66s0.103 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB01:104\n#----------------------------------------\nauto enp66s0.104\niface enp66s0.104 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB05:105\n#----------------------------------------\nauto enp66s0.105\niface enp66s0.105 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB_PORT01:106\n#----------------------------------------\nauto enp66s0.106\niface enp66s0.106 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB_PORT02:107\n#----------------------------------------\nauto enp66s0.107\niface enp66s0.107 inet manual\n\n#----------------------------------------\n#VLAN SIUA_LAB_PORT03:108\n#----------------------------------------\nauto enp66s0.108\niface enp66s0.108 inet manual\n\n#----------------------------------------\n#VLAN SIUA_AULAS:110\n#----------------------------------------\nauto enp66s0.110\niface enp66s0.110 inet manual\n\n#----------------------------------------\n#VLAN SIUA_BIBLIOTECA:120\n#----------------------------------------\nauto enp66s0.120\niface enp66s0.120 inet manual\n\n#----------------------------------------\n#VLAN SIUA_WIFI_EST:155\n#----------------------------------------\nauto enp66s0.155\niface enp66s0.155 inet manual\n\n#----------------------------------------\n#VLAN SIUA_WIFI_ADM:169\n#----------------------------------------\nauto enp66s0.169\niface enp66s0.169 inet manual\n\n#----------------------------------------\n#VLAN SIUA_ADM_WIFI:241\n#----------------------------------------\nauto enp66s0.241\niface enp66s0.241 inet manual\n\n#----------------------------------------\n#VLAN SIUA_ADM_SW:250\n#----------------------------------------\nauto enp66s0.250\niface enp66s0.250 inet manual\n\n#----------------------------------------\n#VLAN SIUA_ADM_AP1131:245\n#----------------------------------------\nauto enp66s0.245\niface enp66s0.245 inet manual\n\n##############################################\n###### INTERFACES BRIDGES DE POSEIDON ########\n##############################################\n\n#----- BRIDGE PARA INTERFAZ WEB PUBLICA -------#\n\nauto vmbr5\niface vmbr5 inet static\naddress 181.193.87.5\nnetmask 255.255.255.0\ngateway 181.193.87.1\nbridge_ports enp4s0\nbridge_stp off\nbridge_fd 0\n#Interfaz Publica\n\n#----------- BRIDGE COROSYNC ----------------#\n\nauto vmbr1\niface vmbr1 inet static\naddress 10.20.252.14\nnetmask 255.255.255.0\nbridge_ports enp69s0f0\nbridge_stp off\nbridge_fd 0\n\n#----------- BRIDGE DISPONIBLE --------------#\n\nauto vmbr2\niface vmbr2 inet manual\nbridge_ports enp69s0f1\nbridge_stp off\nbridge_fd 0\n\n#----------- BRIDGE DISPONIBLE --------------#\n\nauto vmbr3\niface vmbr3 inet manual\nbridge_ports enp70s0f0\nbridge_stp off\nbridge_fd 0\n\n#----------- BRIDGE DISPONIBLE --------------#\n\nauto vmbr4\niface vmbr4 inet manual\nbridge_ports enp70s0f1\nbridge_stp off\nbridge_fd 0\n\n##############################################\n##### BRIDGES SOBRE EL TRONCAL enp66s0 ######\n##############################################\n\n#---- BRIDGE PARA INTERFAZ WEB LOCAL --------#\n\nauto vmbr0\niface vmbr0 inet static\naddress 10.20.200.14\nnetmask 255.255.255.0\nbridge_ports enp66s0.201\nbridge_stp off\nbridge_fd 0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Como crear un nuevo puente<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos un nuevo puente Centro de Datos-&gt;zeus-&gt;Redes-&gt;Crear-&gt;Linux Bridge<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"566\" height=\"273\" src=\"\/wp-content\/uploads\/2019\/07\/selecci\u00f3n030_2_o.png\" alt=\"\" class=\"wp-image-620\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/selecci\u00f3n030_2_o.png 566w, https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/selecci\u00f3n030_2_o-300x145.png 300w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos un puente para la VLAN 190<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"594\" height=\"344\" src=\"\/wp-content\/uploads\/2019\/07\/selecci\u00f3n031_2_o.png\" alt=\"\" class=\"wp-image-621\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/selecci\u00f3n031_2_o.png 594w, https:\/\/sada.services\/wp-content\/uploads\/2019\/07\/selecci\u00f3n031_2_o-300x174.png 300w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora el puente se crea pero no se encuentra \u00abActivo\u00bb esto porque proxmox crea estos puentes y todos los cambios de interfaces en el archivo<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/network\/interfaces.new<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Y cuando reinicia aplica las actualizaciones, si es necesario activarla sin reiniciar, abrimos el archivo anterior y copiamos los cambios por ejemplo:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>auto vmbr2\niface vmbr2 inet static\naddress 10.190.0.100\nnetmask 255.255.255.0\nbridge_ports enp66s0.190\nbridge_stp off\nbridge_fd 0\n#Puente UGIT<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Y los ingresamos en<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/network\/interfaces<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Y reiniciamos los servicios<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/init.d\/networking stop &amp;&amp; \/etc\/init.d\/networking start<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Gu\u00eda de configuraci\u00f3n de truncales en proxmox<\/p>\n","protected":false},"author":2,"featured_media":2001,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[12],"class_list":["post-619","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-proxmox","tag-proxmox"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=619"}],"version-history":[{"count":1,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/619\/revisions"}],"predecessor-version":[{"id":622,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/619\/revisions\/622"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/2001"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}