[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Amarrar ip ao mac no /etc/ethers



Fica assim:

ddns-update-style none;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.150 10.0.0.246;
option domain-name-servers 208.67.222.222;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
#default-lease-time 600;
#max-lease-time 7200;
#
host ailtontablet{
hardware ethernet 74:e1:b6:ee:fc:de;
fixed-address 10.0.0.142;
}
host ozanielcel{
hardware ethernet 3c:43:8e:44:c3:45;
fixed-address 10.0.0.143;
}
host uedercel{
hardware ethernet 18:20:32:71:9d:f7;
fixed-address 10.0.0.145;
}
host iuricel{
hardware ethernet d4:9a:20:8e:b9:ed;
fixed-address 10.0.0.144;
}        
host ailtoncel{
hardware ethernet c0:9f:42:65:c2:94;
fixed-address 10.0.0.146;
}           
host uederteste{
hardware ethernet 00:07:ab:a1:46:9b;
fixed-address 10.0.0.147;
}  
host junior{
hardware ethernet cc:af:78:be:09:91;
fixed-address 10.0.0.148;
}
host Ailton-cel{
hardware ethernet 40:2b:a1:50:b6:3e;
fixed-address 10.0.0.151;
}  
host Ailton-luiz2{
hardware ethernet 00:13:e8:f0:25:47;
fixed-address 10.0.0.150;
}
host Vilma{
hardware ethernet 00:24:1d:f7:66:35;
fixed-address 10.0.0.152;
}
host ueder-novo-not{
hardware ethernet 00:1e:68:44:fb:e2;
fixed-address 10.0.0.155;
}
host ueder-not{
hardware ethernet 00:1f:e1:11:3f:0f;
fixed-address 10.0.0.156;
}
host MAYANE{
hardware ethernet 00:0f:ea:d2:88:d7;
fixed-address 10.0.0.157;
}
host HELENA{
hardware ethernet 00:1f:d0:fb:6b:98;
fixed-address 10.0.0.158;
}
host recepcao{
hardware ethernet 00:11:6b:91:87:8d;
fixed-address 10.0.0.159;
}
host CINARA{
hardware ethernet 00:1d:7d:8e:3e:d3;
fixed-address 10.0.0.160;
}
host PEDRO{
hardware ethernet 00:07:e9:97:43:3a;
fixed-address 10.0.0.161;
}
host RICARDO{
hardware ethernet 00:16:ec:5c:02:98;
fixed-address 10.0.0.162;
}
host FLEUBER{
hardware ethernet 00:e0:7d:c5:ae:93;
fixed-address 10.0.0.163;
}
host Pedro{
hardware ethernet 64:27:37:B0:86:2D;
fixed-address 10.0.0.178;
}
host Pedroo{
hardware ethernet 00:26:c7:b3:87:ba;
fixed-address 10.0.0.179;
}
host Andreia{
hardware ethernet 00:24:2c:9d:81:92;
fixed-address 10.0.0.174;
}
host server{
hardware ethernet 00:83:08:00:7a:ac;
fixed-address 10.0.0.190;
}
host finaceior2{
hardware ethernet 00:e0:40:00:07:93;
fixed-address 10.0.0.198;
}
host Junior{
hardware ethernet 00:0c:e7:3a:1a:6b;
fixed-address 10.0.0.175;
}
host pedro{
hardware ethernet bc:47:60:5e:f4:13;
fixed-address 10.0.0.176;
}
host Ozaniel{
hardware ethernet 00:19:7e:59:a7:64;
fixed-address 10.0.0.177;
}
host luizcarlos{
hardware ethernet e0:91:53:31:6f:26;
fixed-address 10.0.0.200;
}
host Adrielycel{
hardware ethernet 24:21:ab:fc:87:5b;
fixed-address 10.0.0.201;
}
host Thiagonot{
hardware ethernet 00:22:5f:e3:b5:40;
fixed-address 10.0.0.202;
}
host visita{
hardware ethernet 18:f4:6a:d1:c9:61;
fixed-address 10.0.0.230;
}
host format{
hardware ethernet 00:21:85:8f:88:f6;
fixed-address 10.0.0.231;
}
host testeailton{
hardware ethernet 00:16:78:20:4c:04;
fixed-address 10.0.0.232;
}
host luiz-not{
hardware ethernet 00:15:af:5b:e8:b7;
fixed-address 10.0.0.233;
}
host SuporteII{
hardware ethernet 00:22:68:7e:2e:82;
fixed-address 10.0.0.238;
}
host ozaniel-eth0{
hardware ethernet 00:0f:b0:cf:68:f2;
fixed-address 10.0.0.188;
}
host JuniorCel-eth0{
hardware ethernet cc:05:1b:5e:6e:da;
fixed-address 10.0.0.243;
}
host elemidia{
hardware ethernet 00:02:2a:d8:b3:f8;
fixed-address 10.0.0.250;
}
host jrurbi{
hardware ethernet cc:05:1b:5e:6d:82;
fixed-address 10.0.0.154;
}
host italo-ailton{
hardware ethernet 00:1c:7b:9c:a6:34;
fixed-address 10.0.0.182;
}
host cleiomar{
hardware ethernet b4:74:9f:d0:52:da;
fixed-address 10.0.0.189;
}
host edvan{
hardware ethernet 70:f1:a1:dd:9a:8c;
fixed-address 10.0.0.192;
}
host jrcel3{
hardware ethernet 00:1d:fe:d6:fb:09;
fixed-address 10.0.0.181;
}
host jrcel43{
hardware ethernet a8:92:2c:77:ba:2d;
fixed-address 10.0.0.213;
}
host serverts{
hardware ethernet 10:78:d2:da:2b:30;
fixed-address 10.0.0.183;
}
host netbook-helena{
hardware ethernet 78:E4:00:27:98:BE;
fixed-address 10.0.0.195;
}
host suporte-1{
hardware ethernet c8:9c:dc:48:cf:a1;
fixed-address 10.0.0.204;
}}

Em 3 de outubro de 2012 14:38, Christiano Liberato <christianoliberato@gmail.com> escreveu:
Ueder,

e a configuração do dhcpd.conf, como fica?

Em 2 de outubro de 2012 17:54, Ueder José Ramos <ueder84@gmail.com> escreveu:
isso mesmo dentro do ''etc'' vc cria um arquivo com nome ''ethers'' e coloca toda a faixa de ip, no ip que vai ser usado vc coloca o maca como segue abaixo e nos que nao vao ser usados vc coloca 00 como esta abaixo
10.0.0.2 00:00:00:00:00:00
10.0.0.3 00:00:00:00:00:00
10.0.0.4 00:00:00:00:00:00
10.0.0.5 00:00:00:00:00:00
10.0.0.6 00:00:00:00:00:00
10.0.0.7 00:00:00:00:00:00
10.0.0.8 00:00:00:00:00:00
10.0.0.9 00:00:00:00:00:00
10.0.0.10 00:00:00:00:00:00
10.0.0.11 00:00:00:00:00:00
10.0.0.12 00:00:00:00:00:00
10.0.0.13 00:00:00:00:00:00
10.0.0.14 00:00:00:00:00:00

tem tbem que colocar o comando arp -f em algum lugar para que seja sempre reestartado quando vc reebootar o servidor.

se tiver duvida me chama ai

abraço.


Em 2 de outubro de 2012 17:00, Christiano Liberato <christianoliberato@gmail.com> escreveu:

Caro Ueder,

tinha postado na lista do debian sobre amarrar ip ao mac e você respondeu que fez isso facilmente com a opção /etc/ethers.
Como funciona essa opção? É algo atrelado a arp?

Preciso liberar acesso numa rede somente a IPs amarrados ao MAC.
Nao é acesso a internet.. é à rede mesmo.

Obrigado.



--
___________________________________
Ueder Ramos Analista de Redes
Urbi Telecom  (62) 3920-3055
Linux User: #530240
Tecnólogo em Redes de Computadores Faculdade Estácio de Sá GO
Por causa da Tua palavra lançaremos as redes!” (Cf. Lc 5,5).
Projeto “Lançai as Redes”





--
___________________________________
Ueder Ramos Analista de Redes
Urbi Telecom  (62) 3920-3055
Linux User: #530240
Tecnólogo em Redes de Computadores Faculdade Estácio de Sá GO
Por causa da Tua palavra lançaremos as redes!” (Cf. Lc 5,5).
Projeto “Lançai as Redes”


Reply to: