>> Read No. 2453 article  
arp의 에러메세지 #FreeBSD

등록 2002-05-05 02:55:00     조회 4
이름 바다사랑    

		<pre>
<b>System: arp: [ip] is on [if 0] but got reply from [mac] on [if 1]</b>
 <u>Introduction</u>
You have a machine with two NIC's both hooked up to the same switch but both have a
different subnet assigned. Everything works fine but you get allot of these messages:
   <i>arp: 192.168.1.69 is on rl0 but got reply from a8:0d:62:1c:42:03 on rl1</i>
 A switch works on a low level: it only knows MAC addresses. When it receives a broadcast
message it will send that message to all of its ports (like it is supposed to do). Your
machine maneges an arp table (try 'arp -a'). This table makes sure that your machine
knows on which MAC address which ipaddress is so it can do an Internet-to-Ethernet
translation. When the broadcast reaches your machine it will be received on both your
NIC's. Arp notices that it gets a package from a MAC address of which it thought was on
interface 0 on interface 1 and reports this problem. I think you might agree with me that
this is a good thing. But everything works fine and there are situations where such a
setup is desired and this problem generates allot of messages. These messages are going
to hide some of the important other messages because of the amount of them so you realy
want to get rid of them.
 <u>Solution</u>
There are four solutions to this problem: ignore the error, strip the error message from
the source, rewire or set the kernel state. The first option realy isn't a good one for
the above reason. I've read somewhere that this error reporting is just 4 lines of code
in some c file (forgot which one) and you can remove those lines without problems from
the source. I'm not so fond of this sollution. If you connect one NIC with subnet A to a
switch with only subnet A attached to it and the other NIC with subnet B to a switch with
only subnet B attached to it your problem will be solved. So now I have mentioned all the
solutions of which you imediatly had to sigh and here is IMHO the propper one:
 There is a kernel state for this:
 root@host:/# sysctl -a | grep -i arp
net.link.ether.inet.log_arp_wrong_iface: 1
 You can change this one for as long as your machine runs (when you reboot your change
will be lost) with the following command:
 root@host:/# <b>sysctl -w net.link.ether.inet.log_arp_wrong_iface=0</b>
 Just test your machine for a while and if this solves the problem then you can set this
options permanently: Create the file '/etc/sysctl.conf' if it doesn't exists (it isn't
there by default) and put the following line in it:
 <b>net.link.ether.inet.log_arp_wrong_iface=0</b>
 Reboot to check if it works (not necesary but a good test)
 출처
http://freebsdhowtos.com/102.html  --
우어어,, 영어다,,T^T
</pre>
이름
암호
  목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.42 초 ] 작업시간: [ 0.03 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791029266
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.