Mudanças entre as edições de "Minicluster:Rede"
De WikiLICC
m (→Desativar a interfave virbr0) |
m (→Configurar servidor dhcp) |
||
Linha 107: | Linha 107: | ||
== Configurar servidor dhcp == | == Configurar servidor dhcp == | ||
* descrever .... | * descrever .... | ||
+ | Parte do arquivo /etc/dhcp.conf deve ser configurada e parte será configurada pelo DRBL. | ||
+ | <pre> | ||
+ | # Generated by DRBL. | ||
+ | # Do NOT modify this file unless you know what you are doing! | ||
+ | default-lease-time 300; | ||
+ | max-lease-time 300; | ||
+ | option subnet-mask 255.255.255.0; | ||
+ | option domain-name-servers 143.54.2.165,143.54.2.166; | ||
+ | option domain-name "drbl.org"; | ||
+ | ddns-update-style none; | ||
+ | server-name drbl; | ||
+ | allow booting; | ||
+ | allow bootp; | ||
+ | |||
+ | option arch code 93 = unsigned integer 16; | ||
+ | option space pxelinux; | ||
+ | option pxelinux.magic code 208 = string; | ||
+ | option pxelinux.configfile code 209 = text; | ||
+ | option pxelinux.pathprefix code 210 = text; | ||
+ | option pxelinux.reboottime code 211 = unsigned integer 32; | ||
+ | |||
+ | site-option-space "pxelinux"; | ||
+ | if exists dhcp-parameter-request-list { | ||
+ | # Always send the PXELINUX options (specified in hexadecimal) | ||
+ | option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1,d2,d3); | ||
+ | } | ||
+ | |||
+ | # (2) grub (drbl-gen-grub-efi-nb) | ||
+ | if option arch = 00:06 { | ||
+ | filename "bootia32.efi"; | ||
+ | } else if option arch = 00:07 { | ||
+ | filename "bootx64.efi"; | ||
+ | } else if option arch = 00:09 { | ||
+ | # For iPXE uEFI client. Ref: http://ipxe.org/cfg/platform | ||
+ | # Thanks to Danny Russ for providing this. | ||
+ | filename "bootx64.efi"; | ||
+ | } else { | ||
+ | filename "pxelinux.0"; | ||
+ | } | ||
+ | ## | ||
+ | ## A parte abaixo é feita pelo DRBL | ||
+ | ## | ||
+ | ########################################## | ||
+ | # The DRBL client class: PXE, Etherboot or DRBL client | ||
+ | class "DRBL-Client" { | ||
+ | match if | ||
+ | (substring(option vendor-class-identifier, 0, 9) = "PXEClient") or | ||
+ | (substring(option vendor-class-identifier, 0, 9) = "Etherboot") or | ||
+ | (substring(option vendor-class-identifier, 0, 10) = "DRBLClient") ; | ||
+ | } | ||
+ | |||
+ | subnet 192.168.0.0 netmask 255.255.255.0 { | ||
+ | option subnet-mask 255.255.255.0; | ||
+ | option routers 192.168.0.100; | ||
+ | next-server 192.168.0.100; | ||
+ | |||
+ | host cellswitch { | ||
+ | hardware ethernet 00:24:73:d7:a5:41; | ||
+ | fixed-address 192.168.0.50; | ||
+ | # BY DAGO | ||
+ | } | ||
+ | host cell108 { | ||
+ | hardware ethernet 18:A9:05:E8:1E:16; | ||
+ | fixed-address 192.168.0.108; | ||
+ | # option host-name "cell108"; | ||
+ | } | ||
+ | host cell109 { | ||
+ | ... | ||
+ | } | ||
+ | host cell123 { | ||
+ | ... | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
== Nova placa== | == Nova placa== |
Edição das 02h15min de 19 de julho de 2017
Índice
Topologia da rede
X.X.X.X 192.168.0.100 /\/\/\/\/\/\/\/\/\ /------\ < rede.mat.ufrgs.br >----< one > \/\/\/\/\/\/\/\/\/ \------/ /----[ cell108 ] 192.168.0.108 | / +--------+/------[ cell109 ] 192.168.0.109 [ SWITCH ] [ ]-------[ cell110 ] 192.168.0.110 +--------+\ \-----[ cell111 ] 192.168.0.111
vi /etc/hosts
127.0.0.1 localhost localhost.localdomain ::1 localhost6 localhost6.localdomain6 143.54.226.61 euler 143.54.226.62 turing 143.54.226.118 hunter hunter.mat.ufrgs.br 192.168.0.100 cellautoenp7s4 192.168.0.108 cell108 192.168.0.109 cell109 192.168.0.110 cell110 192.168.0.111 cell111 192.168.0.112 cell112 192.168.0.113 cell113 192.168.0.114 cell114 192.168.0.115 cell115 192.168.0.116 cell116 192.168.0.117 cell117 192.168.0.118 cell118 192.168.0.119 cell119 192.168.0.120 cell120 192.168.0.121 cell121 192.168.0.122 cell122 192.168.0.123 cell123
ifconfig
- one
NIC HWaddr Hostname inet addr: Bcast: Mask: Link encap: inet6 addr: Scope: enp0s25 18:A9:05:E8:AE:0B one 143.54.226.116 143.54.227.255 255.255.254.0 Ethernet fe80::f8b4:c258:f7e1:3939/64 Link enp7s4 00:0A:5E:5C:2C:04 192.168.0.100 192.168.0.255 255.255.255.0 Ethernet lo 127.0.0.1 255.0.0.0 Local Loopback ::1/128 Host virbr0 ??????
Desativar a interfave virbr0
- Foi necessário desativar a bridge virbr0 usando o Network Manager (o DRBL tentava configurar nós para a bridge também).
A interface virbr0, ou "Virtual Bridge 0" é usada pelo NAT (Network Address Translation). Fornecida pela biblioteca libvirt e ambientes virtuais é algumas vezes usada para se conectar com redes externas.
- cell108
eth0 18:A9:05:E8:0E:B8 cell101 192.168.0.101 192.168.0.255 255.255.255.0 Ethernet fe80::1aa9:5ff:fee8:eb8/64 Link lo 127.0.0.1 255.0.0.0 Local Loopback ::1/128 Host
Trocar ip do mestre
[root@one] $ cd /etc/sysconfig/network-scripts/ [root@one] $ ls ifcfg* ifcfg-enp0s25 ifcfg-enpPlaca ifcfg-lo
[root@one] $ vi ifcfg-enpPlaca ... IPADDR=192.168.0.100 PREFIX=24 GATEWAY=192.168.0.255 ...
Patrimônio e MAC
Os números MAC serão usados no DRBL.
459708 18:A9:05:E8:ae:08 cell108 192.168.0.108 ....09 18:A9:05:E8:0e:b2 cell109 192.168.0.109 ....10 18:A9:05:E8:0e:ec cell110 .. ....11 18:A9:05:E8:9e:49 cell111 .. ....12 18:A9:05:E8:ae:64 cell112 ....13 18:A9:05:E8:9e:f7 cell113 ....14 18:A9:05:E8:ae:0c cell114 ....15 18:A9:05:E8:ae:7b cell115 ....16 18:A9:05:E8:ae:18 cell116 ....17 18:A9:05:E8:1e:1c cell117 ....18 18:A9:05:E8:0e:b8 cell118 (teste inicial) ....19 18:A9:05:E8:9e:f0 cell119 (sata -> one) ....20 18:A9:05:E8:9e:f4 cell120 ....21 18:A9:05:E8:9e:8e cell121 ....22 18:A9:05:E8:9e:ea cell122 ....23 18:A9:05:E8:9e:a9 cell123
459724 18:A9:05:E8:ae:0b tri 459725 18:A9:05:E8:1e:16 one.matrix 143.54.226.166 -- 00:06:4F:61:C4:5A theone 192.168.0.100 (PLACA REDE) -- 00:0a:5e:5c:2c:04 (NOVA PLACA REDE)
461466 00:24:73:d7:a5:41 switch 192.168.0.50
Configurar servidor dhcp
- descrever ....
Parte do arquivo /etc/dhcp.conf deve ser configurada e parte será configurada pelo DRBL.
# Generated by DRBL. # Do NOT modify this file unless you know what you are doing! default-lease-time 300; max-lease-time 300; option subnet-mask 255.255.255.0; option domain-name-servers 143.54.2.165,143.54.2.166; option domain-name "drbl.org"; ddns-update-style none; server-name drbl; allow booting; allow bootp; option arch code 93 = unsigned integer 16; option space pxelinux; option pxelinux.magic code 208 = string; option pxelinux.configfile code 209 = text; option pxelinux.pathprefix code 210 = text; option pxelinux.reboottime code 211 = unsigned integer 32; site-option-space "pxelinux"; if exists dhcp-parameter-request-list { # Always send the PXELINUX options (specified in hexadecimal) option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1,d2,d3); } # (2) grub (drbl-gen-grub-efi-nb) if option arch = 00:06 { filename "bootia32.efi"; } else if option arch = 00:07 { filename "bootx64.efi"; } else if option arch = 00:09 { # For iPXE uEFI client. Ref: http://ipxe.org/cfg/platform # Thanks to Danny Russ for providing this. filename "bootx64.efi"; } else { filename "pxelinux.0"; } ## ## A parte abaixo é feita pelo DRBL ## ########################################## # The DRBL client class: PXE, Etherboot or DRBL client class "DRBL-Client" { match if (substring(option vendor-class-identifier, 0, 9) = "PXEClient") or (substring(option vendor-class-identifier, 0, 9) = "Etherboot") or (substring(option vendor-class-identifier, 0, 10) = "DRBLClient") ; } subnet 192.168.0.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option routers 192.168.0.100; next-server 192.168.0.100; host cellswitch { hardware ethernet 00:24:73:d7:a5:41; fixed-address 192.168.0.50; # BY DAGO } host cell108 { hardware ethernet 18:A9:05:E8:1E:16; fixed-address 192.168.0.108; # option host-name "cell108"; } host cell109 { ... } host cell123 { ... } }
Nova placa
- A placa de rede MAC 00:06:4F:61:C4:5A aparenta problemas (físicos, porém pode ser apenas configuração)
- Nova placa externa foi instalada MAC 00:0A:5E:5C:2C:04
Entretanto ela está sendo nomeada como eth2 (talvez causando problema, pois não consigo ativá-la).
Comando úteis:
- atualiza nomes e dados de placas (não fez diferença)
[user] update-pciids