빅

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

· 2012-05-14 (월) 12:46:19 · 3158
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-04-24 조회 2,626
12-04-24 조회 2,679
12-04-24 조회 3,832
12-04-24 조회 2,961
12-04-24 조회 3,322
12-04-24 조회 2,726
12-04-24 조회 3,234
12-04-24 조회 2,767
12-04-24 조회 2,735
12-04-24 조회 2,906
12-04-24 조회 4,600
12-04-23 조회 3,055
12-04-23 조회 3,861
12-04-23 조회 2,689
12-04-23 조회 2,695
12-04-23 조회 2,971
12-04-23 조회 2,608
12-04-23 조회 3,648
12-04-23 조회 2,544
12-04-23 조회 2,608
12-04-23 조회 2,970
12-04-23 조회 2,764
12-04-23 조회 2,618
12-04-23 조회 2,809
12-04-23 조회 2,822
12-04-23 조회 2,579
12-04-23 조회 4,571
12-04-23 조회 3,603
12-04-23 조회 3,470
12-04-22 조회 2,600
12-04-22 조회 2,559
12-04-22 조회 2,638
12-04-22 조회 2,857
12-04-22 조회 2,666
12-04-22 조회 3,259
12-04-22 조회 3,319
12-04-22 조회 2,908
12-04-21 조회 3,163
12-04-21 조회 4,108
12-04-21 조회 4,544
12-04-21 조회 7,890
12-04-21 조회 2,697
12-04-21 조회 3,099
12-04-21 조회 2,597
12-04-21 조회 2,837
12-04-20 조회 3,630
12-04-20 조회 3,142
12-04-20 조회 2,803
12-04-20 조회 2,880
12-04-20 조회 2,675
12-04-20 조회 2,795
12-04-20 조회 3,924
12-04-20 조회 4,128
12-04-20 조회 2,977
12-04-20 조회 3,242
12-04-20 조회 4,347
12-04-20 조회 3,293
12-04-19 조회 3,342
12-04-19 조회 2,968
12-04-18 조회 4,396
12-04-18 조회 2,881
12-04-18 조회 3,106
12-04-17 조회 3,377
12-04-17 조회 3,553
12-04-17 조회 5,135
12-04-17 조회 5,431
12-04-17 조회 2,874
12-04-17 조회 3,370
12-04-16 조회 2,846
12-04-16 조회 3,558
12-04-16 조회 3,244
12-04-16 조회 3,149
12-04-16 조회 3,534
12-04-16 조회 2,779
12-04-16 조회 4,373
12-04-15 조회 3,964
12-04-14 조회 3,655
12-04-14 조회 3,038
12-04-14 조회 3,683
12-04-14 조회 3,735
12-04-13 조회 3,356
12-04-13 조회 4,542
12-04-13 조회 3,155
12-04-13 조회 2,894
12-04-13 조회 3,106
12-04-13 조회 6,180
12-04-12 조회 4,806
12-04-12 조회 3,346
12-04-11 조회 3,559
12-04-10 조회 5,047
12-04-10 조회 4,000
12-04-10 조회 3,116
12-04-09 조회 3,169
12-04-09 조회 4,739
12-04-09 조회 3,094
12-04-08 조회 3,413
12-04-07 조회 2,737
12-04-06 조회 2,899
12-04-06 조회 3,649
12-04-06 조회 5,423