Subject: How to configure an ethernet interface which has point to point
To: None <tech-net@netbsd.org>
From: mrchit_2000 <luong.ngo@gmail.com>
List: tech-net
Date: 06/14/2007 16:54:43
Hi all,

I am having trouble with bringing up an ethernet interfaces on my system.
Here is my situation. I have a system which have 2 CPU. Each of the CPU has
a MAC interface connected directly to the other via RGMII without phys. This
makes me think this is  a point-to-point link. When configuring the
interfaces on the 2 CPU,  I use ifconfig :
     ifconfig eth2 10.10.10.10 10.10.10.22 netmask 255.255.255.0

The interfaces are setup in driver with these flags: IFF_POINTOPOINT,
IFF_NO_ARP, IFF_SIMPLEX and IFF_NOTRAILER. Here is the display when do
ifconfig eth2:

ifconfig eth2
octmac2: flags=8f1<UP,POINTOPOINT,NOTRAILERS,RUNNING,NOARP,SIMPLEX> mtu 1500
context 0x40080001
        address: 00:30:88:02:52:02
        media: Ethernet manual (none)
        inet 10.10.10.10 -> 10.10.10.22 netmask 0xffffffff


But when a packet is sent through eth2 from 10.10.10.10 to 10.10.10.22, the
kernel tries to do arp resolve for 10.10.10.22 by calling arpresolve
function in ether_output, and the arp resolve failed so the packet never
sent out. When doing arp -a, there is no arp entries, but route show showing
a route though. 

My question is how should I configure/setup the interface in this situation,
where 2 CPU connected directly to each other via ethernet. I believe this
has nothing to do with kernel, but just an issue of configuration the
interface so that the kernel knows not to do arp or to handle it specially
for a point to point link.

Can someone please help pointing out what I did wrong and need to to?

Thanks a lot in advance,

-Ln

-- 
View this message in context: http://www.nabble.com/How-to-configure-an-ethernet-interface-which-has-point-to-point-link-tf3925022.html#a11130962
Sent from the tech-net mailing list archive at Nabble.com.