T086ѧϰ�� | վ��ѧԺ | �����ĵ� | ���� | Ъ���� | IP��ַ��ѯ | �������� | ���ջ��� | �����ֵ� | ���ù��� | ������Ϣ��ѯ

Linux������arping��IP��ַ���ս�������

�� ���ߣ��߽��� ����ʱ�䣺2014-01-08 | ���壺�� �� С��
[����]�ؼ���� arping -U -I ���Ͱ��������ӿ� -s Դip Ŀ��ip ʵ���� ��������eth0�ӿڶ�Ӧ��ipΪ192.168.1.1,����Ϊ192.168.1.254���Ϳ���ʹ��arping -U -I eth0 -s 192.168.1.1 192.168.1.254

�����������޳ܵ�Windows�û�����Linux��IP��ַ���������գ��о���һ���磬���ڽ����˴����⡣�����ҷ���һ�¡�

�ٶ���������192.168.5.1������24λ����192.168.5.5�Ѿ���ijWindows�û�ʹ�á�

�ҵ�Linux�������Ŀ��������������е� network �ű���ʱ�򱨴���˵����IP�Ѿ�������ʹ�ã���������ʧ�ܣ�Linux����̫ǫ���ˣ�
���ڵ�Ŀ�����ǰ�����IP����������Ľ���Ҳ���ٱ�֤�����ò�����Ҳ�����á���
�����Ҿ�д�˸��ű���
Shell����

#!/bin/sh

while true;
do
  ifconfig eth0 192.168.5.5/24 up
  route add default gw 192.168.5.1
  sleep 1

done

arping -Uq -s192.168.5.5 -Ieth0 192.168.5.1 &


������ֻҪ�����������ű�����ʹWindows�Ļ�������ʹ��192.168.5.5������IPҲ�ᱻ�ҵ�Linuxǿ���������� 


�ؼ����


arping -U -I ���Ͱ��������ӿ� -s Դip Ŀ��ip


ʵ����


��������eth0�ӿڶ�Ӧ��ipΪ192.168.1.1,����Ϊ192.168.1.254���Ϳ���ʹ��


arping -U -I eth0 -s 192.168.1.1 192.168.1.254

ԭ�ģ�http://www.gaojinbo.com/linux������arping��ip��ַ���ս�������.html

  • ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
  • �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
������ѯ Health Check Gulangyu
© 2017 T086ѧϰ�� - T086.com(ԭitlearner.com)
RunTime:6.08ms QueryTime:7