Cómo vincular una dirección IP 192.168.0.49, dirección mac 00:00:39:b2:32:91 en Linux
1. Cree un nuevo archivo de tabla estático mac--gt; ip: ip-mac. Escriba la IP y la MAC que se vincularán a este archivo en el formato
ip.
mac.
[root@ftpsvr
~]#
echo
'192.168.1.1
00:00 :00:00:00:00
<'
gt;
/etc/ip-mac
[root@ftpsvr
~]#
más
/etc/ip-mac
192.168.1.1
00:00 :00:00:00:00
2. Establecer el enlace automático en el arranque
[root@ftpsvr
~]#
echo
'arp
-f
/etc/ip-mac
gt; ;
/etc/rc.d/rc.local
3. Realizar enlace manualmente
[root@ftpsvr
~] #
arp
-f
/etc/ip-mac
4. Confirme si el enlace se realizó correctamente
.[root@ftpsvr
~]#
arp