빅

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

· 2012-05-14 (월) 12:46:19 · 3220
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)
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,187건
+
제목 글쓴이 날짜 조회
12-07-10 조회 3,713
12-07-10 조회 4,450
12-07-10 조회 4,748
12-07-09 조회 7,157
12-07-09 조회 3,494
12-07-09 조회 4,920
12-07-09 조회 3,412
12-07-09 조회 3,784
12-07-09 조회 3,630
12-07-09 조회 3,340
12-07-09 조회 1.3만
12-07-09 조회 3,285
12-07-09 조회 4,317
12-07-09 조회 3,488
12-07-09 조회 3,483
12-07-09 조회 4,727
12-07-08 조회 4,622
12-07-08 조회 4,655
12-07-07 조회 5,576
12-07-07 조회 3,683
12-07-06 조회 3,344
12-07-06 조회 3,517
12-07-06 조회 4,807
12-07-06 조회 4,088
12-07-06 조회 3,885
12-07-06 조회 3,987
12-07-06 조회 3,576
12-07-06 조회 4,173
12-07-06 조회 3,548
12-07-06 조회 3,926
12-07-06 조회 3,966
12-07-06 조회 4,375
12-07-06 조회 3,890
12-07-05 조회 4,136
12-07-05 조회 3,491
12-07-05 조회 3,566
12-07-05 조회 3,570
12-07-05 조회 3,965
12-07-05 조회 3,472
12-07-05 조회 3,929
12-07-05 조회 3,492
12-07-05 조회 3,521
12-07-04 조회 3,629
12-07-04 조회 3,594
12-07-04 조회 4,505
12-07-04 조회 3,841
12-07-04 조회 3,930
12-07-04 조회 4,455
12-07-03 조회 3,845
12-07-03 조회 3,085
12-07-03 조회 3,429
12-07-03 조회 4,141
12-07-03 조회 3,601
12-07-03 조회 3,392
12-07-02 조회 3,457
12-07-02 조회 5,605
12-07-02 조회 4,301
12-07-02 조회 4,130
12-07-02 조회 3,523
12-07-02 조회 3,413
12-07-02 조회 3,155
12-07-01 조회 3,620
12-06-30 조회 3,638
12-06-30 조회 5,890
12-06-30 조회 3,644
12-06-29 조회 3,849
12-06-29 조회 3,493
12-06-29 조회 3,457
12-06-29 조회 3,430
12-06-29 조회 3,489
12-06-29 조회 3,830
12-06-29 조회 5,415
12-06-29 조회 5,835
12-06-29 조회 3,908
12-06-28 조회 3,975
12-06-28 조회 3,448
12-06-28 조회 4,448
12-06-27 조회 3,460
12-06-27 조회 3,468
12-06-27 조회 3,475
12-06-27 조회 3,779
12-06-27 조회 3,506
12-06-26 조회 3,942
12-06-26 조회 3,683
12-06-26 조회 3,375
12-06-26 조회 5,060
12-06-25 조회 4,016
12-06-25 조회 3,863
12-06-24 조회 3,975
12-06-23 조회 3,666
12-06-22 조회 3,400
12-06-22 조회 3,347
12-06-22 조회 4,297
12-06-22 조회 3,855
12-06-22 조회 3,531
12-06-22 조회 8,701
12-06-22 조회 3,353
12-06-21 조회 3,366
12-06-21 조회 3,360
12-06-21 조회 3,498