빅

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

· 2012-05-14 (월) 12:46:19 · 3081
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,188건
+
제목 글쓴이 날짜 조회
12-08-29 조회 5,481
12-08-21 조회 3,462
12-08-21 조회 3,548
12-08-05 조회 3,394
12-08-04 조회 4,422
12-07-31 조회 9,308
12-07-26 조회 3,872
12-07-24 조회 3,502
12-07-20 조회 3,513
12-07-15 조회 3,334
12-07-09 조회 4,676
12-07-09 조회 3,394
12-07-09 조회 3,298
12-07-06 조회 4,122
12-07-05 조회 3,225
12-07-05 조회 3,292
12-06-30 조회 3,417
12-06-29 조회 3,212
12-06-26 조회 3,430
12-06-18 조회 3,308
12-06-18 조회 3,442
12-05-31 조회 3,606
12-05-29 조회 4,364
12-05-23 조회 3,431
12-05-22 조회 3,721
12-05-17 조회 4,487
12-05-10 조회 3,484
12-05-06 조회 3,359
12-05-04 조회 3,041
12-04-25 조회 3,533
12-04-21 조회 3,078
12-04-21 조회 4,459
12-04-20 조회 3,556
12-04-10 조회 2,969
12-04-06 조회 2,841
12-04-05 조회 3,190
12-04-05 조회 3,860
12-03-31 조회 3,015
12-03-30 조회 3,076
12-03-29 조회 2,993
12-03-28 조회 3,014
12-03-27 조회 3,324
12-03-26 조회 3,717
12-03-23 조회 2,910
12-03-20 조회 2,969
12-03-12 조회 2,904
12-03-12 조회 3,238
12-03-12 조회 3,154
12-03-12 조회 4,105
12-03-12 조회 5,708
12-03-12 조회 3,697
12-03-12 조회 5,502
12-03-12 조회 3,717
12-03-12 조회 6,119
12-03-06 조회 3,028
12-03-04 조회 4,162
12-03-02 조회 4,075
12-02-16 조회 5,142
12-02-15 조회 4,536
12-02-11 조회 2,989
12-02-08 조회 2,836
12-02-08 조회 3,851
12-02-07 조회 3,260
12-01-30 조회 2,972
12-01-29 조회 3,371
12-01-25 조회 3,368
12-01-19 조회 2,942
12-01-12 조회 3,052
11-12-30 조회 3,678
11-12-29 조회 3,083
11-12-26 조회 3,061
11-12-26 조회 2,957
11-12-17 조회 4,103
11-12-17 조회 3,306
11-12-01 조회 3,050
11-11-19 조회 4,231
11-11-14 조회 4,110
11-11-14 조회 2,737
11-11-10 조회 2,970
11-11-10 조회 3,635
11-10-27 조회 2,508
11-10-26 조회 2,594
11-10-25 조회 2,506
11-10-17 조회 3,681
11-10-10 조회 2,542
11-10-03 조회 2,601
11-09-28 조회 2,478
11-09-28 조회 3,980
11-09-26 조회 2,461
11-09-26 조회 2,574
11-09-25 조회 2,916
11-09-19 조회 6,021
11-09-09 조회 2,979
11-09-08 조회 3,312
11-08-31 조회 3,107
11-08-29 조회 5,098
11-08-25 조회 2,774
11-08-23 조회 2,458
11-08-21 조회 2,467
11-08-19 조회 2,389