빅

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

· 2012-05-14 (월) 12:46:19 · 3131
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-05-26 조회 4,035
12-05-26 조회 3,355
12-05-26 조회 4,955
12-05-26 조회 3,900
12-05-26 조회 3,423
12-05-25 조회 3,587
12-05-25 조회 3,191
12-05-25 조회 3,107
12-05-25 조회 3,190
12-05-25 조회 3,304
12-05-25 조회 3,134
12-05-25 조회 3,213
12-05-25 조회 3,121
12-05-25 조회 3,955
12-05-25 조회 3,336
12-05-24 조회 2,955
12-05-24 조회 2,924
12-05-24 조회 3,290
12-05-24 조회 3,253
12-05-24 조회 4,594
12-05-24 조회 3,939
12-05-23 조회 3,235
12-05-23 조회 3,959
12-05-23 조회 3,220
12-05-23 조회 4,358
12-05-23 조회 3,518
12-05-22 조회 6,586
12-05-22 조회 3,821
12-05-22 조회 3,332
12-05-22 조회 3,112
12-05-21 조회 2,891
12-05-21 조회 3,867
12-05-21 조회 3,531
12-05-21 조회 5,068
12-05-20 조회 2,968
12-05-19 조회 3,365
12-05-19 조회 2,930
12-05-18 조회 2,989
12-05-18 조회 3,001
12-05-18 조회 3,548
12-05-18 조회 3,159
12-05-18 조회 3,389
12-05-18 조회 4,976
12-05-17 조회 4,032
12-05-17 조회 4,018
12-05-17 조회 3,935
12-05-17 조회 4,715
12-05-16 조회 3,196
12-05-16 조회 3,165
12-05-16 조회 4,432
12-05-16 조회 2,961
12-05-16 조회 2,958
12-05-16 조회 3,350
12-05-16 조회 3,116
12-05-16 조회 3,003
12-05-16 조회 3,110
12-05-16 조회 3,323
12-05-15 조회 3,504
12-05-15 조회 3,165
12-05-15 조회 4,046
12-05-15 조회 3,174
12-05-15 조회 2,850
12-05-15 조회 3,097
12-05-15 조회 3,540
12-05-15 조회 3,273
12-05-15 조회 2,644
12-05-15 조회 3,246
12-05-15 조회 3,674
12-05-14 조회 2,686
12-05-14 조회 2,852
12-05-14 조회 2,827
12-05-14 조회 3,132
12-05-14 조회 2,935
12-05-14 조회 3,114
12-05-13 조회 3,388
12-05-12 조회 3,563
12-05-11 조회 2,864
12-05-11 조회 3,223
12-05-11 조회 7,058
12-05-11 조회 3,244
12-05-11 조회 2,769
12-05-11 조회 2,676
12-05-11 조회 2,780
12-05-11 조회 3,353
12-05-11 조회 2,533
12-05-10 조회 3,936
12-05-10 조회 3,944
12-05-10 조회 2,789
12-05-10 조회 2,723
12-05-10 조회 2,857
12-05-10 조회 4,464
12-05-10 조회 2,503
12-05-10 조회 2,595
12-05-10 조회 2,461
12-05-10 조회 2,711
12-05-10 조회 3,165
12-05-10 조회 3,435
12-05-10 조회 2,681
12-05-10 조회 2,803
12-05-10 조회 3,289