빅

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

· 2012-05-14 (월) 12:46:19 · 3182
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건
+
제목 글쓴이 날짜 조회
16-07-13 조회 2,181
16-07-12 조회 2,368
16-07-12 조회 2,397
16-07-11 조회 2,209
16-06-05 조회 2,931
16-06-03 조회 3,070
16-05-26 조회 2,996
15-09-22 조회 5,002
15-06-10 조회 4,851
14-10-25 조회 6,383
14-10-22 조회 9,002
14-09-21 조회 5,806
14-09-16 조회 5,093
14-08-22 조회 1.1만
14-08-13 조회 5,941
14-08-12 조회 5,453
14-08-12 조회 6,321
14-08-11 조회 6,958
14-06-12 조회 6,232
14-06-11 조회 5,129
14-05-09 조회 5,460
14-05-09 조회 6,421
14-05-09 조회 6,441
14-05-08 조회 5,787
14-04-17 조회 4,798
14-04-16 조회 4,610
14-04-15 조회 4,606
14-04-15 조회 4,548
14-04-15 조회 4,325
14-04-14 조회 4,318
14-04-14 조회 4,289
14-04-14 조회 4,653
14-04-14 조회 4,801
14-04-14 조회 4,792
14-04-13 조회 4,704
14-04-12 조회 4,259
14-04-12 조회 4,398
14-04-12 조회 4,503
14-04-11 조회 5,021
14-04-10 조회 4,769
14-04-10 조회 4,799
14-04-09 조회 4,955
14-04-09 조회 5,332
14-04-08 조회 7,019
13-10-30 조회 7,673
13-07-11 조회 5,155
13-03-28 조회 1.1만
13-02-27 조회 6,801
13-02-14 조회 5,654
13-01-10 조회 4,537
12-12-31 조회 5,123
12-12-20 조회 6,132
12-12-12 조회 5,292
12-12-07 조회 4,536
12-11-28 조회 4,892
12-11-22 조회 5,325
12-11-12 조회 5,684
12-09-22 조회 4,533
12-09-18 조회 4,721