ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument

2009-03-03 Thread Faizan ul haq Muhammad

Hi all,I am trying to use Dummynet on a modified FreeBSD 7 
kernel. I haveloaded Dummynet in to the kernel
when I add pipes, but pipe config returns thefollowing error:# 
ipfw pipe 1 config delay 100msipfw: 
setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument
_
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument

2009-03-03 Thread Faizan ul haq Muhammad




 


 From: faiz...@hotmail.com
 To: freebsd-questions@freebsd.org
 Date: Tue, 3 Mar 2009 16:48:54 +
 Subject: ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument
 
 
 Hi all,I am trying to use Dummynet on a modified FreeBSD 7 
 kernel. I haveloaded Dummynet in to the kernel
 when I add pipes, but pipe config returns thefollowing error:# 
 ipfw pipe 1 config delay 100msipfw: 
 setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument
 _
 Express your personality in color! Preview and select themes for Hotmail®. 
 http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
It worked when i deleted and rewrote the dummynet option in KERNEL and rebuild 
it...

 

/Regards

_
Windows Live™ Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad



 


 Date: Mon, 2 Mar 2009 15:28:10 +0700
 From: o...@cs.ait.ac.th
 To: faiz...@hotmail.com
 CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
 fb...@a1poweruser.com
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Hi,
 
  I connected two linux PCs with these two interfaces (sk0 and sk1)
  and tried to ping between them but didnt get any
  success.configuration seems to be ok, but still no traffice is being
  passed. Can any one give any sugestion ?
 
 Stupid question

Yess it is

, but if you connect the 2 Linux boxes directly
 (without the FreeBSD bridge in between) can they ping eachother?

Yes they can
 
 Are you using properly crossed cables?

Isnt it enough check for the  that two linux can ping each other..
 
 On the FreeBSD box, you can tcpdump(8) and see the packets moving:
 tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request
 and ping echo packets.
 

it says arp: who has 192.168.0.4 tell 192.168.0.5
 Olivier


_
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad




 


 Date: Mon, 2 Mar 2009 16:35:33 +0700
 From: o...@cs.ait.ac.th
 To: faiz...@hotmail.com
 CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
 fb...@a1poweruser.com
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Hi,
 
   Are you using properly crossed cables?
  Isnt it enough check for the that two linux can ping each other..
 
 Yes and no. You must used crossed Ethernet cable between your FreeBSD
 bridge and each of your Linux boxes.
Frankly i am not sure about the cables type but they works PC to PC 
connectivity. 
 As someone suggested, what is ifconfig saying on the FreeBSD box? You
 should see that both sk0 and sk1 have a status: active. Else it means
 you have a cable problem.

sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:69:25
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 

 

sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:67:ee
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 

here is the ifconfig output for the bridge interface:

bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 0a:54:d7:7e:aa:66

inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255

id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15

maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200

root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0



 
 An example of ifconfig for a bridge (FreeBSD 4.xx):
 
 fxp0: flags=89c3UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST mtu 
 1500
 ether 00:07:e9:xx:xx:xx
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 fxp1: flags=89c3UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST mtu 
 1500
 ether 00:07:e9:yy:yy:yy
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 
 Once you make sure that both interfaces on your FreeBSD box are up and
 running, you can procced to the next step:
 
   On the FreeBSD box=2C you can tcpdump(8) and see the packets moving:
   tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request
   and ping echo packets.
  it says arp: who has 192.168.0.4 tell 192.168.0.5
 
 You'd need to give more information about your connection; something
 like:
 
 Linux 192.168.0.4 --- sk0 FreeBSD sk1 --- Linux 192.168.0.5
 
 And you should also specify if ou where tcpdump'ing on interface sk0
 or sk1. Once your bridge is working, you will get the same thing for
 tcpdump on both interfaces.
ok here is the detail:

 

 Linux 192.168.0.5 --- sk0 FreeBSD sk1 --- Linux 192.168.0.4

ping from 192.168.0.5 to 192.168.0.4

tcpdump (on freeBSD) tcpdump -i sk0  RESULT arp: who has 192.168.0.4 tell 
192.168.0.5


ping from 192.168.0.4 to 192.168.0.5

tcpdump (on freeBSD) tcpdump -i sk1  RESULT arp: who has 192.168.0.5 tell 
192.168.0.4

tcpdump -i bridge0 gives nothing...
 Olivier


_
Windows Live™ Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad





 Date: Mon, 2 Mar 2009 07:48:40 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Faizan ul haq Muhammad wrote:
 
 
   
 
 

  Date: Mon, 2 Mar 2009 16:35:33 +0700
  From: o...@cs.ait.ac.th
  To: faiz...@hotmail.com
  CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
  fb...@a1poweruser.com
  Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
  Hi,
 
  
  Are you using properly crossed cables?
  
  Isnt it enough check for the that two linux can ping each other..

  Yes and no. You must used crossed Ethernet cable between your FreeBSD
  bridge and each of your Linux boxes.
  
  Frankly i am not sure about the cables type but they works PC to PC 
  connectivity. 

  As someone suggested, what is ifconfig saying on the FreeBSD box? You
  should see that both sk0 and sk1 have a status: active. Else it means
  you have a cable problem.
  
 
  sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 
  mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
   ether 00:0a:5e:1a:69:25
   media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
   status: active
 
   
 
   
 
  sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 
  mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
   ether 00:0a:5e:1a:67:ee
   media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
   status: active
 
   
 
  here is the ifconfig output for the bridge interface:
 
  bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 
  1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
   ether 0a:54:d7:7e:aa:66
 
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 
  id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
 
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0

 I think ifconfig bridge0 should list member interfaces.  Did you add them?

ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up

this configuration exists in rc.conf


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad





 Date: Mon, 2 Mar 2009 08:05:09 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Faizan ul haq Muhammad wrote:
 
 
 
 
   Date: Mon, 2 Mar 2009 07:48:40 -0600
   From: amvandem...@gmail.com
   CC: freebsd-questions@freebsd.org
   Subject: Re: Bridging-(How to test and verify that bridging is enabled)
  
   Faizan ul haq Muhammad wrote:
   
   
   
   
   
   
Date: Mon, 2 Mar 2009 16:35:33 +0700
From: o...@cs.ait.ac.th
To: faiz...@hotmail.com
CC: fbsd.questi...@rachie.is-a-geek.net; 
  freebsd-questions@freebsd.org; fb...@a1poweruser.com
Subject: Re: Bridging-(How to test and verify that bridging is 
  enabled)
   
Hi,
   
   
Are you using properly crossed cables?
   
Isnt it enough check for the that two linux can ping each other..
   
Yes and no. You must used crossed Ethernet cable between your FreeBSD
bridge and each of your Linux boxes.
   
Frankly i am not sure about the cables type but they works PC to 
  PC connectivity.
   
As someone suggested, what is ifconfig saying on the FreeBSD box? You
should see that both sk0 and sk1 have a status: active. Else it means
you have a cable problem.
   
   
sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:69:25
media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
  flag2)
status: active
   
   
   
   
   
sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:67:ee
media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
  flag2)
status: active
   
   
   
here is the ifconfig output for the bridge interface:
   
bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 
  0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 0a:54:d7:7e:aa:66
   
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   
id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
   
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   
   I think ifconfig bridge0 should list member interfaces. Did you add 
  them?
 
  ifconfig bridge0 addm sk0 addm sk1 up
  ifconfig sk0 up
  ifconfig sk1 up
 
  this configuration exists in rc.conf
 

 if ifconfig doesn't print out something like this:
 
 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 
 1500
 ether 4a:be:26:65:75:06
 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20
 
 Then you need to add the member interfaces.

i noted that, following information is missing
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20

Now i need to know how to add the interfaces..?
Any command do u knw and can help me..?

Regards!!!


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad







 Date: Mon, 2 Mar 2009 08:28:01 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Faizan ul haq Muhammad wrote:
 
 
 
 
   Date: Mon, 2 Mar 2009 08:05:09 -0600
   From: amvandem...@gmail.com
   CC: freebsd-questions@freebsd.org
   Subject: Re: Bridging-(How to test and verify that bridging is enabled)
  
   Faizan ul haq Muhammad wrote:
   
   
   
   
 Date: Mon, 2 Mar 2009 07:48:40 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is 
  enabled)

 Faizan ul haq Muhammad wrote:
 
 
 
 
 
 
  Date: Mon, 2 Mar 2009 16:35:33 +0700
  From: o...@cs.ait.ac.th
  To: faiz...@hotmail.com
  CC: fbsd.questi...@rachie.is-a-geek.net;
freebsd-questions@freebsd.org; fb...@a1poweruser.com
  Subject: Re: Bridging-(How to test and verify that bridging is
enabled)
 
  Hi,
 
 
  Are you using properly crossed cables?
 
  Isnt it enough check for the that two linux can ping each 
  other..
 
  Yes and no. You must used crossed Ethernet cable between your 
  FreeBSD
  bridge and each of your Linux boxes.
 
  Frankly i am not sure about the cables type but they works PC to
PC connectivity.
 
  As someone suggested, what is ifconfig saying on the FreeBSD 
  box? You
  should see that both sk0 and sk1 have a status: active. Else 
  it means
  you have a cable problem.
 
 
  sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
metric 0 mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:69:25
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
  flag1,
flag2)
  status: active
 
 
 
 
 
  sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
metric 0 mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:67:ee
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
  flag1,
flag2)
  status: active
 
 
 
  here is the ifconfig output for the bridge interface:
 
  bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST 
  metric
0 mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 0a:54:d7:7e:aa:66
 
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 
  id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
 
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 
 I think ifconfig bridge0 should list member interfaces. Did you add
them?
   
ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up
   
this configuration exists in rc.conf
   
   
   if ifconfig doesn't print out something like this:
  
   bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 
  mtu
   1500
   ether 4a:be:26:65:75:06
   id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
   maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 1 priority 128 path cost 200
   member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 2 priority 128 path cost 20
  
   Then you need to add the member interfaces.
 
  i noted that, following information is missing
   member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 1 priority 128 path cost 200
   member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 2 priority 128 path cost 20
 
  Now i need to know how to add the interfaces..?
  Any command do u knw and can help me..?
 
  Regards!!!
 
  http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009
 ifconfig bridge0 addm sk0 addm sk1 up
 ifconfig sk0 up
 ifconfig sk1 up

Thanks a lot dear..
it worked. but i m still confused that i have the alternative configuration in 
rc.conf as per guideline here on this page:
http://www.freebsd.org/doc/en/books/handbook/network-bridging.html
it should have worked, but it did not. and here with these commands, it is 
working.. I am able to get reply to ping

Thanks a lot
/Faizan
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
Windows Live™ Contacts: Organize your contact list. 
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009___
freebsd

Bridging-(How to test and verify that bridging is enabled)

2009-03-01 Thread Faizan ul haq Muhammad

Hi, 

I am not sure but as per some internet guide, I have configured the bridge on 
Freebsd(7) Machine with two LAN cards on it

 

I have compiled my KERNEL with (device if_bridge) 

 

and then added code to rc.conf

 
cloned_interfaces=bridge0
ifconfig_bridge0=addm sk0 addm sk1 up
ifconfig_sk0=up
ifconfig_sk1=up  I connected two linux PCs with these two interfaces (sk0 and 
sk1) and tried to ping between them but didnt get any success.configuration 
seems to be ok, but still no traffice is being passed. Can any one give any 
sugestion ?  Regards!

 

 

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-27 Thread Faizan ul haq Muhammad





 Date: Thu, 26 Feb 2009 14:19:14 -0500
 From: st...@ibctech.ca
 To: faiz...@hotmail.com
 CC: li...@jnielsen.net; freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 
 Faizan ul haq Muhammad wrote:
 
  It depends. Are you doing any sort of firewalling? What is the IP
  addressing info on the two end hosts?
  well, in this configuration i havent enabled any firewalling.
  the Ips are: 192.168.0.4 and 192.168.0.5 for the other two hosts and to
  the bridge i assigned IP 192.168.0.1
 
 Ok. On the box with the bridge, su to root and start a tcpdump session:
 
 # tcpdump -n -i bridge0
 
 ...and then, on 192.168.0.4, ping 192.168.0.5
 
 After the ping is done (whether it works or not), stop the tcpdump and
 email the output to the list if you can. If you can't email it, at least
 type out the IP addresses captured, and the direction the data is
 attempting to flow eg:
 
 208.70.104.210.22  208.70.104.100.50885
 208.70.104.100.50885  208.70.104.210.22
 arp who-has 208.70.104.206 tell 208.70.104.193
 
 etc.

I have just checked this:
it says nothing ... except:
listening on bridge0, link-type EN10MB (Ethernet), capture size 96 
bytes
I think it is unable to receive any packet . DO i miss something in the 
configuration ?
 Steve

_
Windows Live™ Hotmail®:…more than just e-mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explore_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-27 Thread Faizan ul haq Muhammad



 Date: Fri, 27 Feb 2009 08:24:26 -0500
 From: st...@ibctech.ca
 To: faiz...@hotmail.com
 CC: li...@jnielsen.net; freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 
 Faizan ul haq Muhammad wrote:
 
  After the ping is done (whether it works or not), stop the tcpdump and
  email the output to the list if you can. If you can't email it, at least
  type out the IP addresses captured, and the direction the data is
  attempting to flow eg:
 
  208.70.104.210.22  208.70.104.100.50885
  208.70.104.100.50885  208.70.104.210.22
  arp who-has 208.70.104.206 tell 208.70.104.193
 
  etc.
 
  I have just checked this:
  it says nothing ... except:
  listening on bridge0, link-type EN10MB (Ethernet), capture
  size 96 bytes
  I think it is unable to receive any packet . DO i miss something in the
  configuration ?
 
 Provide the output to ifconfig bridge0, and kldstat.

ifconfig bridge0 

bridge0: flags=8843UP, BROADCAST, RUNNING, SIMPLEX, MULTICAST metric 0 mtu 
1500
ther 0e:04:7b:09:e7:b0
inet 192.168.0.1 network 0xff00 broadcast 192.168.0.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0

kldstat:
id REfs   AddressSize Name
1  7   0xc040  9111ec kernel
2  1   0xc0d12000  6a32c   acpi.ko
3. 1   0xc4628000  22000   lunux.ko


...One more thing: do i need to enable bridging through some SCTL command.
somthing like sysctl net.link.ether.bridge.config=sk0:0, sk1:0

by the way this command generates this error: unknown oid 
net.link.ether.bridge.config 

Regards!
 
 Steve
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-27 Thread Faizan ul haq Muhammad



 Date: Fri, 27 Feb 2009 09:08:56 -0500
 From: st...@ibctech.ca
 To: faiz...@hotmail.com
 CC: li...@jnielsen.net; freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 
 Faizan ul haq Muhammad wrote:
 
  Provide the output to ifconfig bridge0, and kldstat.
  
  ifconfig bridge0
  
  bridge0: flags=8843UP, BROADCAST, RUNNING, SIMPLEX, MULTICAST metric 0
  mtu 1500
  ther 0e:04:7b:09:e7:b0
  inet 192.168.0.1 network 0xff00 broadcast 192.168.0.255
  id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
  
  kldstat:
  id REfs   AddressSize Name
  1  7   0xc040  9111ec kernel
  2  1   0xc0d12000  6a32c   acpi.ko
  3. 1   0xc4628000  22000   lunux.ko
  
  
 
 That is what I kind of thought...
 
  ...One more thing: do i need to enable bridging through some SCTL command.
  somthing like sysctl net.link.ether.bridge.config=sk0:0, sk1:0
  
  by the way this command generates this error: unknown oid
  net.link.ether.bridge.config 
 
 Put:
 
 if_bridge_load=YES in /boot/loader.conf.
 
 You can also load the module with:
 
 kldload if_bridge
this command gives the output: module if_bridge already exists..

... failed to register... bla bla

(I have device   if_bridge in my kernel setting so that already exists)

 
 IIRC, your settings in rc.conf should be enough to configure the bridge,
  so if you choose to load dynamically while running, try a
 /etc/netstart to configure the bridge.
 
 If that doesn't work, a reboot should.
 
 If you can't get it to work, supply the same output I asked for above,
THE out put is the same for the above said commands
 and then I'll set up a quick lab here to test it.
 
 Steve

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
Windows Live™: Discover 10 secrets about the new Windows Live.  
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!7540.entry?ocid=TXT_TAGLM_WL_t2_ugc_post_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-26 Thread Faizan ul haq Muhammad

Thanks dude, it helped me. if i configure the NICs with IPs belonging to 
different subnets, I get ping working locally.
I can see multiple routes for different subnets in NETSTAT too.
Now i assume that in order to configure the NICs with the same NETWORK and make 
them working i need to configure the System as router.

Anyways, for now Thanks for your help .. 

Regards
/Faizan



 From: li...@jnielsen.net
 To: faiz...@hotmail.com
 Date: Wed, 25 Feb 2009 15:15:46 -0500
 CC: freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 
 On Wednesday 25 February 2009 01:11:42 pm Faizan ul haq Muhammad wrote:
   From: li...@jnielsen.net
   On Wednesday 25 February 2009 12:35:23 pm Faizan ul haq Muhammad 
 wrote:
Hi
I have two PCI NICs and one builtin NIC on freebsd 7.0
ifconfig shows information somthing like:
   
bge0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0
mtu 1500 options=9bRXCSUM,TXCSUM, VLAN_HWTAGGING. VLAN_HWCSUM
ether 00:13:21:f8:7e:56
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
media: Ethernet autoselect (none) status: no carrier
  
   This is NIC doesn't appear to be plugged in.
 
  no it is not plugged into any other yet and if i plug it and ping it
  from an external machine, it works
 
 That's good.
 
sk0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0
mtu 1500 options=bRXCSUM,TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:69:25
inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
media: Ethernet autoselect (none) status: no carrier
  
   Neither is this one.
 
  You are right, but it does not reply to ping even if i plug this to an
  external system with crossover cable and ping from that PC.
 
 Still not surprising. See below.
 
  that is the difference in behaviour of both NICs
 
Note: bge0 is builtin NIC
sk0 is 3com PCI NIC
   
now after configuration of IPV4 Addresses, when i verify the
configuration with ping
   
if i ping bge0(ping 192.168.0.1) i get the response of success
but when i ping sk0 (ping 192.168.0.2) Ping gets stuck and gives no
response, neither it gives success or host unreachable or denied
kinda errors..
  
   Why do you want both interfaces to be configured on the same subnet?
 
  that is not required as such, I am just preparing the setup to use this
  machine a bridge and configure dummynet on this machine.
 
 You might try a different configuration for your testing. I suspect if you 
 changed the IP address of sk0 to 192.168.1.2 or similar it would behave 
 as you are expecting.
 
it just hangs over there.. and i can juz see one line of ping
not proceeding anyway. and if I terminate it via CTRL C then i get
statistics sumthing like 3 packets sent, 0 received and 100%
loss...
  
   This is probably expected behavior. What does netstat -rn show? My
   guess is that the route for 192.168.0.0/24 is link#1 aka bge0 and
   since it's not plugged in to anything that's as far as it gets.
 
  btu it does not show any other interface in netstat printout with this
  -rn switch
 
  and can you explain, how this is the expected behavior then..?
 
 There can only be one route at any time for any given network. When you 
 bring up bge0 with 192.168.0.1 a route is automatically created for 
 192.168.0.0 pointing to that interface. When you then bring up sk0 with 
 192.168.0.2 no additional route can be added for 192.168.0.0 since there 
 is already one present. Therefore ALL traffic destined for the 
 192.168.0.0 network will go out via bge0.
 
 In order to be able to ping 192.168.0.2 _locally_ you'd either need to 
 connect the interfaces with a crossover cable (well, crossover isn't 
 strictly necessary since gigabit ethernet adapters can figure it out on 
 their own..) OR plug both interfaces into a switch/hub. Ping packet goes 
 out bge0 (according to the route), across the wire and comes in on sk0 
 (destination address). The response would be delivered directly to bge0 
 (without going over the wire).
 
 Similarly, in order to be able to ping 192.168.0.2 from a second machine 
 all _three_ interfaces would need to be connected to the same network 
 segment (via a switch/hub, etc). Ping packet goes out from peer, across 
 the wire and in on sk0 (destination address). Response goes out bge0 
 (according to route), across the other wire and back to the peer.
 
 I hope this helps you make sense of things.
 
 JN
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_
It’s the same Hotmail®. If by “same” you mean up to 70% faster. 
http://windowslive.com/online/hotmail?ocid

RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-26 Thread Faizan ul haq Muhammad


 



 


 Date: Thu, 26 Feb 2009 08:52:28 -0500
 From: st...@ibctech.ca
 To: faiz...@hotmail.com
 CC: li...@jnielsen.net; freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 
 Faizan ul haq Muhammad wrote:
 
  Now i assume that in order to configure the NICs with the same NETWORK and 
  make them working i need to configure the System as router.
 
 No.
 
 A router's responsibility is to route packets between DISSIMILAR network
 prefixes.
 
 In essence, trying to do what you want is similar to this:
 
 - you live at 100 John St
 - you need to go to 50 John St
 - the street is addressed in a way that a 50 John street is to your left
 AND to the right
 
 Which way do you go?
In this case I can take any of them  
 Steve

 

Anyways,- Today i got some time to play around and i tried to configure the 
machine as bridge.

I added device if_bridge to kernel 

then i added the code to the rc.conf

 

cloned_interfaces=bridge0
ifconfig_bridge0=addm sk0 addm sk1 up
ifconfig_sk0=up
ifconfig_sk1=up

now, i dun have any network address assigned to any of the interface and 
connect the two lan cards to two other machines and try to ping those machines 
from each other. but no success. 

 

... do you think, this is as expected..? (i think bridge does not need to have 
any IP address..)



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


_
Windows Live™: Discover 10 secrets about the new Windows Live.  
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!7540.entry?ocid=TXT_TAGLM_WL_t2_ugc_post_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-26 Thread Faizan ul haq Muhammad


 


 Date: Thu, 26 Feb 2009 14:06:59 -0500
 From: st...@ibctech.ca
 To: faiz...@hotmail.com
 CC: li...@jnielsen.net; freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 
 Faizan ul haq Muhammad wrote:
 
  Which way do you go?
  In this case I can take any of them 
 
 Perhaps you will freeze in your tracks indefinitely due to confusion. Or
 perhaps you will go around the entire block a few times before making a
 decision ;)
lol, i got confused when i first time saw ur previous reply ... that which way 
should i take. 

 

  Anyways,- Today i got some time to play around and i tried to configure
  the machine as bridge.
  I added device if_bridge to kernel
  then i added the code to the rc.conf
  
  cloned_interfaces=bridge0
  ifconfig_bridge0=addm sk0 addm sk1 up
  ifconfig_sk0=up
  ifconfig_sk1=up
  now, i dun have any network address assigned to any of the interface and
  connect the two lan cards to two other machines and try to ping those
  machines from each other. but no success.
 
 Did the bridge interface actually come up?
I could see the bridge interface in the printout of Ifconfig and i assigned the 
IP address to the bridge interface and can ping to that IP as well (locally)


  ... do you think, this is as expected..? (i think bridge does not need
  to have any IP address..)
 
 It depends. Are you doing any sort of firewalling? What is the IP
 addressing info on the two end hosts?
well, in this configuration i havent enabled any firewalling. 

the Ips are: 192.168.0.4 and 192.168.0.5 for the other two hosts and to the 
bridge i assigned IP 192.168.0.1

 
 Steve


_
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-25 Thread Faizan ul haq Muhammad

Hi
I have two PCI NICs and one builtin NIC on freebsd 7.0
ifconfig shows information somthing like:

bge0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0 mtu 1500
options=9bRXCSUM,TXCSUM, VLAN_HWTAGGING. VLAN_HWCSUM
ether 00:13:21:f8:7e:56
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
media: Ethernet autoselect (none)
status: no carrier

sk0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0 mtu 1500

options=bRXCSUM,TXCSUM, VLAN_MTU

ether 00:0a:5e:1a:69:25

inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255

media: Ethernet autoselect (none)

status: no carrier


Note: bge0 is builtin NIC
sk0 is 3com PCI NIC

now after configuration of IPV4 Addresses, when i verify the configuration with 
ping

if i ping bge0(ping 192.168.0.1) i get the response of success
but when i ping sk0 (ping 192.168.0.2) Ping gets stuck and gives no response, 
neither it gives success or host unreachable or denied kinda errors.. it just 
hangs over there.. and i can juz see one line of ping not proceeding anyway. 
and if I terminate it via CTRL C then i get statistics sumthing like 3 packets 
sent, 0 received and 100% loss...

I am stuck and my brain does not work any more here.. 
Can anybody help me ... 

Regards
Faizan

_
It’s the same Hotmail®. If by “same” you mean up to 70% faster. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Same_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-25 Thread Faizan ul haq Muhammad

 


 From: li...@jnielsen.net
 To: freebsd-questions@freebsd.org
 Subject: Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on 
 builtin NIC
 Date: Wed, 25 Feb 2009 13:06:14 -0500
 CC: faiz...@hotmail.com
 
 On Wednesday 25 February 2009 12:35:23 pm Faizan ul haq Muhammad wrote:
  Hi
  I have two PCI NICs and one builtin NIC on freebsd 7.0
  ifconfig shows information somthing like:
 
  bge0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0 mtu
  1500 options=9bRXCSUM,TXCSUM, VLAN_HWTAGGING. VLAN_HWCSUM
  ether 00:13:21:f8:7e:56
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
  media: Ethernet autoselect (none) status: no carrier
 
 This is NIC doesn't appear to be plugged in.

no it is not plugged into any other yet and if i plug it and ping it from an 
external machine, it works
 
  sk0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0 mtu
  1500 options=bRXCSUM,TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:69:25
  inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
  media: Ethernet autoselect (none) status: no carrier
 
 Neither is this one.

You are right, but it does not reply to ping even if i plug this to an external 
system with crossover cable and ping from that PC.

that is the difference in behaviour of both NICs
 
  Note: bge0 is builtin NIC
  sk0 is 3com PCI NIC
 
  now after configuration of IPV4 Addresses, when i verify the
  configuration with ping
 
  if i ping bge0(ping 192.168.0.1) i get the response of success
  but when i ping sk0 (ping 192.168.0.2) Ping gets stuck and gives no
  response, neither it gives success or host unreachable or denied kinda
  errors..
 
 Why do you want both interfaces to be configured on the same subnet?

that is not required as such, I am just preparing the setup to use this machine 
a bridge and configure dummynet on this machine.

I hope now you get it.
 
  it just hangs over there.. and i can juz see one line of ping 
  not proceeding anyway. and if I terminate it via CTRL C then i get
  statistics sumthing like 3 packets sent, 0 received and 100% loss...
 
 This is probably expected behavior. What does netstat -rn show? My guess 
 is that the route for 192.168.0.0/24 is link#1 aka bge0 and since it's 
 not plugged in to anything that's as far as it gets.

exactly

btu it does not show any other interface in netstat printout with this -rn 
switch

and can you explain, how this is the expected behavior then..?


 
  I am stuck and my brain does not work any more here..
  Can anybody help me ...
 
 JN
 
Thanks for your early response

_
Windows Live™ Hotmail®:…more than just e-mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explore_022009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org