Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 11:58:15 +0100
From:      Marco Molteni <molter@tin.it>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        freebsd-net@freebsd.org, wpaul@freebsd.org
Subject:   Re: troubles with ng_fec on -current
Message-ID:  <20051108115815.6990ec9e.molter@tin.it>
In-Reply-To: <20051104215539.GI63539@ip.net.ua>
References:  <20051102193617.1013be88.molter@tin.it> <20051103145144.GM63539@ip.net.ua> <20051104210511.569754bc.molter@tin.it> <20051104215539.GI63539@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 Nov 2005 23:55:39 +0200
Ruslan Ermilov <ru@freebsd.org> wrote:

[..]

> I know.  Please try what's in CVS now (I made three revisions
> to ng_fec.c).  I wonder, are you assigning an IP address to
> fec0 or doing "ifconfig fec0 up" before confuguring the
> bundle (adding ports)?

I tried with the latest ng_fec.c in CVS.

Now the ste0,ste1,ste2,ste3 and ng_fec interfaces have the same MAC
address (previously they were zeroed):

ste0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:05:5d:64:a7:de
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
ste1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:05:5d:64:a7:de
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
ste2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:05:5d:64:a7:de
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
ste3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:05:5d:64:a7:de
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fec0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 1.1.1.4 netmask 0xffffff00 broadcast 1.1.1.255
        inet6 fe80::205:5dff:fe64:a7de%fec0 prefixlen 64 scopeid 0x8 
        ether 00:05:5d:64:a7:de
        media: Ethernet none
        status: active

Ping still doesn't work as follows:

4 nodes: box1 (1.1.1.1), box2(1.1.1.2), box3(1.1.1.3), box4(1.1.1.4).
box4 has the ng_fec.

ping from box1,box2,box3 to box4 goes thru as expected.

ping from box3 to box4 doesn't get any reply. If I put interface
ste2 on box4 in promiscuos mode, then box3 gets a reply as expected.

Same on the other way: ping from 1.1.1.4 to 1.1.1.3 is replied
at 1.1.1.3 but isn't picked up by ste2 at 1.1.1.4. If ste2 is
put in promisc mode then the reply is picked up by ste2.

The script I use to config ng_fec is:

    ngctl mkpeer fec dummy fec
    ngctl msg fec0: add_iface '"ste0"'
    ngctl msg fec0: add_iface '"ste1"'
    ngctl msg fec0: add_iface '"ste2"'
    ngctl msg fec0: add_iface '"ste3"'
    ngctl msg fec0: set_mode_mac
    ifconfig fec0 inet 1.1.1.4/24

I also tried fiddling with ifconfig ng_fec down/up but nothing changes.


marco



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051108115815.6990ec9e.molter>