빅

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

· 2012-05-14 (월) 12:46:19 · 3150
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건
+
제목 글쓴이 날짜 조회
13-03-03 조회 6,236
13-03-01 조회 5,565
13-03-01 조회 8,306
13-03-01 조회 6,303
13-02-26 조회 3,910
13-02-26 조회 3,856
13-02-26 조회 4,755
13-02-24 조회 8,166
13-02-24 조회 4,255
13-02-24 조회 3,495
13-02-24 조회 5,311
13-02-24 조회 5,303
13-02-24 조회 4,371
13-02-24 조회 5,709
13-02-24 조회 9,396
13-02-14 조회 5,101
13-02-13 조회 9,028
13-01-29 조회 7,673
13-01-24 조회 5,022
13-01-24 조회 4,895
13-01-17 조회 4,310
13-01-16 조회 4,336
13-01-08 조회 4,388
12-12-27 조회 4,055
12-12-20 조회 1.1만
12-12-20 조회 3,375
12-12-06 조회 4,364
12-12-01 조회 4,128
12-11-28 조회 5,691
12-11-25 조회 5,398
12-10-20 조회 4,662
12-10-03 조회 4,825
12-09-26 조회 4,988
12-09-15 조회 8,436
12-09-14 조회 5,454
12-09-11 조회 3,955
12-09-10 조회 3,976
12-09-05 조회 8,854
12-08-29 조회 4,651
12-08-26 조회 3,784
12-08-23 조회 3,484
12-08-22 조회 3,567
12-08-22 조회 4,384
12-08-21 조회 3,532
12-08-20 조회 3,451
12-08-20 조회 9,251
12-08-15 조회 4,368
12-08-13 조회 3,292
12-08-11 조회 4,715
12-08-05 조회 4,554
12-08-03 조회 3,339
12-08-03 조회 4,036
12-08-02 조회 5,015
12-07-29 조회 4,125
12-07-26 조회 3,704
12-07-26 조회 3,571
12-07-22 조회 3,483
12-07-20 조회 3,320
12-07-19 조회 4,183
12-07-19 조회 3,436
12-07-16 조회 3,554
12-07-16 조회 4,476
12-07-15 조회 3,551
12-07-12 조회 7,386
12-07-12 조회 5,024
12-07-11 조회 3,073
12-07-09 조회 3,234
12-07-05 조회 3,844
12-07-04 조회 4,417
12-07-04 조회 3,824
12-07-04 조회 4,347
12-06-29 조회 3,810
12-06-27 조회 3,396
12-06-24 조회 3,874
12-06-22 조회 4,186
12-06-22 조회 8,598
12-06-22 조회 3,249
12-06-21 조회 3,281
12-06-17 조회 3,902
12-06-14 조회 4,006
12-06-14 조회 3,285
12-06-08 조회 4,436
12-06-06 조회 3,397
12-06-04 조회 4,152
12-05-26 조회 4,973
12-05-26 조회 3,926
12-05-25 조회 3,224
12-05-24 조회 3,325
12-05-22 조회 3,371
12-05-20 조회 2,998
12-05-16 조회 3,133
12-05-15 조회 3,530
12-05-10 조회 3,960
12-05-08 조회 3,484
12-05-04 조회 3,334
12-05-03 조회 4,291
12-05-02 조회 3,424
12-05-02 조회 3,196
12-05-02 조회 3,292
12-04-26 조회 3,443