Ping Problem
Hi I have configured pseudo ethernet interfaces with the following requirements: 1. There is a ethernet interface fxp0 having MAC address MAC0. It also receives packets with destination MAC address MAC1 and MAC2. 2. The packets with destination MAC address MAC1 are sent to pseudo interface 1, nge0 and packets with destination MAC address MAC2 are sent to pseudo interface 2, nge1. This has been done using netgraph as follows: fxp0: <--> bpf <--> bpf <--> interface0 \\ \-->interface1 \ \>interface2 I have used ng_eiface nodes impemented by Vitaly (available at http://www.riss-telecom.ru/~vitaly/) for interface1/2. I have set fxp0 in promiscuous mode. Could you suggest why I am unable to ping the pseudo ethernet interface IP addresses from any of the LAN machines? Is it because fxp0 is capable of sending packets only with its own MAC address and not MAC addresses of nge0 and nge1? My ifconfig settings and routing table entries are given below. pcs130# ifconfig -a fxp0: flags=8843 mtu 1500 inet 10.0.36.130 netmask 0xf000 broadcast 10.0.47.255 inet6 fe80::2d0:b7ff:febd:711%fxp0 prefixlen 64 scopeid 0x1 ether 00:d0:b7:bd:07:11 media: autoselect (100baseTX ) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UT P 10baseT/UTP lp0: flags=8810 mtu 1500 sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 mtu 1280 faith0: flags=8000 mtu 1500 nge0: flags=8843 mtu 1500 inet 10.0.137.157 netmask 0x broadcast 10.0.137.157 inet6 fe80::211:22ff:fe33:4455%nge0 prefixlen 64 scopeid 0xb ether 00:11:22:33:44:55 nge1: flags=8843 mtu 1500 inet 10.0.198.158 netmask 0x broadcast 10.0.198.158 inet6 fe80::2d0:b7ff:febd:711%nge1 prefixlen 64 scopeid 0xc ether 11:22:33:44:55:66 pcs130# netstat -rn Routing tables Internet: DestinationGatewayFlags Netif Expire default10.0.32.1 UGSc00 fxp0 10.0.32/20 link#1 UC 00 fxp0 => 10.0.32.1 link#1 UHLW10 fxp0 => 10.0.36.1300:d0:b7:bd:7:11UHLW0 40 lo0 10.0.137.157/32link#11UC 00 nge0 => 10.0.198.158/32link#12UC 00 nge1 => 127.0.0.1 127.0.0.1 UH 04 lo0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64link#1UC fxp0 fe80::%lo0/64 fe80::1%lo0 Uc lo0 fe80::%nge0/64link#11 UC nge0 fe80::%nge1/64link#12 UC nge1 ff01::/32 ::1 U lo0 ff02::%fxp0/32link#1UC fxp0 ff02::%lo0/32 fe80::1%lo0 UC lo0 ff02::%nge0/32link#11 UC nge0 ff02::%nge1/32link#12 UC nge1 Thanks Satya To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message
Re: Ping Problem
>I have used ng_eiface nodes impemented by Vitaly >(available at http://www.riss-telecom.ru/~vitaly/) for interface1/2. I >have set fxp0 in promiscuous mode. Have you tried 'setautosrc 0' on the fxp0: node? DocWilco To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message
Re: Ping Problem
Satyajeet Seth wrote: > > Hi > > I have configured pseudo ethernet interfaces with the following > requirements: > 1. There is a ethernet interface fxp0 having MAC address MAC0. It also > receives packets with destination MAC address MAC1 and MAC2. > 2. The packets with destination MAC address MAC1 are sent to pseudo > interface 1, nge0 and packets with destination MAC address MAC2 are sent > to pseudo interface 2, nge1. > > This has been done using netgraph as follows: > fxp0: <--> bpf <--> bpf <--> interface0 > \\ > \-->interface1 > \ >\>interface2 > > I have used ng_eiface nodes impemented by Vitaly > (available at http://www.riss-telecom.ru/~vitaly/) for interface1/2. I What revision of FreeBSD? eiface is now in -current. (but not built by default) > have set fxp0 in promiscuous mode. > > Could you suggest why I am unable to ping the pseudo ethernet interface > IP addresses from any of the LAN machines? > > Is it because fxp0 is capable of sending packets only with its own MAC address and >not MAC > addresses of nge0 and nge1? It's not impossible, but then bridging should fail to work too I would think. hmm maybe not.. Does another machine see any packets on the wire at all? If you insert a 'tee' between the bpf and the fxp do you see outgoing packets? > > My ifconfig settings and routing table entries are given below. > > pcs130# ifconfig -a > fxp0: flags=8843 mtu 1500 > inet 10.0.36.130 netmask 0xf000 broadcast 10.0.47.255 > inet6 fe80::2d0:b7ff:febd:711%fxp0 prefixlen 64 scopeid 0x1 > ether 00:d0:b7:bd:07:11 > media: autoselect (100baseTX ) status: active > supported media: autoselect 100baseTX 100baseTX 10baseT/UT > P 10baseT/UTP > lp0: flags=8810 mtu 1500 > sl0: flags=c010 mtu 552 > ppp0: flags=8010 mtu 1500 > lo0: flags=8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff00 > gif0: flags=8010 mtu 1280 > gif1: flags=8010 mtu 1280 > gif2: flags=8010 mtu 1280 > gif3: flags=8010 mtu 1280 > faith0: flags=8000 mtu 1500 > nge0: flags=8843 mtu 1500 > inet 10.0.137.157 netmask 0x broadcast 10.0.137.157 > inet6 fe80::211:22ff:fe33:4455%nge0 prefixlen 64 scopeid 0xb > ether 00:11:22:33:44:55 > nge1: flags=8843 mtu 1500 > inet 10.0.198.158 netmask 0x broadcast 10.0.198.158 > inet6 fe80::2d0:b7ff:febd:711%nge1 prefixlen 64 scopeid 0xc > ether 11:22:33:44:55:66 > pcs130# netstat -rn > Routing tables > Internet: > DestinationGatewayFlags Netif Expire > default10.0.32.1 UGSc00 fxp0 > 10.0.32/20 link#1 UC 00 fxp0 => > 10.0.32.1 link#1 UHLW10 fxp0 => > 10.0.36.1300:d0:b7:bd:7:11UHLW0 40 lo0 > 10.0.137.157/32link#11UC 00 nge0 => > 10.0.198.158/32link#12UC 00 nge1 => > 127.0.0.1 127.0.0.1 UH 04 lo0 > Internet6: > Destination Gateway Flags Netif > Expire > ::1 ::1 UH lo0 > fe80::%fxp0/64link#1UC fxp0 > fe80::%lo0/64 fe80::1%lo0 Uc lo0 > fe80::%nge0/64link#11 UC nge0 > fe80::%nge1/64link#12 UC nge1 > ff01::/32 ::1 U lo0 > ff02::%fxp0/32link#1UC fxp0 > ff02::%lo0/32 fe80::1%lo0 UC lo0 > ff02::%nge0/32link#11 UC nge0 > ff02::%nge1/32link#12 UC nge1 > > Thanks > Satya > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ [EMAIL PROTECTED] ( OZ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message
Re: Ping Problem
Hi Please see my comments below. > > I have configured pseudo ethernet interfaces with the following > > requirements: > > 1. There is a ethernet interface fxp0 having MAC address MAC0. It also > > receives packets with destination MAC address MAC1 and MAC2. > > 2. The packets with destination MAC address MAC1 are sent to pseudo > > interface 1, nge0 and packets with destination MAC address MAC2 are sent > > to pseudo interface 2, nge1. > > > > This has been done using netgraph as follows: > > fxp0: <--> bpf <--> bpf <--> interface0 > > \\ > > \-->interface1 > > \ > >\>interface2 > > > > I have used ng_eiface nodes impemented by Vitaly > > (available at http://www.riss-telecom.ru/~vitaly/) for interface1/2. I > > What revision of FreeBSD? eiface is now in -current. (but not built by default) > > have set fxp0 in promiscuous mode. > > > > Could you suggest why I am unable to ping the pseudo ethernet interface > > IP addresses from any of the LAN machines? > > > > Is it because fxp0 is capable of sending packets only with its own MAC address and >not MAC > > addresses of nge0 and nge1? > > It's not impossible, but then bridging should fail to work too I would > think. hmm maybe not.. Does another machine see any packets on the wire > at all? If you insert a 'tee' between the bpf and the fxp do you see > outgoing packets? I am using FreeBSD 4.1. I followed Roger's suggestion about "autosrc 0" message. But "autosrc" message is not available in ng_ether. I have tried commenting bcopy((IFP2AC(priv->ifp))->ac_enaddr, eh->ether_shost, 6); in ng_ether_rcv_lower in ng_ether.c with the effect that fxp0 is able to send packets with pseudo ethernet interface MAC address. I have tried the following setup for pinging from nge0 to some machine on LAN. on pcs130 (Machine with pseudo ethernet interfaces, see output of "ifconfig -a" below) == 1. #route change -host 10.0.36.134 -ifp nge0 Now arp starts to print messages like: arp: 'IP addr' is on fxp0 but got response from 'MAC address' on nge0. 2. #ping 10.0.36.134 This does not work. on pcs134(some machine on lan) == Using tee's I found that 10.0.36.134 receives ethernet frames with src MAC address of nge0 and dest MAC address of 10.0.36.134. pcs134 response frames are sent to MAC address of default router 10.0.32.1. But pcs130 does not receive these frames. Thanks Satya > > My ifconfig settings and routing table entries are given below. > > > > pcs130# ifconfig -a > > fxp0: flags=8843 mtu 1500 > > inet 10.0.36.130 netmask 0xf000 broadcast 10.0.47.255 > > inet6 fe80::2d0:b7ff:febd:711%fxp0 prefixlen 64 scopeid 0x1 > > ether 00:d0:b7:bd:07:11 > > media: autoselect (100baseTX ) status: active > > supported media: autoselect 100baseTX 100baseTX 10baseT/UT > > P 10baseT/UTP > > lp0: flags=8810 mtu 1500 > > sl0: flags=c010 mtu 552 > > ppp0: flags=8010 mtu 1500 > > lo0: flags=8049 mtu 16384 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > > inet6 ::1 prefixlen 128 > > inet 127.0.0.1 netmask 0xff00 > > gif0: flags=8010 mtu 1280 > > gif1: flags=8010 mtu 1280 > > gif2: flags=8010 mtu 1280 > > gif3: flags=8010 mtu 1280 > > faith0: flags=8000 mtu 1500 > > nge0: flags=8843 mtu 1500 > > inet 10.0.137.157 netmask 0x broadcast 10.0.137.157 > > inet6 fe80::211:22ff:fe33:4455%nge0 prefixlen 64 scopeid 0xb > > ether 00:11:22:33:44:55 > > nge1: flags=8843 mtu 1500 > > inet 10.0.198.158 netmask 0x broadcast 10.0.198.158 > > inet6 fe80::2d0:b7ff:febd:711%nge1 prefixlen 64 scopeid 0xc > > ether 11:22:33:44:55:66 > > pcs130# netstat -rn > > Routing tables > > Internet: > > DestinationGatewayFlags Netif Expire > > default10.0.32.1 UGSc00 fxp0 > > 10.0.32/20 link#1 UC 00 fxp0 => > > 10.0.32.1 link#1 UHLW10 fxp0 => > > 10.0.36.1300:d0:b7:bd:7:11UHLW0 40 lo0 > > 10.0.137.157/32link#11UC 00 nge0 => > > 10.0.198.158/32link#12UC 00 nge1 => > > 127.0.0.1 127.0.0.1 UH 04 lo0 > > Internet6: > > Destination Gateway Flags Netif > > Expire > > ::1 ::1 UH lo0 > > fe80::%fxp0/64link#1UC fxp0 > > fe80::%lo0/64 fe80::1%lo0 Uc lo0 > > fe80::%nge0/64link#11 UC nge0 > > fe80::%nge1/64link#12 UC nge1 > > ff01::/32
Intel 82562 chip breaks fxp driver?
I have just built up a 4.2-RELEASE system with an brand new Intel D815EEA motherboard that has onboard ethernet using the 82562 chipset. The card stops every few minutes with a /kernel: fxp0: SCB timeout error message. I have found reference to others experiencing the same problem with the 82562 chipset on FreeBSD, linux, and OpenBSD mail lists with no solutions going back as far as December. Has anyone found a workaround to this problem? - Ernie. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message