빅

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

· 2012-05-14 (월) 12:46:19 · 3216
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-08-02 조회 3,911
12-08-02 조회 3,827
12-08-01 조회 4,800
12-08-01 조회 4,692
12-07-31 조회 9,591
12-07-31 조회 3,835
12-07-31 조회 3,384
12-07-31 조회 3,168
12-07-31 조회 3,457
12-07-30 조회 3,635
12-07-30 조회 3,671
12-07-30 조회 3,324
12-07-30 조회 3,789
12-07-30 조회 4,223
12-07-29 조회 3,560
12-07-29 조회 3,287
12-07-29 조회 3,631
12-07-29 조회 4,222
12-07-27 조회 3,319
12-07-26 조회 4,878
12-07-26 조회 3,789
12-07-26 조회 3,393
12-07-26 조회 3,654
12-07-26 조회 4,074
12-07-25 조회 4,176
12-07-25 조회 3,321
12-07-24 조회 4,208
12-07-24 조회 3,678
12-07-23 조회 5,154
12-07-22 조회 3,679
12-07-22 조회 3,578
12-07-21 조회 3,468
12-07-21 조회 4,230
12-07-21 조회 3,199
12-07-20 조회 4,443
12-07-20 조회 3,746
12-07-20 조회 3,489
12-07-20 조회 3,400
12-07-20 조회 1만
12-07-19 조회 3,576
12-07-19 조회 3,404
12-07-19 조회 4,781
12-07-19 조회 4,273
12-07-19 조회 3,270
12-07-19 조회 3,078
12-07-19 조회 4,020
12-07-19 조회 3,531
12-07-19 조회 3,976
12-07-19 조회 5,630
12-07-19 조회 3,557
12-07-18 조회 3,354
12-07-18 조회 5,270
12-07-18 조회 3,554
12-07-18 조회 3,671
12-07-17 조회 4,394
12-07-17 조회 4,396
12-07-17 조회 3,594
12-07-17 조회 3,283
12-07-17 조회 4,157
12-07-17 조회 3,647
12-07-16 조회 3,982
12-07-16 조회 3,646
12-07-16 조회 3,837
12-07-16 조회 3,318
12-07-16 조회 3,302
12-07-16 조회 3,205
12-07-16 조회 4,561
12-07-15 조회 3,625
12-07-15 조회 4,342
12-07-15 조회 3,569
12-07-15 조회 3,547
12-07-15 조회 3,357
12-07-15 조회 3,826
12-07-15 조회 3,714
12-07-15 조회 3,562
12-07-15 조회 3,675
12-07-15 조회 4,264
12-07-15 조회 3,845
12-07-15 조회 4,187
12-07-15 조회 7,122
12-07-15 조회 3,753
12-07-15 조회 5,248
12-07-14 조회 3,906
12-07-14 조회 4,405
12-07-14 조회 3,459
12-07-14 조회 3,306
12-07-13 조회 8,503
12-07-13 조회 3,731
12-07-13 조회 3,695
12-07-12 조회 7,456
12-07-12 조회 4,433
12-07-12 조회 5,116
12-07-12 조회 4,582
12-07-11 조회 3,863
12-07-11 조회 3,577
12-07-11 조회 3,538
12-07-11 조회 3,148
12-07-11 조회 3,595
12-07-10 조회 1만
12-07-10 조회 5,769