arp 명령 이용하여 아이피,맥 셋팅하기

· 13년 전 · 1642
arp 를 이용해서 아이피와 맥을 셋팅할 수 있습니다.

[root@localhost ~]# arp -s -i eth0 10.5.5.5 11:11:11:11:11:11
[root@localhost ~]# arp -an
? (10.5.5.5) at 11:11:11:11:11:11 [ether] PERM on eth0

같은 네트워크를 사용하는 다른 서버가 있을 때 게이트웨이 점유가 될경우
위와 같은 방법으로 게이트웨이 아이피와 맥을 static 으로 설정하여 임시방편으로
서비스장애를 회피할 수 있습니다. 그러나 어디까지나 임시이며, 문제가 되는 
서버를 찾아내어 맥스푸핑이 되지 않도록 해야 합니다.

[root@www ~]# arp --help
Usage:
 arp [-vn]  [<HW>] [-i <if>] [-a] [<hostname>]             <-Display ARP cache
 arp [-v]          [-i <if>] -d  <hostname> [pub][nopub]    <-Delete ARP entry
 arp [-vnD] [<HW>] [-i <if>] -f  [<filename>]              <-Add entry from file
 arp [-v]   [<HW>] [-i <if>] -s  <hostname> <hwaddr> [temp][nopub] <-Add entry
 arp [-v]   [<HW>] [-i <if>] -s  <hostname> <hwaddr> [netmask <nm>] pub  <-''-
 arp [-v]   [<HW>] [-i <if>] -Ds <hostname> <if> [netmask <nm>] pub      <-''-

       -a                       display (all) hosts in alternative (BSD) style
       -e                       display (all) hosts in default (Linux) style
       -s, --set                set a new ARP entry
       -d, --delete             delete a specified entry
       -v, --verbose            be verbose
       -n, --numeric            don't resolve names
       -i, --device             specify network interface (e.g. eth0)
       -D, --use-device         read <hwaddr> from given device
       -A, -p, --protocol       specify protocol family
       -f, --file               read new entries from file or from /etc/ethers

 <HW>=Use '-H <hw>' to specify hardware address type. Default: ether
 List of possible hardware types (which support ARP):
   strip (Metricom Starmode IP) ash (Ash) ether (Ethernet) 
   tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25) 
   netrom (AMPR NET/ROM) rose (AMPR ROSE) arcnet (ARCnet) 
   dlci (Frame Relay DLCI) fddi (Fiber Distributed Data Interface) hippi (HIPPI) 
   irda (IrLAP) x25 (generic X.25)
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 2,641
13년 전 조회 1,704
13년 전 조회 2,618
13년 전 조회 1,955
13년 전 조회 5,099
13년 전 조회 2,182
13년 전 조회 1,834
13년 전 조회 1,495
13년 전 조회 1,443
13년 전 조회 2,451
13년 전 조회 2,102
13년 전 조회 3,584
13년 전 조회 1,582
13년 전 조회 1,737
13년 전 조회 1,446
13년 전 조회 1,629
13년 전 조회 1,494
13년 전 조회 1,892
13년 전 조회 1,627
13년 전 조회 1,831
13년 전 조회 3,257
13년 전 조회 2,420
13년 전 조회 2,431
13년 전 조회 2,286
13년 전 조회 2,997
13년 전 조회 1,662
13년 전 조회 1,548
13년 전 조회 2,926
13년 전 조회 1,509
13년 전 조회 1,477
13년 전 조회 1,798
13년 전 조회 1,518
13년 전 조회 1,394
13년 전 조회 1,682
13년 전 조회 1,923
13년 전 조회 1,937
13년 전 조회 1,687
13년 전 조회 2,535
13년 전 조회 1,727
13년 전 조회 1,300
13년 전 조회 1,646
13년 전 조회 2,118
13년 전 조회 1,714
13년 전 조회 1,255
13년 전 조회 1,782
13년 전 조회 2,283
13년 전 조회 1,296
13년 전 조회 1,400
13년 전 조회 1,293
13년 전 조회 1,643
13년 전 조회 1,328
13년 전 조회 1,780
13년 전 조회 1,874
13년 전 조회 2,229
13년 전 조회 1,491
13년 전 조회 1,696
13년 전 조회 5,387
13년 전 조회 1,838
13년 전 조회 1,295
13년 전 조회 1,241
13년 전 조회 1,412
13년 전 조회 1,850
13년 전 조회 1,182
13년 전 조회 2,218
13년 전 조회 2,469
13년 전 조회 1,356
13년 전 조회 1,270
13년 전 조회 1,414
13년 전 조회 2,997
13년 전 조회 1,130
13년 전 조회 1,279
13년 전 조회 1,144
13년 전 조회 1,218
13년 전 조회 1,726
13년 전 조회 1,926
13년 전 조회 1,238
13년 전 조회 1,336
13년 전 조회 1,781
13년 전 조회 1,245
13년 전 조회 2,009
13년 전 조회 2,354
13년 전 조회 4,773
13년 전 조회 1,774
13년 전 조회 1,991
13년 전 조회 1,434
13년 전 조회 1,384
13년 전 조회 1,426
13년 전 조회 1,815
13년 전 조회 2,992
13년 전 조회 1,519
13년 전 조회 2,550
13년 전 조회 2,590
13년 전 조회 2,919
13년 전 조회 1,616
13년 전 조회 1,939
13년 전 조회 1,628
13년 전 조회 1,712
13년 전 조회 1,624
13년 전 조회 1,493
13년 전 조회 1,623