2026, 새로운 도약을 시작합니다.

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

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)
|

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

프로그램

번호 제목 글쓴이 날짜 조회
8230 9년 전 조회 19
8229 9년 전 조회 25
8228 9년 전 조회 62
8227 9년 전 조회 72
8226 9년 전 조회 115
8225 9년 전 조회 100
8224 9년 전 조회 92
8223 9년 전 조회 54
8222 9년 전 조회 126
8221 9년 전 조회 38
8220 9년 전 조회 35
8219 9년 전 조회 38
8218 9년 전 조회 73
8217 9년 전 조회 51
8216 9년 전 조회 101
8215 9년 전 조회 56
8214 9년 전 조회 175
8213 9년 전 조회 116
8212 9년 전 조회 22
8211 9년 전 조회 191
8210 9년 전 조회 181
8209 9년 전 조회 281
8208 9년 전 조회 154
8207 9년 전 조회 171
8206 9년 전 조회 127
8205 9년 전 조회 119
8204 9년 전 조회 75
8203 9년 전 조회 168
8202 9년 전 조회 97
8201 9년 전 조회 137
8200 9년 전 조회 94
8199 9년 전 조회 149
8198 9년 전 조회 123
8197 9년 전 조회 102
8196 9년 전 조회 480
8195 9년 전 조회 103
8194 9년 전 조회 238
8193 9년 전 조회 108
8192 9년 전 조회 134
8191 9년 전 조회 87
8190 9년 전 조회 83
8189 9년 전 조회 140
8188 9년 전 조회 70
8187 9년 전 조회 91
8186 9년 전 조회 101
8185 9년 전 조회 260
8184 9년 전 조회 57
8183 9년 전 조회 286
8182 9년 전 조회 116
8181 9년 전 조회 82
8180 9년 전 조회 647
8179 9년 전 조회 443
8178 9년 전 조회 248
8177 9년 전 조회 253
8176 9년 전 조회 298
8175 9년 전 조회 172
8174 9년 전 조회 178
8173 9년 전 조회 295
8172 9년 전 조회 138
8171 9년 전 조회 137
8170 9년 전 조회 245
8169 9년 전 조회 214
8168 9년 전 조회 263
8167 9년 전 조회 274
8166 9년 전 조회 188
8165 9년 전 조회 128
8164 9년 전 조회 247
8163 9년 전 조회 235
8162 9년 전 조회 244
8161 9년 전 조회 233
8160 9년 전 조회 436
8159 9년 전 조회 340
8158 9년 전 조회 162
8157 9년 전 조회 307
8156 9년 전 조회 219
8155 9년 전 조회 201
8154 9년 전 조회 541
8153 9년 전 조회 174
8152 9년 전 조회 346
8151 9년 전 조회 356
8150 9년 전 조회 445
8149 9년 전 조회 283
8148 9년 전 조회 112
8147 9년 전 조회 332
8146 9년 전 조회 386
8145 9년 전 조회 305
8144 9년 전 조회 272
8143 9년 전 조회 125
8142 9년 전 조회 377
8141 9년 전 조회 326
8140 9년 전 조회 869
8139 9년 전 조회 192
8138 9년 전 조회 339
8137 9년 전 조회 316
8136 9년 전 조회 683
8135 9년 전 조회 721
8134 9년 전 조회 437
8133 9년 전 조회 386
8132 9년 전 조회 400
8131 9년 전 조회 753
🐛 버그신고