빅

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

· 2012-05-14 (월) 12:46:19 · 3221
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-10-08 조회 4,783
12-10-08 조회 4,573
12-10-08 조회 9,019
12-10-08 조회 4,553
12-10-08 조회 4,437
12-10-07 조회 4,043
12-10-05 조회 5,773
12-10-05 조회 5,856
12-10-05 조회 3,924
12-10-05 조회 4,278
12-10-05 조회 7,580
12-10-04 조회 3,554
12-10-04 조회 3,986
12-10-03 조회 4,723
12-10-03 조회 4,865
12-10-03 조회 4,913
12-10-03 조회 4,546
12-10-03 조회 7,669
12-10-02 조회 3,889
12-10-02 조회 9,195
12-10-02 조회 4,510
12-10-01 조회 4,625
12-09-30 조회 4,338
12-09-29 조회 3,878
12-09-29 조회 4,599
12-09-28 조회 3,538
12-09-28 조회 5,143
12-09-28 조회 3,404
12-09-28 조회 3,305
12-09-27 조회 6,089
12-09-27 조회 3,860
12-09-27 조회 3,480
12-09-27 조회 3,217
12-09-27 조회 3,850
12-09-26 조회 5,051
12-09-26 조회 3,356
12-09-25 조회 4,567
12-09-25 조회 3,425
12-09-25 조회 3,399
12-09-25 조회 5,523
12-09-24 조회 3,724
12-09-24 조회 3,879
12-09-24 조회 3,291
12-09-24 조회 4,288
12-09-24 조회 3,302
12-09-24 조회 3,561
12-09-23 조회 3,167
12-09-23 조회 3,217
12-09-23 조회 3,244
12-09-23 조회 3,380
12-09-22 조회 4,558
12-09-21 조회 3,458
12-09-21 조회 3,602
12-09-21 조회 4,576
12-09-21 조회 3,681
12-09-20 조회 5,398
12-09-20 조회 3,152
12-09-20 조회 6,139
12-09-19 조회 3,357
12-09-18 조회 6,143
12-09-18 조회 3,604
12-09-18 조회 3,711
12-09-18 조회 3,946
12-09-18 조회 2,921
12-09-18 조회 3,018
12-09-18 조회 4,092
12-09-18 조회 4,751
12-09-18 조회 3,280
12-09-18 조회 2,944
12-09-18 조회 3,081
12-09-18 조회 3,228
12-09-18 조회 4,155
12-09-17 조회 3,540
12-09-17 조회 3,040
12-09-17 조회 2,945
12-09-17 조회 3,047
12-09-17 조회 3,300
12-09-17 조회 3,215
12-09-16 조회 3,028
12-09-16 조회 4,112
12-09-16 조회 3,145
12-09-15 조회 8,490
12-09-15 조회 3,652
12-09-14 조회 3,135
12-09-14 조회 4,446
12-09-14 조회 3,019
12-09-14 조회 3,939
12-09-14 조회 5,510
12-09-14 조회 2,970
12-09-14 조회 2,990
12-09-13 조회 3,050
12-09-13 조회 2,973
12-09-13 조회 2,839
12-09-13 조회 3,118
12-09-13 조회 2,945
12-09-13 조회 3,439
12-09-13 조회 3,556
12-09-13 조회 3,122
12-09-12 조회 2,916
12-09-12 조회 3,115