빅

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

· 2012-05-14 (월) 12:46:19 · 3198
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-02-26 조회 3,175
12-02-26 조회 3,492
12-02-26 조회 3,336
12-02-26 조회 3,416
12-02-26 조회 3,457
12-02-26 조회 3,310
12-02-26 조회 3,632
12-02-26 조회 3,459
12-02-26 조회 3,551
12-02-26 조회 4,034
12-02-26 조회 2,982
12-02-26 조회 5,172
12-02-25 조회 2,735
12-02-25 조회 3,211
12-02-24 조회 2,921
12-02-24 조회 3,305
12-02-24 조회 3,281
12-02-24 조회 3,597
12-02-24 조회 3,127
12-02-24 조회 3,924
12-02-24 조회 3,895
12-02-24 조회 3,500
12-02-24 조회 9,360
12-02-23 조회 2,867
12-02-23 조회 3,317
12-02-23 조회 3,216
12-02-23 조회 3,154
12-02-23 조회 3,803
12-02-23 조회 2,885
12-02-23 조회 3,364
12-02-23 조회 3,044
12-02-23 조회 2,803
12-02-22 조회 3,693
12-02-22 조회 5,460
12-02-22 조회 3,013
12-02-22 조회 4,414
12-02-22 조회 3,288
12-02-22 조회 3,112
12-02-22 조회 4,022
12-02-22 조회 3,911
12-02-22 조회 2,842
12-02-22 조회 3,880
12-02-22 조회 4,338
12-02-22 조회 3,761
12-02-22 조회 2,945
12-02-22 조회 4,595
12-02-21 조회 3,155
12-02-21 조회 2,929
12-02-21 조회 2,837
12-02-21 조회 3,749
12-02-21 조회 3,987
12-02-21 조회 3,412
12-02-21 조회 2,921
12-02-20 조회 3,163
12-02-20 조회 3,800
12-02-20 조회 3,749
12-02-20 조회 3,024
12-02-20 조회 5,813
12-02-20 조회 3,607
12-02-20 조회 6,825
12-02-20 조회 3,220
12-02-20 조회 4,196
12-02-19 조회 3,380
12-02-18 조회 3,115
12-02-18 조회 3,855
12-02-17 조회 2,989
12-02-17 조회 4,181
12-02-17 조회 3,063
12-02-17 조회 3,617
12-02-17 조회 3,393
12-02-17 조회 6,265
12-02-17 조회 4,457
12-02-17 조회 3,083
12-02-17 조회 3,109
12-02-17 조회 3,471
12-02-16 조회 3,300
12-02-16 조회 3,373
12-02-16 조회 4,732
12-02-16 조회 2,978
12-02-16 조회 5,365
12-02-16 조회 5,112
12-02-15 조회 3,663
12-02-15 조회 3,277
12-02-15 조회 4,824
12-02-15 조회 3,314
12-02-15 조회 3,710
12-02-15 조회 2,779
12-02-15 조회 4,055
12-02-14 조회 3,571
12-02-14 조회 3,678
12-02-14 조회 4,090
12-02-14 조회 3,127
12-02-14 조회 6,209
12-02-14 조회 3,155
12-02-14 조회 4,179
12-02-13 조회 3,463
12-02-13 조회 3,085
12-02-13 조회 7,227
12-02-12 조회 2,900
12-02-12 조회 5,279