From owner-freebsd-net@FreeBSD.ORG Sun Oct 26 13:43:02 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09FDD10656A2; Sun, 26 Oct 2008 13:43:02 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id D7BF48FC2B; Sun, 26 Oct 2008 13:43:01 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTP id 5216F46B0C; Sun, 26 Oct 2008 09:43:01 -0400 (EDT) Date: Sun, 26 Oct 2008 13:43:01 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Kip Macy In-Reply-To: <3c1674c90810241552v5fd3e58fvf6bd43ad94558b1e@mail.gmail.com> Message-ID: References: <200810241612.04764.gizmen@blurp.pl> <3c1674c90810241552v5fd3e58fvf6bd43ad94558b1e@mail.gmail.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Bartosz Giza , freebsd-net@freebsd.org Subject: Re: does freebsd support so called Scalable I/O on intel NIC ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 13:43:02 -0000 On Fri, 24 Oct 2008, Kip Macy wrote: > It is simply a knob to adjust on all new server network cards. You could > benefit from it on a predominantly UDP workload. I believe that tcp_input is > still sufficiently serialized that it would not make sense for TCP > workloads. In principle we can benefit on the basis that we drop the global lock fairly quickly for steady-state workloads (i.e., few SYN/FIN/RST packets), but there should be lots of contention on tcbinfo. If anyone is interested in doing some benchmarks, I have some patches that should apply fairly easily againts 8.x or 7.x as of 7.1 to move to optimistic read-locking of the global lock for steady state packets, but once in a while we have to upgrade or drop and re-acquire to get an exclusive lock when it turns out something that looked like a steady state packet did require the global lock exclusively, such as the ACK to transitioning to or from established. I've not had a chance to do much benchmarking on them, and theorize that they probably help quite a lot for lots of steady-state connections, but as connection length gets shorter the optimistic assumption becomes less true and begins to hurt performance. The long-term plan is to move to some more agressive decomposition of the tcbinfo lock, but I've not started on that yet as I'm waiting for the rwlock changes to settle, and need to evaluate the above tcbinfo rwlock patch. Robert N M Watson Computer Laboratory University of Cambridge > > -Kip > > On Fri, Oct 24, 2008 at 2:12 PM, Bartosz Giza wrote: >> Hi, >> >> i am looking for a good NIC from NIC to put on our quite busy router based >> on freebsd 6.3 (soon 7.x) >> I've found server NIC from intel and there is such a thing like scalable I/O >> on windows and linux. >> (from web page) >> >> "load balancing on multiple CPUs Increases >> performance on multi-processor systems by efficiently >> balancing network loads across CPU cores when used >> with Receive-Side Scaling from Microsoft or Scalable >> I/O on Linux*" >> >> Is such thing supported on freebsd ? >> >> And one more question. Does anybody has some data what is difference on >> desktop and server NIC from INTEL in pps or so. >> I wonder how faster could be those server NICs >> >> thanks >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Sun Oct 26 14:18:37 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 794EF106566C for ; Sun, 26 Oct 2008 14:18:37 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.180]) by mx1.freebsd.org (Postfix) with ESMTP id 2AD8D8FC20 for ; Sun, 26 Oct 2008 14:18:36 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so608939ele.13 for ; Sun, 26 Oct 2008 07:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=DwBOT4irXlYv3l5hrjDn2TQ6i5yKhEwyGLGkI3VXUjQ=; b=vxhlFXHAv9YGeefe7rVQtII22iUP/rrjOLC1S+1HDrwMhycCfJ3seLoTMv7VOLikKd V3AJnx+2EVKNp0uFlvnrTxvMwa1c+9y78fuVVZe5yEDML/6vDbwws5Oa0GPqcFL6P76e OYuWv8Sf8eGEh3FXzl2+HZPj3oBzZ6x1w3nf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=u0e/CzGtZRzIKJ+av02lrQT8Ve5GnUCq8uaRqT0tCu4b3g+RsrZhk1hU9lijNAa8Fj uhu1bcqb8M78GU3CKrhv5rbQKOhEz+GgyEQpN7R0iR/em6Mx11tWRyNisamW2VtlKH2y 0uhH3VWiwxU6RLxuN6Qiyc03LKz6TdWSNowoo= Received: by 10.65.234.18 with SMTP id l18mr5080202qbr.1.1225030715500; Sun, 26 Oct 2008 07:18:35 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Sun, 26 Oct 2008 07:18:35 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 13:18:35 -0100 From: "Eduardo Meyer" To: freebsd-net@freebsd.org, freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 14:18:37 -0000 Hello, I want to start a migration education to IPv6, setting up my internal network to be 100% ipv6-only. I dont want it to be dual stacked, because I intend to force my team to perform only IPv6 related tools on the internal network. However, when performing internet activity like, reading e-mail or browsing the web, its impossible to avoid IPv4 today. I want them to be able to reach IPv4 network (internet) transparently. When DNS resolve to IPv4, they will ask the gateway (ipv6, dual stacked), who will put their v6 address in the v4 network. How can I accomplish that? Is NAT-PT the only way? If so, how can I get NAT-PT on FreeBSD? Your opinion: do you think this approach can be used for end users? I mean, someone with windows vista and teredo, is already getting IPv6 address since my FreeBSD is advertising it. However they are dual stacked. I want people to be v6-only and still can visit v4 networks transparently, without technical knowledge (say, my girlfriend who is not a geek). I guess this is a migration/education strategy, which I intend to deploy, but right now I am only studying. Will faith(4) do this for me? -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br From owner-freebsd-net@FreeBSD.ORG Sun Oct 26 15:25:27 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A82A106566B for ; Sun, 26 Oct 2008 15:25:27 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from mellanox.co.il (mail.mellanox.co.il [194.90.237.43]) by mx1.freebsd.org (Postfix) with ESMTP id 63F1F8FC1D for ; Sun, 26 Oct 2008 15:25:25 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from Internal Mail-Server by MTLPINE1 (envelope-from eitans@mellanox.co.il) with SMTP; 26 Oct 2008 16:58:42 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Sun, 26 Oct 2008 16:58:33 +0200 Message-ID: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: I seems that the OS does use the available MTU Thread-Index: Ack3e1EQIZy6XDDeS5yFRz46zToseg== From: "Eitan Shefi" To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Eitan Shefi Subject: I seems that the OS does use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 15:25:27 -0000 Hi, =20 I am using 2 hosts with FreeBSD-7.0 connected directly. When I change the MTU to a value greater then 1500, for example 3000, and then send "ping" with message size 2500, from one host to the other, the other host gets more then one ICMP packet, even thaw the message that was send is match smaller then the MTU. =20 I tried to run this test using a different NIC, but I got the same behavior. =20 I run: 1. On both hosts: ifconfig mtnic0 mtu 3000 2. Than on one host I run: tcpdump -i mtnic0 icmp 3. And on the other host I run: ping -s 2500 -c 1 OTHER_HOST_IP (ping to "mtnic0" on the other host) =20 On the receiving side I get the output: =20 [root@sw260 ~]# tcpdump -i mtnic0 icmp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on mtnic0, link-type EN10MB (Ethernet), capture size 96 bytes 13:12:45.904454 IP 11.4.12.5 > 11.4.12.6: ICMP echo request, id 22550, seq 0, length 1480 13:12:45.904463 IP 11.4.12.5 > 11.4.12.6: icmp 13:12:45.904477 IP 11.4.12.6 > 11.4.12.5: ICMP echo reply, id 22550, seq 0, length 1480 13:12:45.904480 IP 11.4.12.6 > 11.4.12.5: icmp =20 Please help resolving this issue. =20 =20 Thanks, =20 Eitan Shefi From owner-freebsd-net@FreeBSD.ORG Sun Oct 26 16:17:31 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C879F106569B; Sun, 26 Oct 2008 16:17:31 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal2.es.net [198.128.3.206]) by mx1.freebsd.org (Postfix) with ESMTP id A78478FC18; Sun, 26 Oct 2008 16:17:31 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id GAG73158; Sun, 26 Oct 2008 09:06:58 -0700 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 7ED2345048; Sun, 26 Oct 2008 09:06:58 -0700 (PDT) To: "Eduardo Meyer" In-Reply-To: Your message of "Sun, 26 Oct 2008 13:18:35 -0100." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1225037218_63075P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sun, 26 Oct 2008 09:06:58 -0700 From: "Kevin Oberman" Message-Id: <20081026160658.7ED2345048@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ; ; ; X-Sender: X-To_Name: Eduardo Meyer X-To_Domain: gmail.com X-To: "Eduardo Meyer" X-To_Email: dudu.meyer@gmail.com X-To_Alias: dudu.meyer Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 16:17:31 -0000 --==_Exmh_1225037218_63075P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Sun, 26 Oct 2008 13:18:35 -0100 > From: "Eduardo Meyer" > Sender: owner-freebsd-net@freebsd.org > > Hello, > > I want to start a migration education to IPv6, setting up my internal > network to be 100% ipv6-only. I dont want it to be dual stacked, > because I intend to force my team to perform only IPv6 related tools > on the internal network. However, when performing internet activity > like, reading e-mail or browsing the web, its impossible to avoid IPv4 > today. > > I want them to be able to reach IPv4 network (internet) transparently. > When DNS resolve to IPv4, they will ask the gateway (ipv6, dual > stacked), who will put their v6 address in the v4 network. > > How can I accomplish that? Is NAT-PT the only way? If so, how can I > get NAT-PT on FreeBSD? > > Your opinion: do you think this approach can be used for end users? I > mean, someone with windows vista and teredo, is already getting IPv6 > address since my FreeBSD is advertising it. However they are dual > stacked. I want people to be v6-only and still can visit v4 networks > transparently, without technical knowledge (say, my girlfriend who is > not a geek). > > I guess this is a migration/education strategy, which I intend to > deploy, but right now I am only studying. > > Will faith(4) do this for me? I suspect that this is simply not quite possible today, although it's close. The BEHAVE IETF working group is the place to look for the latest information on this area. I have tried a couple of solutions. The one that worked best was IVI, developed in China. It generally worked well and was fairly fast. It's big problem is embedded IPv4 addresses in things like JavaScript. This is a workable problem, but it has not been worked to this point. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1225037218_63075P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFJBJWikn3rs5h7N1ERAjPQAJ96WoYYLSQ7l7OKmX02Fzhqn4z2MACfeUh8 Ibhxt6IY+c1uMVuOP7YH1DA= =6OI/ -----END PGP SIGNATURE----- --==_Exmh_1225037218_63075P-- From owner-freebsd-net@FreeBSD.ORG Sun Oct 26 16:39:41 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0E4C106566C for ; Sun, 26 Oct 2008 16:39:41 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id F0B488FC08 for ; Sun, 26 Oct 2008 16:39:40 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 226156228; Sun, 26 Oct 2008 18:39:39 +0200 Message-ID: <4904AB59.3060101@FreeBSD.org> Date: Sun, 26 Oct 2008 19:39:37 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: ck@yourserveradmin.com References: <490368C0.1010704@yourserveradmin.com> In-Reply-To: <490368C0.1010704@yourserveradmin.com> Content-Type: multipart/mixed; boundary="------------080800040701040505040506" Cc: freebsd-net@freebsd.org Subject: Re: mpd - lcp protocol rejects X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 16:39:41 -0000 This is a multi-part message in MIME format. --------------080800040701040505040506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit CK wrote: > I'm running mpd 4.4 on 6.3-STABLE #4. Connecting with mpd to my ISP's > VPN server running poptop. Everything is ok for some time, and then all > of a sudden mpd starts throwing weird protocol rejects to log file and > vpn connection stops working. > > Oct 19 03:06:16 tazek mpd: [pptp] IPCP: state change Ack-Sent --> Opened > Oct 19 03:06:16 tazek mpd: [pptp] IPCP: LayerUp > Oct 19 03:06:16 tazek mpd: ext_ip -> 172.16.30.42 > Oct 19 03:06:16 tazek mpd: [pptp] IFACE: Up event > Oct 19 11:10:26 tazek mpd: [pptp] LCP: rec'd Protocol Reject #2 (Opened) > Oct 19 11:10:26 tazek mpd: [pptp] LCP: protocol 0x000b was rejected > Oct 19 11:10:26 tazek mpd: [pptp] LCP: rec'd Protocol Reject #3 (Opened) > Oct 19 11:10:26 tazek mpd: [pptp] LCP: protocol 0xf679 was rejected > > No errors between up event and protocol rejects. Help... > > I've found this post > http://lists.freebsd.org/pipermail/freebsd-stable/2003-June/001878.html > but patch is for older ng_ppp.c and I do not speak C well enough to > write code for kernel modules. Also, saw some other guys having same > problems - but no solutions. Maybe community has something to say? That post is too old and not applicable now. IMO problem is encryption related. It looks like due to some reason sides got out of sync. It could happen due to incomplete memory errors handling withing ng_mppc node. I have made a patch to improve it. Patch is for 8-CURRENT, but I think it should apply to 6-STABLE without significant problems. Write me please about results. -- Alexander Motin --------------080800040701040505040506 Content-Type: text/plain; name="ng_mppc.c.errhandle.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ng_mppc.c.errhandle.patch" --- ng_mppc.c.prev 2007-05-18 18:28:01.000000000 +0300 +++ ng_mppc.c 2008-10-26 19:17:38.000000000 +0200 @@ -492,17 +492,18 @@ ng_mppc_compress(node_p node, struct mbu /* Work with contiguous regions of memory. */ inlen = m->m_pkthdr.len; inbuf = malloc(inlen, M_NETGRAPH_MPPC, M_NOWAIT); - if (inbuf == NULL) { - m_freem(m); - return (ENOMEM); - } + if (inbuf == NULL) + goto err1; m_copydata(m, 0, inlen, (caddr_t)inbuf); outlen = MPPC_MAX_BLOWUP(inlen); outbuf = malloc(outlen, M_NETGRAPH_MPPC, M_NOWAIT); if (outbuf == NULL) { - m_freem(m); free(inbuf, M_NETGRAPH_MPPC); +err1: + m_freem(m); + MPPC_InitCompressionHistory(d->history); + d->flushed = 1; return (ENOMEM); } @@ -538,8 +539,13 @@ ng_mppc_compress(node_p node, struct mbu free(outbuf, M_NETGRAPH_MPPC); /* Check m_devget() result. */ - if (m == NULL) + if (m == NULL) { + if (!d->flushed) { + MPPC_InitCompressionHistory(d->history); + d->flushed = 1; + } return (ENOMEM); + } } #endif @@ -551,6 +557,18 @@ ng_mppc_compress(node_p node, struct mbu /* Set header bits */ header |= MPPC_FLAG_ENCRYPTED; + /* We must own the mbuf chain exclusively to modify it. */ + m = m_unshare(m, M_DONTWAIT); + if (m == NULL) { + if (!d->flushed) { +#ifdef NETGRAPH_MPPC_COMPRESSION + MPPC_InitCompressionHistory(d->history); +#endif + d->flushed = 1; + } + return (ENOMEM); + } + /* Update key if it's time */ if ((d->cfg.bits & MPPE_STATELESS) != 0 || (d->cc & MPPE_UPDATE_MASK) == MPPE_UPDATE_FLAG) { @@ -562,11 +580,6 @@ ng_mppc_compress(node_p node, struct mbu rc4_init(&d->rc4, d->key, KEYLEN(d->cfg.bits)); } - /* We must own the mbuf chain exclusively to modify it. */ - m = m_unshare(m, M_DONTWAIT); - if (m == NULL) - return (ENOMEM); - /* Encrypt packet */ m1 = m; while (m1) { --------------080800040701040505040506-- From owner-freebsd-net@FreeBSD.ORG Sun Oct 26 21:47:05 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D176106566B; Sun, 26 Oct 2008 21:47:05 +0000 (UTC) (envelope-from randy@psg.com) Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:1::36]) by mx1.freebsd.org (Postfix) with ESMTP id 1FDBB8FC1C; Sun, 26 Oct 2008 21:47:05 +0000 (UTC) (envelope-from randy@psg.com) Received: from [213.42.94.180] (helo=rmac.psg.com) by ran.psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KuDRu-000P1S-SL; Sun, 26 Oct 2008 21:47:03 +0000 Message-ID: <4904E553.60806@psg.com> Date: Mon, 27 Oct 2008 01:46:59 +0400 From: Randy Bush User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Eduardo Meyer References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 21:47:05 -0000 > I want to start a migration education to IPv6, setting up my internal > network to be 100% ipv6-only. I dont want it to be dual stacked, > because I intend to force my team to perform only IPv6 related tools > on the internal network. However, when performing internet activity > like, reading e-mail or browsing the web, its impossible to avoid IPv4 > today. sigh, for linux, http://code.google.com/p/stubl/ randy From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 02:19:26 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B755106567A for ; Mon, 27 Oct 2008 02:19:26 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from warped.bluecherry.net (unknown [IPv6:2001:440:eeee:fffb::2]) by mx1.freebsd.org (Postfix) with ESMTP id EBD498FC14 for ; Mon, 27 Oct 2008 02:19:25 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (unknown [74.193.170.223]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by warped.bluecherry.net (Postfix) with ESMTPSA id 42B98A1A2229; Sun, 26 Oct 2008 21:19:24 -0500 (CDT) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.14.3/8.14.3) with ESMTP id m9R2JKt6056272; Sun, 26 Oct 2008 21:19:21 -0500 (CDT) (envelope-from morganw@chemikals.org) Date: Sun, 26 Oct 2008 21:19:20 -0500 (CDT) From: Wes Morgan To: Eduardo Meyer In-Reply-To: <4904E553.60806@psg.com> Message-ID: References: <4904E553.60806@psg.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: Randy Bush , freebsd-net@freebsd.org Subject: Re: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 02:19:26 -0000 On Mon, 27 Oct 2008, Randy Bush wrote: >> I want to start a migration education to IPv6, setting up my internal >> network to be 100% ipv6-only. I dont want it to be dual stacked, >> because I intend to force my team to perform only IPv6 related tools >> on the internal network. However, when performing internet activity >> like, reading e-mail or browsing the web, its impossible to avoid IPv4 >> today. Can't PF do this already? From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 04:04:20 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E086610656A5; Mon, 27 Oct 2008 04:04:20 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.freebsd.org (Postfix) with ESMTP id 8BF1E8FC18; Mon, 27 Oct 2008 04:04:20 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=devil.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KuJL0-0003YM-8j; Mon, 27 Oct 2008 12:04:18 +0800 Message-ID: <49053DC1.8060101@micom.mng.net> Date: Mon, 27 Oct 2008 12:04:17 +0800 From: Ganbold User-Agent: Thunderbird 2.0.0.16 (X11/20080901) MIME-Version: 1.0 To: Alexander Motin X-Enigmail-Version: 0.95.6 OpenPGP: id=78F6425E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , mav@freebsd.org Subject: multiple IP pools in mpd5 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 04:04:21 -0000 Hi, Is it possible to specify multiple IP pools in mpd5? Something like: set ippool add pool1 102.179.16.20 102.179.17.254 set ippool add pool1 102.179.17.1 102.179.17.254 set ipcp ranges 102.179.16.13/32 ippool pool1 Or: set ippool add pool1 102.179.16.20 102.179.17.254 set ippool add pool2 102.179.17.1 102.179.17.254 set ipcp ranges 102.179.16.13/32 ippool pool1 pool2 Which one is correct syntax? thanks, Ganbold -- The luck that is ordained for you will be coveted by others. From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 07:52:50 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 467311065676; Mon, 27 Oct 2008 07:52:50 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.freebsd.org (Postfix) with ESMTP id B0A028FC28; Mon, 27 Oct 2008 07:52:49 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=devil.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KuMu4-0006oM-Os; Mon, 27 Oct 2008 15:52:44 +0800 Message-ID: <4905734B.1050402@micom.mng.net> Date: Mon, 27 Oct 2008 15:52:43 +0800 From: Ganbold User-Agent: Thunderbird 2.0.0.16 (X11/20080901) MIME-Version: 1.0 To: Alexander Motin References: <49053DC1.8060101@micom.mng.net> In-Reply-To: <49053DC1.8060101@micom.mng.net> X-Enigmail-Version: 0.95.6 OpenPGP: id=78F6425E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , mav@freebsd.org Subject: Re: multiple IP pools in mpd5 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 07:52:50 -0000 Hi, Replying to myself. set ippool add pool1 102.179.16.20 102.179.17.254 set ipcp ranges 102.179.16.13/32 ippool pool1 works here :) Ganbold Ganbold wrote: > Hi, > > Is it possible to specify multiple IP pools in mpd5? > > Something like: > > set ippool add pool1 102.179.16.20 102.179.17.254 > set ippool add pool1 102.179.17.1 102.179.17.254 > > set ipcp ranges 102.179.16.13/32 ippool pool1 > > Or: > > set ippool add pool1 102.179.16.20 102.179.17.254 > set ippool add pool2 102.179.17.1 102.179.17.254 > > set ipcp ranges 102.179.16.13/32 ippool pool1 pool2 > > Which one is correct syntax? > > thanks, > > Ganbold > > > > > -- Yes, I was surprised how easy it was to cut the door off my cat. -- James D. Nicoll From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 11:07:18 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B8111065671 for ; Mon, 27 Oct 2008 11:07:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 17C058FC26 for ; Mon, 27 Oct 2008 11:07:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9RB7IeT002043 for ; Mon, 27 Oct 2008 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9RB7H91002039 for freebsd-net@FreeBSD.org; Mon, 27 Oct 2008 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Oct 2008 11:07:17 GMT Message-Id: <200810271107.m9RB7H91002039@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 11:07:18 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/128334 net [request] use wpa_cli in the "WPA DHCP" situation o bin/128295 net [patch] ifconfig(8) does not print TOE4 or TOE6 capabi o kern/128181 net [fxp] panic in fxp_add_rfabuf o conf/128030 net [request] Isn't it time to enable IPsec in GENERIC? o bin/128001 net wpa_supplicant(8), wlan(4), and wi(4) issues o kern/127928 net [tcp] [patch] TCP bandwidth gets squeezed every time t o kern/127834 net [ixgbe] [patch] wrong error counting o kern/127826 net [iwi] iwi0 driver has reduced performance and connecti o kern/127815 net [gif] [patch] if_gif does not set vlan attributes from o kern/127724 net [rtalloc] rtfree: 0xc5a8f870 has 1 refs f bin/127719 net arp: Segmentation fault (core dumped) s kern/127587 net [bge] [request] if_bge(4) doesn't support BCM576X fami f kern/127528 net [icmp]: icmp socket receives icmp replies not owned by o bin/127192 net routed(8) removes the secondary alias IP of interface f kern/127145 net [wi]: prism (wi) driver crash at bigger traffic o kern/127102 net [wpi] Intel 3945ABG low throughput o kern/127057 net [udp] Unable to send UDP packet via IPv6 socket to IPv o kern/127050 net [carp] ipv6 does not work on carp interfaces [regressi o kern/126984 net [carp][patch] add carp userland notifications via devc o kern/126945 net [carp] CARP interface destruction with ifconfig destro o kern/126924 net [an] [patch] printf -> device_printf and simplify prob o kern/126895 net [patch] [ral] Add antenna selection (marked as TBD) o kern/126874 net [vlan]: Zebra problem if ifconfig vlanX destroy o bin/126822 net wpa_supplicant(8): WPA PSK does not work in adhoc mode o kern/126714 net [carp] CARP interface renaming makes system no longer o kern/126695 net rtfree messages and network disruption upon use of if_ o kern/126688 net [ixgbe] [patch] 1.4.7 ixgbe driver panic with 4GB and f kern/126564 net [ath] doesn't work with my PCI-E X1 wireless network a o kern/126561 net [nlm] [patch] NLM (rpclockd) RPC UNLOCK failure (stall o kern/126475 net [ath] [panic] ath pcmcia card inevitably panics under o kern/126469 net [fxp] [panic] fxp(4) related kernel panic o kern/126339 net [ipw] ipw driver drops the connection o kern/126214 net [ath] txpower problem with Atheros wifi card o kern/126075 net [in] Network: internet control accesses beyond end of o bin/125922 net [patch] Deadlock in arp(8) o kern/125920 net [arp] Kernel Routing Table loses Ethernet Link status o kern/125845 net [netinet] [patch] tcp_lro_rx() should make use of hard o kern/125816 net [carp] [if_bridge] carp stuck in init when using bridg f kern/125502 net [ral] ifconfig ral0 scan produces no output unless in o kern/125258 net [socket] socket's SO_REUSEADDR option does not work o kern/125239 net [gre] kernel crash when using gre f kern/125195 net [fxp] fxp(4) driver failed to initialize device Intel o kern/125079 net [ppp] host routes added by ppp with gateway flag (regr o kern/124904 net [fxp] EEPROM corruption with Compaq NC3163 NIC o kern/124767 net [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 net [ieee80211] net80211 discards power-save queue packets o kern/124609 net [ipsec] [panic] ipsec 'remainder too big' panic with p o kern/124341 net [ral] promiscuous mode for wireless device ral0 looses o kern/124160 net [libc] connect(2) function loops indefinitely o kern/124127 net [msk] watchdog timeout (missed Tx interrupts) -- recov o kern/124021 net [ip6] [panic] page fault in nd6_output() o bin/124004 net ifconfig(8): Cannot assign both an IP and a MAC addres o kern/123968 net [rum] [panic] rum driver causes kernel panic with WPA. p kern/123961 net [vr] [patch] Allow vr interface to handle vlans o kern/123892 net [tap] [patch] No buffer space available o kern/123881 net [tcp] Turning on TCP blackholing causes slow localhost o kern/123858 net [stf] [patch] stf not usable behind a NAT o kern/123796 net [ipf] FreeBSD 6.1+VPN+ipnat+ipf: port mapping does not o bin/123633 net ifconfig(8) doesn't set inet and ether address in one o kern/123617 net [tcp] breaking connection when client downloading file o kern/123603 net [tcp] tcp_do_segment and Received duplicate SYN o kern/123559 net [iwi] iwi periodically disassociates/associates [regre o bin/123465 net [ip6] route(8): route add -inet6 -interfac o kern/123463 net [ipsec] [panic] repeatable crash related to ipsec-tool o kern/123429 net [nfe] [hang] "ifconfig nfe up" causes a hard system lo o kern/123347 net [bge] bge1: watchdog timeout -- linkstate changed to D o conf/123330 net [nsswitch.conf] Enabling samba wins in nsswitch.conf c o kern/123256 net [wpi] panic: blockable sleep lock with wpi(4) f kern/123200 net [netgraph] Server failure due to netgraph mpd and dhcp f kern/123172 net [bce] Watchdog timeout problems with if_bce o kern/123160 net [ip] Panic and reboot at sysctl kern.polling.enable=0 o kern/123066 net [ipsec] [panic] kernel trap with ipsec o kern/122989 net [swi] [panic] 6.3 kernel panic in swi1: net o kern/122954 net [lagg] IPv6 EUI64 incorrectly chosen for lagg devices o kern/122928 net [em] interface watchdog timeouts and stops receiving p f kern/122839 net [multicast] FreeBSD 7 multicast routing problem p kern/122794 net [lagg] Kernel panic after brings lagg(8) up if NICs ar o kern/122780 net [lagg] tcpdump on lagg interface during high pps wedge o kern/122772 net [em] em0 taskq panic, tcp reassembly bug causes radix o kern/122743 net [panic] vm_page_unwire: invalid wire count: 0 o kern/122697 net [ath] Atheros card is not well supported o kern/122685 net It is not visible passing packets in tcpdump(1) o kern/122551 net [bge] Broadcom 5715S no carrier on HP BL460c blade usi o kern/122427 net [apm] [panic] apm and mDNSResponder cause panic during o kern/122319 net [wi] imposible to enable ad-hoc demo mode with Orinoco o kern/122290 net [netgraph] [panic] Netgraph related "kmem_map too smal f kern/122252 net [ipmi] [bge] IPMI problem with BCM5704 (does not work o kern/122195 net [ed] Alignment problems in if_ed o kern/122082 net [in_pcb] NULL pointer dereference in in_pcbdrop o kern/122068 net [ppp] ppp can not set the correct interface with pptpd o kern/122058 net [em] [panic] Panic on em1: taskq o kern/122033 net [ral] [lor] Lock order reversal in ral0 at bootup [reg o kern/121983 net [fxp] fxp0 MBUF and PAE o kern/121872 net [wpi] driver fails to attach on a fujitsu-siemens s711 s kern/121774 net [swi] [panic] 6.3 kernel panic in swi1: net o kern/121706 net [netinet] [patch] "rtfree: 0xc4383870 has 1 refs" emit o kern/121624 net [em] [regression] Intel em WOL fails after upgrade to o kern/121555 net [panic] Fatal trap 12: current process = 12 (swi1: net o kern/121443 net [gif] LOR icmp6_input/nd6_lookup o kern/121437 net [vlan] Routing to layer-2 address does not work on VLA o kern/121298 net [em] [panic] Fatal trap 12: page fault while in kernel o kern/121257 net [tcp] TSO + natd -> slow outgoing tcp traffic o kern/121181 net [panic] Fatal trap 3: breakpoint instruction fault whi o kern/121080 net [bge] IPv6 NUD problem on multi address config on bge0 o kern/120966 net [rum] kernel panic with if_rum and WPA encryption p docs/120945 net [PATCH] ip6(4) man page lacks documentation for TCLASS o kern/120566 net [request]: ifconfig(8) make order of arguments more fr o kern/120304 net [netgraph] [patch] netgraph source assumes 32-bit time o kern/120266 net [panic] gnugk causes kernel panic when closing UDP soc o kern/120232 net [nfe] [patch] Bring in nfe(4) to RELENG_6 o kern/120130 net [carp] [panic] carp causes kernel panics in any conste o kern/119945 net [rum] [panic] rum device in hostap mode, cause kernel o kern/119791 net [nfs] UDP NFS mount of aliased IP addresses from a Sol o kern/119617 net [nfs] nfs error on wpa network when reseting/shutdown f kern/119516 net [ip6] [panic] _mtx_lock_sleep: recursed on non-recursi o kern/119432 net [arp] route add -host -iface causes arp e o kern/119361 net [bge] bge(4) transmit performance problem o kern/119345 net [ath] Unsuported Atheros 5424/2424 and CPU speedstep n o kern/119225 net [wi] 7.0-RC1 no carrier with Prism 2.5 wifi card [regr o bin/118987 net ifconfig(8): ifconfig -l (address_family) does not wor o kern/118880 net [ip6] IP_RECVDSTADDR & IP_SENDSRCADDR not implemented a kern/118879 net [bge] [patch] bge has checksum problems on the 5703 ch o kern/118727 net [netgraph] [patch] [request] add new ng_pf module o kern/117448 net [carp] 6.2 kernel crash [regression] o kern/117423 net [vlan] Duplicate IP on different interfaces o bin/117339 net [patch] route(8): loading routing management commands o kern/117271 net [tap] OpenVPN TAP uses 99% CPU on releng_6 when if_tap o kern/117043 net [em] Intel PWLA8492MT Dual-Port Network adapter EEPROM o kern/116837 net [tun] [panic] [patch] ifconfig tunX destroy: panic o kern/116747 net [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile o bin/116643 net [patch] [request] fstat(1): add INET/INET6 socket deta o kern/116328 net [bge]: Solid hang with bge interface o kern/116185 net [iwi] if_iwi driver leads system to reboot o kern/116077 net [ip] [patch] 6.2-STABLE panic during use of multi-cast o kern/115239 net [ipnat] panic with 'kmem_map too small' using ipnat o kern/114915 net [patch] [pcn] pcn (sys/pci/if_pcn.c) ethernet driver f o kern/114839 net [fxp] fxp looses ability to speak with traffic o kern/114714 net [gre][patch] gre(4) is not MPSAFE and does not support o kern/113842 net [ip6] PF_INET6 proto domain state can't be cleared wit o kern/112722 net [udp] IP v4 udp fragmented packet reject o kern/112686 net [patm] patm driver freezes System (FreeBSD 6.2-p4) i38 o bin/112557 net [patch] ppp(8) lock file should not use symlink name o kern/112528 net [nfs] NFS over TCP under load hangs with "impossible p o kern/109733 net [bge] bge link state issues [regression] o kern/109470 net [wi] Orinoco Classic Gold PC Card Can't Channel Hop o kern/109308 net [pppd] [panic] Multiple panics kernel ppp suspected [r o bin/108895 net pppd(8): PPPoE dead connections on 6.2 [regression] o kern/108542 net [bce]: Huge network latencies with 6.2-RELEASE / STABL o kern/107944 net [wi] [patch] Forget to unlock mutex-locks o conf/107035 net [patch] bridge interface given in rc.conf not taking a o kern/106438 net [ipf] ipfilter: keep state does not seem to allow repl o kern/106316 net [dummynet] dummynet with multipass ipfw drops packets s kern/105943 net Network stack may modify read-only mbuf chain copies o bin/105925 net problems with ifconfig(8) and vlan(4) [regression] o conf/102502 net [patch] ifconfig name does't rename netgraph node in n o kern/102035 net [plip] plip networking disables parallel port printing o kern/101948 net [ipf] [panic] Kernel Panic Trap No 12 Page Fault - cau o kern/100519 net [netisr] suggestion to fix suboptimal network polling o kern/98978 net [ipf] [patch] ipfilter drops OOW packets under 6.1-Rel o kern/95288 net [pppd] [tty] [panic] if_ppp panic in sys/kern/tty_subr o kern/95277 net [netinet] [patch] IP Encapsulation mask_match() return o kern/95267 net packet drops periodically appear o kern/93378 net [tcp] Slow data transfer in Postfix and Cyrus IMAP (wo f kern/92552 net A serious bug in most network drivers from 5.X to 6.X o kern/92090 net [bge] bge0: watchdog timeout -- resetting s kern/91777 net [ipf] [patch] wrong behaviour with skip rule inside an o kern/91594 net [em] FreeBSD > 5.4 w/ACPI fails to detect Intel Pro/10 o kern/87521 net [ipf] [panic] using ipfilter "auth" keyword leads to k s kern/86920 net [ndis] ifconfig: SIOCS80211: Invalid argument [regress o kern/86103 net [ipf] Illegal NAT Traversal in IPFilter s kern/81147 net [net] [patch] em0 reinitialization while adding aliase o kern/79895 net [ipf] 5.4-RC2 breaks ipfilter NAT when using netgraph o bin/79228 net [patch] extend arp(8) to be able to create blackhole r o kern/78090 net [ipf] ipf filtering on bridged packets doesn't work if p kern/77913 net [wi] [patch] Add the APDL-325 WLAN pccard to wi(4) o kern/77273 net [ipf] ipfilter breaks ipv6 statefull filtering on 5.3 s kern/77195 net [ipf] [patch] ipfilter ioctl SIOCGNATL does not match o kern/70904 net [ipf] ipfilter ipnat problem with h323 proxy support o kern/64556 net [sis] if_sis short cable fix problems with NetGear FA3 s kern/60293 net FreeBSD arp poison patch o kern/54383 net [nfs] [patch] NFS root configurations without dynamic s bin/41647 net ifconfig(8) doesn't accept lladdr along with inet addr s kern/39937 net ipstealth issue a kern/38554 net [patch] changing interface ipaddress doesn't seem to w o kern/35442 net [sis] [patch] Problem transmitting runts in if_sis dri o kern/34665 net [ipf] [hang] ipfilter rcmd proxy "hangs". o kern/27474 net [ipf] [ppp] Interactive use of user PPP and ipfilter c o conf/23063 net [PATCH] for static ARP tables in rc.network 188 problems total. From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 05:26:54 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2ADC5106567C for ; Mon, 27 Oct 2008 05:26:54 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from n54.bullet.mail.sp1.yahoo.com (n54.bullet.mail.sp1.yahoo.com [98.136.44.32]) by mx1.freebsd.org (Postfix) with SMTP id 0C0078FC18 for ; Mon, 27 Oct 2008 05:26:54 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from [216.252.122.218] by n54.bullet.mail.sp1.yahoo.com with NNFMP; 27 Oct 2008 05:14:07 -0000 Received: from [69.147.65.167] by t3.bullet.sp1.yahoo.com with NNFMP; 27 Oct 2008 05:14:07 -0000 Received: from [127.0.0.1] by omp502.mail.sp1.yahoo.com with NNFMP; 27 Oct 2008 05:14:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 479234.18886.bm@omp502.mail.sp1.yahoo.com Received: (qmail 24366 invoked by uid 60001); 27 Oct 2008 05:14:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=PBq0/KWcZHQ2rHnf08iLQlauKzvyorK0B/+O3z53bRqrQ42CgPI8RbYUVTlL3UrOpEMijg0S/w+BQfFugDuRRTPV+7QYg6Civl39LnHmI7Vhow9nDDOKT9WsjVCC6TUG5ayfIeNurIVV//7ml2pjCtFOP6ko6FtS1wAVnKBJRgo=; X-YMail-OSG: moARDaoVM1nv.UiUyh48tD6SFOuFmKGOrGpKnXuDVjc0Wl_MUNmn7h8uHlexHHJWgfbK7awjRyVFQ_cvzbt6NP3MZVzy5hjUTI0_pZeU4sqzQXS7HvgqOktFo3dOytPO8nzg4xXZszlBiLiqLBjEjfshTPQpzVuvOBFsJxR9__8zG7wtHiqewct3Srw- Received: from [136.186.1.189] by web45201.mail.sp1.yahoo.com via HTTP; Sun, 26 Oct 2008 22:14:07 PDT X-Mailer: YahooMailRC/1155.11 YahooMailWebService/0.7.247.3 Date: Sun, 26 Oct 2008 22:14:07 -0700 (PDT) From: Roberto de Sousa To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-ID: <184591.23555.qm@web45201.mail.sp1.yahoo.com> X-Mailman-Approved-At: Mon, 27 Oct 2008 11:21:50 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 05:26:54 -0000 Hello all,=0ACan someone direct me where to go to find out example of how t= o create a script using nsupdate from CLI to add host to forward and revers= ing zone of DNS?=0AI am new to Unix and just installed my freeBSD box which= running apache and BIND last month.=0A=0AAny advise or information will be= highly appreciated.=0A=0AThanks all.=0A=0ARoberto=0A=0A =0Abuka wainhira l= a hatene, buka atu hatene liu tan =0A=0Aabracos =0A=0A=0A=0A Make the = switch to the world's best email. Get Yahoo!7 Mail! http://au.yahoo.com= /y7mail From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 08:24:25 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51A841065699 for ; Mon, 27 Oct 2008 08:24:25 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1578FC0C for ; Mon, 27 Oct 2008 08:24:23 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 226200652; Mon, 27 Oct 2008 10:24:23 +0200 Message-ID: <49057AB6.7040701@FreeBSD.org> Date: Mon, 27 Oct 2008 10:24:22 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Ganbold References: <49053DC1.8060101@micom.mng.net> In-Reply-To: <49053DC1.8060101@micom.mng.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 27 Oct 2008 11:22:03 +0000 Cc: "freebsd-net@freebsd.org" Subject: Re: multiple IP pools in mpd5 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 08:24:25 -0000 Hi. Ganbold wrote: > Is it possible to specify multiple IP pools in mpd5? Yes. It supports both multiple pools and multiple subnets in a pool. > Something like: > > set ippool add pool1 102.179.16.20 102.179.17.254 > set ippool add pool1 102.179.17.1 102.179.17.254 > > set ipcp ranges 102.179.16.13/32 ippool pool1 > > Or: > > set ippool add pool1 102.179.16.20 102.179.17.254 > set ippool add pool2 102.179.17.1 102.179.17.254 > > set ipcp ranges 102.179.16.13/32 ippool pool1 pool2 > > Which one is correct syntax? First one. But you have made mistake in address ranges as they are overlapping. Probably you have meant: set ippool add pool1 102.179.16.20 102.179.16.254 set ippool add pool1 102.179.17.1 102.179.17.254 set ipcp ranges 102.179.16.13/32 ippool pool1 -- Alexander Motin From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 11:27:37 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D6FF1065684; Mon, 27 Oct 2008 11:27:37 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (stalker.stu.cn.ua [195.69.76.130]) by mx1.freebsd.org (Postfix) with ESMTP id 66F238FC25; Mon, 27 Oct 2008 11:27:23 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (localhost [127.0.0.1]) by stu.cn.ua (Postfix) with ESMTP id 13632247E13; Sun, 26 Oct 2008 16:21:46 +0200 (EET) Received: by stu.cn.ua (Postfix, from userid 58) id ECDBB247E12; Sun, 26 Oct 2008 16:21:45 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on stalker.stu.cn.ua X-Spam-Level: X-Spam-Status: No, score=-106.6 required=4.5 tests=BAYES_00, RCVD_IN_DNSWL_MED, SPF_PASS,USER_IN_WHITELIST autolearn=ham version=3.2.5 Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by stu.cn.ua (Postfix) with ESMTP id 0B0932476F0 for ; Sun, 26 Oct 2008 16:21:41 +0200 (EET) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 767CA1643F2; Sun, 26 Oct 2008 14:18:48 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id F1185106566B; Sun, 26 Oct 2008 14:18:46 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 495F0106566B for ; Sun, 26 Oct 2008 14:18:37 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by mx1.freebsd.org (Postfix) with ESMTP id EA8D38FC1F for ; Sun, 26 Oct 2008 14:18:36 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so259897wra.27 for ; Sun, 26 Oct 2008 07:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=DwBOT4irXlYv3l5hrjDn2TQ6i5yKhEwyGLGkI3VXUjQ=; b=vxhlFXHAv9YGeefe7rVQtII22iUP/rrjOLC1S+1HDrwMhycCfJ3seLoTMv7VOLikKd V3AJnx+2EVKNp0uFlvnrTxvMwa1c+9y78fuVVZe5yEDML/6vDbwws5Oa0GPqcFL6P76e OYuWv8Sf8eGEh3FXzl2+HZPj3oBzZ6x1w3nf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=u0e/CzGtZRzIKJ+av02lrQT8Ve5GnUCq8uaRqT0tCu4b3g+RsrZhk1hU9lijNAa8Fj uhu1bcqb8M78GU3CKrhv5rbQKOhEz+GgyEQpN7R0iR/em6Mx11tWRyNisamW2VtlKH2y 0uhH3VWiwxU6RLxuN6Qiyc03LKz6TdWSNowoo= Received: by 10.65.234.18 with SMTP id l18mr5080202qbr.1.1225030715500; Sun, 26 Oct 2008 07:18:35 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Sun, 26 Oct 2008 07:18:35 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 13:18:35 -0100 From: "Eduardo Meyer" To: freebsd-net@freebsd.org, freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org X-Virus-Scanned: ClamAV using ClamSMTP on stalker.stu.cn.ua Cc: Subject: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 11:27:37 -0000 Hello, I want to start a migration education to IPv6, setting up my internal network to be 100% ipv6-only. I dont want it to be dual stacked, because I intend to force my team to perform only IPv6 related tools on the internal network. However, when performing internet activity like, reading e-mail or browsing the web, its impossible to avoid IPv4 today. I want them to be able to reach IPv4 network (internet) transparently. When DNS resolve to IPv4, they will ask the gateway (ipv6, dual stacked), who will put their v6 address in the v4 network. How can I accomplish that? Is NAT-PT the only way? If so, how can I get NAT-PT on FreeBSD? Your opinion: do you think this approach can be used for end users? I mean, someone with windows vista and teredo, is already getting IPv6 address since my FreeBSD is advertising it. However they are dual stacked. I want people to be v6-only and still can visit v4 networks transparently, without technical knowledge (say, my girlfriend who is not a geek). I guess this is a migration/education strategy, which I intend to deploy, but right now I am only studying. Will faith(4) do this for me? -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 11:53:06 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2DFF106566C; Mon, 27 Oct 2008 11:53:06 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (stalker.stu.cn.ua [195.69.76.130]) by mx1.freebsd.org (Postfix) with ESMTP id 74D6D8FC12; Mon, 27 Oct 2008 11:53:06 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (localhost [127.0.0.1]) by stu.cn.ua (Postfix) with ESMTP id 50EFE248F36; Sun, 26 Oct 2008 23:48:02 +0200 (EET) Received: by stu.cn.ua (Postfix, from userid 58) id 37023248F20; Sun, 26 Oct 2008 23:48:02 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on stalker.stu.cn.ua X-Spam-Level: X-Spam-Status: No, score=-106.6 required=4.5 tests=BAYES_00, RCVD_IN_DNSWL_MED, SPF_PASS,USER_IN_WHITELIST autolearn=ham version=3.2.5 Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by stu.cn.ua (Postfix) with ESMTP id ADBC0248EC6 for ; Sun, 26 Oct 2008 23:47:59 +0200 (EET) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 2BBF8158F8F; Sun, 26 Oct 2008 21:47:23 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7F442106574D; Sun, 26 Oct 2008 21:47:20 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D176106566B; Sun, 26 Oct 2008 21:47:05 +0000 (UTC) (envelope-from randy@psg.com) Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:1::36]) by mx1.freebsd.org (Postfix) with ESMTP id 1FDBB8FC1C; Sun, 26 Oct 2008 21:47:05 +0000 (UTC) (envelope-from randy@psg.com) Received: from [213.42.94.180] (helo=rmac.psg.com) by ran.psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KuDRu-000P1S-SL; Sun, 26 Oct 2008 21:47:03 +0000 Message-ID: <4904E553.60806@psg.com> Date: Mon, 27 Oct 2008 01:46:59 +0400 From: Randy Bush User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Eduardo Meyer References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org X-Virus-Scanned: ClamAV using ClamSMTP on stalker.stu.cn.ua Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 11:53:07 -0000 > I want to start a migration education to IPv6, setting up my internal > network to be 100% ipv6-only. I dont want it to be dual stacked, > because I intend to force my team to perform only IPv6 related tools > on the internal network. However, when performing internet activity > like, reading e-mail or browsing the web, its impossible to avoid IPv4 > today. sigh, for linux, http://code.google.com/p/stubl/ randy _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 12:08:07 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0722B1065682; Mon, 27 Oct 2008 12:08:07 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (stalker.stu.cn.ua [195.69.76.130]) by mx1.freebsd.org (Postfix) with ESMTP id 384A28FC1F; Mon, 27 Oct 2008 12:08:06 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (localhost [127.0.0.1]) by stu.cn.ua (Postfix) with ESMTP id BBD9F247BDB; Sun, 26 Oct 2008 18:18:39 +0200 (EET) Received: by stu.cn.ua (Postfix, from userid 58) id A1E74247BCE; Sun, 26 Oct 2008 18:18:39 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on stalker.stu.cn.ua X-Spam-Level: X-Spam-Status: No, score=-106.6 required=4.5 tests=BAYES_00, RCVD_IN_DNSWL_MED, SPF_PASS,USER_IN_WHITELIST autolearn=ham version=3.2.5 Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by stu.cn.ua (Postfix) with ESMTP id 8A562247C3E for ; Sun, 26 Oct 2008 18:18:35 +0200 (EET) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 55C2F151D8A; Sun, 26 Oct 2008 16:17:46 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id D9DA11065749; Sun, 26 Oct 2008 16:17:42 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C879F106569B; Sun, 26 Oct 2008 16:17:31 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal2.es.net [198.128.3.206]) by mx1.freebsd.org (Postfix) with ESMTP id A78478FC18; Sun, 26 Oct 2008 16:17:31 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id GAG73158; Sun, 26 Oct 2008 09:06:58 -0700 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 7ED2345048; Sun, 26 Oct 2008 09:06:58 -0700 (PDT) To: "Eduardo Meyer" In-Reply-To: Your message of "Sun, 26 Oct 2008 13:18:35 -0100." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1225037218_63075P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sun, 26 Oct 2008 09:06:58 -0700 From: "Kevin Oberman" Message-Id: <20081026160658.7ED2345048@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ; ; ; X-Sender: X-To_Name: Eduardo Meyer X-To_Domain: gmail.com X-To: "Eduardo Meyer" X-To_Email: dudu.meyer@gmail.com X-To_Alias: dudu.meyer X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org X-Virus-Scanned: ClamAV using ClamSMTP on stalker.stu.cn.ua Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: NAT-PT on FreeBSD (or something else)? X-BeenThere: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 12:08:07 -0000 --==_Exmh_1225037218_63075P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Sun, 26 Oct 2008 13:18:35 -0100 > From: "Eduardo Meyer" > Sender: owner-freebsd-net@freebsd.org > > Hello, > > I want to start a migration education to IPv6, setting up my internal > network to be 100% ipv6-only. I dont want it to be dual stacked, > because I intend to force my team to perform only IPv6 related tools > on the internal network. However, when performing internet activity > like, reading e-mail or browsing the web, its impossible to avoid IPv4 > today. > > I want them to be able to reach IPv4 network (internet) transparently. > When DNS resolve to IPv4, they will ask the gateway (ipv6, dual > stacked), who will put their v6 address in the v4 network. > > How can I accomplish that? Is NAT-PT the only way? If so, how can I > get NAT-PT on FreeBSD? > > Your opinion: do you think this approach can be used for end users? I > mean, someone with windows vista and teredo, is already getting IPv6 > address since my FreeBSD is advertising it. However they are dual > stacked. I want people to be v6-only and still can visit v4 networks > transparently, without technical knowledge (say, my girlfriend who is > not a geek). > > I guess this is a migration/education strategy, which I intend to > deploy, but right now I am only studying. > > Will faith(4) do this for me? I suspect that this is simply not quite possible today, although it's close. The BEHAVE IETF working group is the place to look for the latest information on this area. I have tried a couple of solutions. The one that worked best was IVI, developed in China. It generally worked well and was fairly fast. It's big problem is embedded IPv4 addresses in things like JavaScript. This is a workable problem, but it has not been worked to this point. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1225037218_63075P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFJBJWikn3rs5h7N1ERAjPQAJ96WoYYLSQ7l7OKmX02Fzhqn4z2MACfeUh8 Ibhxt6IY+c1uMVuOP7YH1DA= =6OI/ -----END PGP SIGNATURE----- --==_Exmh_1225037218_63075P-- From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 13:35:18 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3A0A1065676 for ; Mon, 27 Oct 2008 13:35:18 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (unknown [IPv6:2001:41d0:1:2ad2:0:1::]) by mx1.freebsd.org (Postfix) with ESMTP id 566FF8FC1B for ; Mon, 27 Oct 2008 13:35:18 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:1:2ad2:1:ffff::]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id CAB86E041F; Mon, 27 Oct 2008 14:35:16 +0100 (CET) Received: from morzine.restart.bel (morzine.restart.bel [IPv6:2001:41d0:1:2ad2:1:2::]) (authenticated bits=0) by restart.be (8.14.3/8.14.3) with ESMTP id m9RDZ8xZ097013; Mon, 27 Oct 2008 14:35:08 +0100 (CET) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1225114516; bh=4PMHm6qyaOe1DC0KuRIEr62GxqfMAUf8oWeo0nM uvEk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=UUbxSBIXk56a ASJ3H/8L4Aee+W2bQs/O1OIwzKBrnVnGZV2qk2JD4x8lWmVd3Isf8rtEWOarim6oTX6 rpISz6w== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type: content-transfer-encoding:x-scanned-by; b=x0ds+G543FzrQRcxHdMuNtOGMTphLvHgg86N1wyyK2OZzbETLL8MM/slNddgO4yZX ggMYqrAflwCQTmjW5KIDg== Message-ID: <4905C38C.1090704@restart.be> Date: Mon, 27 Oct 2008 14:35:08 +0100 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.17 (X11/20081004) MIME-Version: 1.0 To: Roberto de Sousa References: <184591.23555.qm@web45201.mail.sp1.yahoo.com> In-Reply-To: <184591.23555.qm@web45201.mail.sp1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on IPv6:2001:41d0:1:2ad2:1:1:: Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 13:35:18 -0000 Roberto de Sousa wrote: > Hello all, > Can someone direct me where to go to find out example of how to create a script using nsupdate from CLI to add host to forward and reversing zone of DNS? > I am new to Unix and just installed my freeBSD box which running apache and BIND last month. > > Any advise or information will be highly appreciated. In your named.conf you have eg: zone "example.com" { type master; file "dynamic/db.example.com"; allow-update { key host1.example.com.; }; }; key "host1.example.com." { algorithm hmac-md5; secret "XXXX...XXXX=="; }; and on host1 you use this script: #!/bin/sh NSSERVER="xxx.xxx.xxx.xxx" MYNAME=host1.example.com MYADDR=$1 /usr/bin/nsupdate -y host1.example.com.:XXXX...XXXX== \ 1>/dev/null 2>&1 < > Thanks all. > > Roberto > > > buka wainhira la hatene, buka atu hatene liu tan > > abracos > > > > Make the switch to the world's best email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 16:30:44 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A55F41065671; Mon, 27 Oct 2008 16:30:44 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7C86E8FC17; Mon, 27 Oct 2008 16:30:44 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9RGUiHf081788; Mon, 27 Oct 2008 16:30:44 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9RGUiCY081784; Mon, 27 Oct 2008 16:30:44 GMT (envelope-from linimon) Date: Mon, 27 Oct 2008 16:30:44 GMT Message-Id: <200810271630.m9RGUiCY081784@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/128401: [dummynet] dummynet does not shape traffic with fast IO enabled X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 16:30:44 -0000 Old Synopsis: dummynet does not shape traffic with fast io enabled New Synopsis: [dummynet] dummynet does not shape traffic with fast IO enabled Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 27 16:29:39 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=128401 From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 18:57:51 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C40931065699; Mon, 27 Oct 2008 18:57:51 +0000 (UTC) (envelope-from oleg@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AA148FC3E; Mon, 27 Oct 2008 18:57:51 +0000 (UTC) (envelope-from oleg@FreeBSD.org) Received: from freefall.freebsd.org (oleg@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9RIvpeK095596; Mon, 27 Oct 2008 18:57:51 GMT (envelope-from oleg@freefall.freebsd.org) Received: (from oleg@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9RIvpYW095592; Mon, 27 Oct 2008 18:57:51 GMT (envelope-from oleg) Date: Mon, 27 Oct 2008 18:57:51 GMT Message-Id: <200810271857.m9RIvpYW095592@freefall.freebsd.org> To: oleg@FreeBSD.org, freebsd-net@FreeBSD.org, oleg@FreeBSD.org From: oleg@FreeBSD.org Cc: Subject: Re: kern/128401: [dummynet] [patch] dummynet does not shape traffic with fast IO enabled X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 18:57:51 -0000 Synopsis: [dummynet] [patch] dummynet does not shape traffic with fast IO enabled Responsible-Changed-From-To: freebsd-net->oleg Responsible-Changed-By: oleg Responsible-Changed-When: Mon Oct 27 18:56:54 UTC 2008 Responsible-Changed-Why: i'll look at it. http://www.freebsd.org/cgi/query-pr.cgi?pr=128401 From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 21:53:40 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4357A1065672 for ; Mon, 27 Oct 2008 21:53:40 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from mellanox.co.il (mail.mellanox.co.il [194.90.237.43]) by mx1.freebsd.org (Postfix) with ESMTP id 4F28F8FC0C for ; Mon, 27 Oct 2008 21:53:38 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from Internal Mail-Server by MTLPINE1 (envelope-from eitans@mellanox.co.il) with SMTP; 27 Oct 2008 23:53:35 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Mon, 27 Oct 2008 23:53:26 +0200 Message-ID: <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> In-Reply-To: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: It seems that FreeBSD-7.0 does not use the available MTU Thread-Index: Ack3e1EQIZy6XDDeS5yFRz46zTosegBAp/1w References: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> From: "Eitan Shefi" To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Eitan Shefi Subject: It seems that FreeBSD-7.0 does not use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 21:53:40 -0000 Hi, =20 I am using 2 hosts with FreeBSD-7.0 connected directly. When I change the MTU to a value greater then 1500, for example 3000, and then send "ping" with message size 2500, from one host to the other, the other host gets more then one ICMP packet, even thaw the message that was send is match smaller then the MTU. =20 I tried to run this test using a different NIC, but I got the same behavior. =20 I run: 1. On both hosts: ifconfig mtnic0 mtu 3000 2. Than on one host I run: tcpdump -i mtnic0 icmp 3. And on the other host I run: ping -s 2500 -c 1 OTHER_HOST_IP (ping to "mtnic0" on the other host) =20 On the receiving side I get the output: =20 [root@sw260 ~]# tcpdump -i mtnic0 icmp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on mtnic0, link-type EN10MB (Ethernet), capture size 96 bytes 13:12:45.904454 IP 11.4.12.5 > 11.4.12.6: ICMP echo request, id 22550, seq 0, length 1480 13:12:45.904463 IP 11.4.12.5 > 11.4.12.6: icmp 13:12:45.904477 IP 11.4.12.6 > 11.4.12.5: ICMP echo reply, id 22550, seq 0, length 1480 13:12:45.904480 IP 11.4.12.6 > 11.4.12.5: icmp =20 I will be happy to get any advice on how to resolve this issue. . =20 =20 Thanks, =20 Eitan Shefi From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 21:57:34 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9CAB1065679; Mon, 27 Oct 2008 21:57:34 +0000 (UTC) (envelope-from vwe@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7F83C8FC13; Mon, 27 Oct 2008 21:57:34 +0000 (UTC) (envelope-from vwe@FreeBSD.org) Received: from freefall.freebsd.org (vwe@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9RLvYLQ033704; Mon, 27 Oct 2008 21:57:34 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9RLvXtX033700; Mon, 27 Oct 2008 21:57:33 GMT (envelope-from vwe) Date: Mon, 27 Oct 2008 21:57:33 GMT Message-Id: <200810272157.m9RLvXtX033700@freefall.freebsd.org> To: vanhu_bsd@zeninc.net, vwe@FreeBSD.org, freebsd-net@FreeBSD.org, vwe@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: bin/124004: ifconfig(8): Cannot assign both an IP and a MAC address to a bridge in one command X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 21:57:34 -0000 Synopsis: ifconfig(8): Cannot assign both an IP and a MAC address to a bridge in one command State-Changed-From-To: open->closed State-Changed-By: vwe State-Changed-When: Mon Oct 27 21:55:23 UTC 2008 State-Changed-Why: DUP of bin/123633 this issue is not just related to bridge interfaces - this seems to be an issue with the ifconfig(8) cli. Yvan, if you need to add additional information, please file a followup to bin/123633. Thanks! Responsible-Changed-From-To: freebsd-net->vwe Responsible-Changed-By: vwe Responsible-Changed-When: Mon Oct 27 21:55:23 UTC 2008 Responsible-Changed-Why: track http://www.freebsd.org/cgi/query-pr.cgi?pr=124004 From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 23:02:22 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA300106566B for ; Mon, 27 Oct 2008 23:02:22 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout012.mac.com (asmtpout012.mac.com [17.148.16.87]) by mx1.freebsd.org (Postfix) with ESMTP id B620B8FC18 for ; Mon, 27 Oct 2008 23:02:22 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp012.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K9F00J2F3VV5R50@asmtp012.mac.com> for freebsd-net@freebsd.org; Mon, 27 Oct 2008 15:02:19 -0700 (PDT) Message-id: <1AB022D4-5147-4837-82CC-99270FF45AE5@mac.com> From: Chuck Swiger To: Eitan Shefi In-reply-to: <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> Date: Mon, 27 Oct 2008 15:02:18 -0700 References: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-net@freebsd.org Subject: Re: It seems that FreeBSD-7.0 does not use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 23:02:22 -0000 On Oct 27, 2008, at 2:53 PM, Eitan Shefi wrote: > When I change the MTU to a value greater then 1500, for example 3000, > and then send "ping" with message size 2500, from one host to the > other, > the other host gets more then one ICMP packet, even thaw the message > that was send is match smaller then the MTU. > > I tried to run this test using a different NIC, but I got the same > behavior. You obscured the details of which NICs you actually used, so a guess would be that your hardware doesn't support jumbo frames. If your NIC isn't gigabit-speed capable, this is probably expected-- only fairly new NICs like em/bce/bge/msk have the capability. Regards, -- -Chuck From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 23:04:30 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6110A106569D for ; Mon, 27 Oct 2008 23:04:30 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 30EC78FC0C for ; Mon, 27 Oct 2008 23:04:30 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id AA8D411A2D22 for ; Mon, 27 Oct 2008 19:46:06 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21584-08 for ; Mon, 27 Oct 2008 19:46:05 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id E2EC911A2CA6 for ; Mon, 27 Oct 2008 19:46:05 -0300 (ADT) Date: Mon, 27 Oct 2008 19:46:02 -0300 From: "Marc G. Fournier" To: freebsd-net@freebsd.org Message-ID: X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: tap+bridge -> ethernet with an alias ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 23:04:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On my desktop here, I have a qemu-img of Win XP that is using bridging to connect to the Internet ... everything works great, even have remote desktop working so that I can login from another windows box into the VM ... and very responsive ... ... but this is on a private network where the ethernet doesn't have any aliases attached to it ... I've tried uploading the image (after changing the IP) to one of my servers with a public interface on it, but now can't seem to get networking working ... my ifconfig -a looks like: bge0: flags=8943 metric 0 mtu 1500 options=98 ether 00:14:c2:3f:2e:86 inet xxx.xxx.xxx.xxx netmask 0xffffff00 broadcast xxx.xxx.xxx.255 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet xxx.xxx.xxx.xxx netmask 0xffffffff broadcast xxx.xxx.xxx.xxx media: Ethernet 100baseTX status: active bge1: flags=8802 metric 0 mtu 1500 options=9b ether 00:14:c2:3f:2e:85 media: Ethernet autoselect (none) status: no carrier lo0: flags=8049 metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff000000 bridge0: flags=8843 metric 0 mtu 1500 ether ce:44:c7:1b:47:40 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: bge0 flags=143 ifmaxaddr 0 port 1 priority 128 path cost 200000 member: tap0 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 tap0: flags=8942 metric 0 mtu 1500 ether 00:bd:96:ae:67:00 the 192.168.1.x is used for 'internal routing' ... when I startup qemu, I use: qemu winxp.img -net nic -net tap -vnc :1 and I can connect via VNC, but the IP assigned to the image isn't pingable, like it is on my desktop ... Is there something with 'pre-aliased' interfaces that can't be used with a bridge/tap device? Or have I just missed something? - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkGRKoACgkQ4QvfyHIvDvM2MQCaAoa8mt9L+80o+IQiooQ0QjDA X08An1/mJwduTU0uH7sDlRFPp06Bs2cN =2c6c -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 23:14:19 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AA461065679 for ; Mon, 27 Oct 2008 23:14:19 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from n67.bullet.mail.sp1.yahoo.com (n67.bullet.mail.sp1.yahoo.com [98.136.44.47]) by mx1.freebsd.org (Postfix) with SMTP id 294188FC13 for ; Mon, 27 Oct 2008 23:14:19 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from [216.252.122.217] by n67.bullet.mail.sp1.yahoo.com with NNFMP; 27 Oct 2008 23:14:19 -0000 Received: from [69.147.65.158] by t2.bullet.sp1.yahoo.com with NNFMP; 27 Oct 2008 23:14:18 -0000 Received: from [127.0.0.1] by omp406.mail.sp1.yahoo.com with NNFMP; 27 Oct 2008 23:14:18 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 951089.36174.bm@omp406.mail.sp1.yahoo.com Received: (qmail 95694 invoked by uid 60001); 27 Oct 2008 23:14:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=KSdd2QzrNZ3HyCqVP1roxPE5lFZqNalWHgfUlUCSOaj7nRiQnp4+B9peOpUBdnBD2rhuLJvn/5VtgmlQMeVYh1aDIHfpnTmmE/xB+ZqF1NJ/M4c4RZGgPHxjreuZdWVL0VMo3nhTusrtgijqvQHq07cWkizSaxpIg7p7ReD6qLQ=; X-YMail-OSG: PzY2m6gVM1kz18BohqYAokfHeFxrm.F92QkV3F0hXnnoGRPgzZBmxP6tu6nd8wegndhu8buqceE0mReXYyHo3UOto4IAGoO3CFaQd3IPlwKSbj2UzuvsRVfXMnAFsWwNzuX0DaUbHrCugfo9BXQUy7nLAUxQe3lOgj9MiKQDPsCqQGCNksoUEAptXsQ- Received: from [122.109.214.56] by web45207.mail.sp1.yahoo.com via HTTP; Mon, 27 Oct 2008 16:14:18 PDT X-Mailer: YahooMailRC/1155.11 YahooMailWebService/0.7.247.3 Date: Mon, 27 Oct 2008 16:14:18 -0700 (PDT) From: Roberto de Sousa To: Henri Hennebert MIME-Version: 1.0 Message-ID: <723811.95360.qm@web45207.mail.sp1.yahoo.com> X-Mailman-Approved-At: Mon, 27 Oct 2008 23:16:43 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 23:14:19 -0000 Hello Henri,=0AThank you for your kindness to help me on this.. I have gene= rated the key and and edit my named.conf as per your instruction. I have al= so tried your script which work great. What i would like to find out more i= s that how to modify this script so that it provides flexibility without ha= ving to specify the host in the script? =0Awhat i mean is that.. i could se= lect add or delete option from CLI and able to add any host to forward & Re= versing Zone of my DNS from my freeBSD CLI?=0A=0AThanks again.=0A=0A=0ARega= rds,=0A=0ARoberto=0A=0A =0Abuka wainhira la hatene, buka atu hatene liu tan= =0A=0Aabracos =0A=0A=0A=0A=0A________________________________=0AFrom: Henr= i Hennebert =0ATo: Roberto de Sousa = =0ACc: freebsd-net@freebsd.org=0ASent: Tuesday, 28 October, 2008 12:35:08 A= M=0ASubject: Re: NSupdate from CLI=0A=0ARoberto de Sousa wrote:=0A> Hello a= ll,=0A> Can someone direct me where to go to find out example of how to cre= ate a script using nsupdate from CLI to add host to forward and reversing z= one of DNS?=0A> I am new to Unix and just installed my freeBSD box which ru= nning apache and BIND last month.=0A> =0A> Any advise or information will b= e highly appreciated.=0A=0AIn your named.conf you have eg:=0A=0A zo= ne "example.com" {=0A type master;=0A file = "dynamic/db.example.com";=0A allow-update { key host1.examp= le.com.; };=0A };=0A key "host1.example.com." {=0A = algorithm hmac-md5;=0A secret "XXXX...XXXX=3D=3D";= =0A };=0A=0Aand on host1 you use this script:=0A=0A#!/bin/sh=0ANSSE= RVER=3D"xxx.xxx.xxx.xxx"=0AMYNAME=3Dhost1.example.com=0AMYADDR=3D$1=0A/usr/= bin/nsupdate -y host1.example.com.:XXXX...XXXX=3D=3D \=0A 1>/dev/null 2= >&1 < =0A> Thanks all.=0A> =0A> Roberto=0A> = =0A> =0A> buka wainhira la hatene, buka atu hatene liu tan =0A> =0A> abrac= os =0A> =0A> =0A> =0A> Make the switch to the world's best email. Get= Yahoo!7 Mail! http://au.yahoo.com/y7mail=0A> _____________________________= __________________=0A> freebsd-net@freebsd.org mailing list=0A> http://list= s.freebsd.org/mailman/listinfo/freebsd-net=0A> To unsubscribe, send any mai= l to "freebsd-net-unsubscribe@freebsd.org"=0A=0A___________________________= ____________________=0Afreebsd-net@freebsd.org mailing list=0Ahttp://lists.= freebsd.org/mailman/listinfo/freebsd-net=0ATo unsubscribe, send any mail to= "freebsd-net-unsubscribe@freebsd.org"=0A=0A=0A=0A Make the switch to = the world's best email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 23:16:43 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E8E6106569F for ; Mon, 27 Oct 2008 23:16:43 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 29C358FC13 for ; Mon, 27 Oct 2008 23:16:43 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id B902911A2D25 for ; Mon, 27 Oct 2008 20:16:42 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 29145-10; Mon, 27 Oct 2008 20:16:39 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id 495D111A2D22; Mon, 27 Oct 2008 20:16:39 -0300 (ADT) Date: Mon, 27 Oct 2008 20:16:35 -0300 From: "Marc G. Fournier" To: "Marc G. Fournier" , freebsd-net@freebsd.org Message-ID: <7962F22A78B7483E6667733E@ganymede.hub.org> In-Reply-To: References: X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: tap+bridge -> ethernet with an alias ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 23:16:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 As an appendum, I have the following kernel modules loaded: 4 1 0xffffffffaf49c000 5066 if_bridge.ko 5 1 0xffffffffaf483000 35c5 bridgestp.ko 6 1 0xffffffffaf493000 2506 if_tap.ko same as on my desktop ... - --On Monday, October 27, 2008 19:46:02 -0300 "Marc G. Fournier" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On my desktop here, I have a qemu-img of Win XP that is using bridging to > connect to the Internet ... everything works great, even have remote desktop > working so that I can login from another windows box into the VM ... and very > responsive ... > > ... but this is on a private network where the ethernet doesn't have any > aliases attached to it ... > > I've tried uploading the image (after changing the IP) to one of my servers > with a public interface on it, but now can't seem to get networking working > ... > > my ifconfig -a looks like: > > bge0: flags=8943 metric 0 mtu > 1500 > options=98 > ether 00:14:c2:3f:2e:86 > inet xxx.xxx.xxx.xxx netmask 0xffffff00 broadcast xxx.xxx.xxx.255 > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > inet xxx.xxx.xxx.xxx netmask 0xffffffff broadcast xxx.xxx.xxx.xxx > media: Ethernet 100baseTX > status: active > bge1: flags=8802 metric 0 mtu 1500 > options=9b > ether 00:14:c2:3f:2e:85 > media: Ethernet autoselect (none) > status: no carrier > lo0: flags=8049 metric 0 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > bridge0: flags=8843 metric 0 mtu 1500 > ether ce:44:c7:1b:47:40 > 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: bge0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 200000 > member: tap0 flags=143 > ifmaxaddr 0 port 5 priority 128 path cost 2000000 > tap0: flags=8942 metric 0 mtu > 1500 ether 00:bd:96:ae:67:00 > > the 192.168.1.x is used for 'internal routing' ... > > when I startup qemu, I use: > > qemu winxp.img -net nic -net tap -vnc :1 > > and I can connect via VNC, but the IP assigned to the image isn't pingable, > like it is on my desktop ... > > Is there something with 'pre-aliased' interfaces that can't be used with a > bridge/tap device? Or have I just missed something? > > > - -- > Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) > Email . scrappy@hub.org MSN . scrappy@hub.org > Yahoo . yscrappy Skype: hub.org ICQ . 7615664 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (FreeBSD) > > iEYEARECAAYFAkkGRKoACgkQ4QvfyHIvDvM2MQCaAoa8mt9L+80o+IQiooQ0QjDA > X08An1/mJwduTU0uH7sDlRFPp06Bs2cN > =2c6c > -----END PGP SIGNATURE----- > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkGS9MACgkQ4QvfyHIvDvOmOwCeJy6mKN0SOwqEhuwTa0u457/0 wwgAn1sxRa2L3MyVaAF/2WMhFm5hDh5X =DYcR -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 00:09:02 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC1FD106567E for ; Tue, 28 Oct 2008 00:09:02 +0000 (UTC) (envelope-from bh@izb.knu.ac.kr) Received: from pinus.izb.knu.ac.kr (pinus.izb.knu.ac.kr [IPv6:2001:470:1f05:5f6:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id 936BE8FC17 for ; Tue, 28 Oct 2008 00:09:02 +0000 (UTC) (envelope-from bh@izb.knu.ac.kr) Received: by pinus.izb.knu.ac.kr (Postfix, from userid 59) id 3AC8F3EAC; Tue, 28 Oct 2008 09:09:01 +0900 (KST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on pinus.izb.knu.ac.kr X-Spam-Level: X-Spam-Status: No, score=-48.5 required=15.1 tests=DKIM_SIGNED, DKIM_VERIFIED, DNS_FROM_SECURITYSAGE autolearn=disabled version=3.2.3 Received: from pinus.izb.knu.ac.kr (localhost.izb.knu.ac.kr [IPv6:::1]) by pinus.izb.knu.ac.kr (Postfix) with ESMTP id 1BE133EAB; Tue, 28 Oct 2008 09:08:54 +0900 (KST) Comment: DKIM? See http://www.google.com/search?btnI&q=RFC+4871 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=izb.knu.ac.kr; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=s1024; bh=EqHmMduRzKDI3OPZIl1j39PsYBFvQiyTRdGu9g1z5uA=; b=LjqV8CV0fTrr d/q5LmY8HXps0olTo6PCNDW2+emn7MYMU2L4P/hBnq1SavuGJSbneK4cxo+Bdvmd 8pqxqjBdDJW/Ei6k5QzHBHfwHM+HlnFDEppSIaVCqAcdRB8cULOW9+jsN4Nmmprs S0rvSkOLP7I8d5eMA6sH5jSQz2W8wyg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=izb.knu.ac.kr; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=s1024; b=EgoY6 T+OOoAeGiyH3DxiTWd5/UgZc6apG1sk+8GnKdI5cZg1yt2GXyOtyO7NCbd3Ji1ag tyqJY44CA8iEzOmIS1zDC/ojHwUXZYjWO3y0qBjpAZCSZHJEv22bqhcGTlgFDrnU pikO3GJTSn7zGMR3ADtvtKj5vvdmt61xiI8eus= Received: from chrys.izb.knu.ac.kr (chrys.izb.knu.ac.kr [IPv6:2001:470:1f05:5f8:3::1]) by pinus.izb.knu.ac.kr (Postfix) with ESMTP id 9DAA83EA8; Tue, 28 Oct 2008 09:08:53 +0900 (KST) Received: from [118.129.178.7] (unknown [118.129.178.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bh@chrys.izb.knu.ac.kr) by chrys.izb.knu.ac.kr (Postfix) with ESMTP id 26AB91CCF7; Tue, 28 Oct 2008 09:08:51 +0900 (KST) Message-ID: <49065815.1010506@izb.knu.ac.kr> Date: Tue, 28 Oct 2008 09:08:53 +0900 From: Byung-Hee HWANG Organization: InZealBomb User-Agent: Thunderbird 2.0.0.9 (X11/20080213) MIME-Version: 1.0 To: Roberto de Sousa References: <184591.23555.qm@web45201.mail.sp1.yahoo.com> In-Reply-To: <184591.23555.qm@web45201.mail.sp1.yahoo.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=96B196FE; url=http://izb.knu.ac.kr/~bh/bh.0x96B196FE.pubkey.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 00:09:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Roberto de Sousa wrote: > Hello all, > Can someone direct me where to go to find out example of how to create a script using nsupdate from CLI to add host to forward and reversing zone of DNS? > I am new to Unix and just installed my freeBSD box which running apache and BIND last month. > > Any advise or information will be highly appreciated. > > Thanks all. > > Roberto Roberto, this is not what you want really. However i would like to recommend for you. See ;; byunghee -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkkGWBUACgkQsCouaZaxlv5tdwCgnjLg4lmjW++pqbhQDF+tOv1r Nm0AnR3NZg9unwAfxaKCXopNo5V7q5Jg =z4E4 -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 07:53:17 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B80C106567A for ; Tue, 28 Oct 2008 07:53:17 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id AFEE28FC1E for ; Tue, 28 Oct 2008 07:53:16 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=KmFNlDjBfx8dzi+sukz6w+cT55ma1Qsh3z2d5VGU+AEld2atnu1Q9dr/KHaVq57R5xqsOamtHmVCfkBL/0jKCBLoqkJLkg3PF+/025ZEPhIg4nW5tWMhdP17No+LqdlwTEvA5uAzGkRewGv+DwCHQ8BZOop2Ty7LGEmUZp39xBE=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1KujO6-0009m1-Lh; Tue, 28 Oct 2008 10:53:14 +0300 Date: Tue, 28 Oct 2008 10:53:13 +0300 From: Eygene Ryabinkin To: Eitan Shefi Message-ID: References: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Vr2UxLU0KdcKBaxP" Content-Disposition: inline In-Reply-To: <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> Sender: rea-fbsd@codelabs.ru Cc: freebsd-net@freebsd.org Subject: Re: It seems that FreeBSD-7.0 does not use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 07:53:17 -0000 --Vr2UxLU0KdcKBaxP Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eitan, good day. Mon, Oct 27, 2008 at 11:53:26PM +0200, Eitan Shefi wrote: > I am using 2 hosts with FreeBSD-7.0 connected directly. > When I change the MTU to a value greater then 1500, for example 3000, > and then send "ping" with message size 2500, from one host to the other, > the other host gets more then one ICMP packet, even thaw the message > that was send is match smaller then the MTU. > =20 > I tried to run this test using a different NIC, but I got the same > behavior. > =20 > I run: > 1. On both hosts: > ifconfig mtnic0 mtu 3000 And what does 'ifconfig mtnic0 | grep mtu' says after this command? --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --Vr2UxLU0KdcKBaxP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkGxOgACgkQthUKNsbL7YiTmgCgr5QSin1J5hcvU9bphQD+Mkoc iSAAmwbKTBW3FHCW9zrfcqQV2tRvBW50 =aGFG -----END PGP SIGNATURE----- --Vr2UxLU0KdcKBaxP-- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 10:35:57 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C90501065671 for ; Tue, 28 Oct 2008 10:35:57 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE4A8FC1F for ; Tue, 28 Oct 2008 10:35:57 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id CD274116FC for ; Tue, 28 Oct 2008 11:35:55 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: freebsd-net@freebsd.org Date: Tue, 28 Oct 2008 12:35:53 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810281235.53508.gizmen@blurp.pl> Subject: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 10:35:57 -0000 Hi, i have two core system with freebsd 7.0. I have two NIC; first is em and second is bge. I wonder why system put irq processes almost always to one core. There is example: 11 root 1 171 ki31 0K 8K RUN 0 311.2H 96.19% idle: cpu0 10 root 1 171 ki31 0K 8K CPU1 1 271.4H 71.44% idle: cpu1 21 root 1 -68 - 0K 8K WAIT 1 48.8H 13.87% irq17: bge0 20 root 1 -68 - 0K 8K - 1 42.9H 11.72% em0 taskq Almost all the time irq17: bge0 and em0 taskq are on second cpu (1). I use SCHED_4BSD scheduler. How can i make system to use two cores not one for interrupt handling. On other router based on the same hardware and software i have something like that: 10 root 1 171 ki31 0K 8K RUN 1 235.4H 78.66% idle: cpu1 11 root 1 171 ki31 0K 8K RUN 0 185.2H 72.12% idle: cpu0 20 root 1 -68 - 0K 8K - 0 48.7H 23.00% em0 taskq 23 root 1 -68 - 0K 8K WAIT 0 19.2H 9.67% irq16: fxp1 21 root 1 -68 - 0K 8K WAIT 1 28.2H 8.01% irq17: bge0 I don't know why on this router system balance over two cores. One difference is that on this router i have another fxp card (3 total) Another question is why em0 taskq is eating so much cpu ? BGE interface is actually one that pushes 2 times more packets than em0 and it uses about half cpu comparing to em0. Is that not strange ? Could someone tell my why is this happening ? BGE is faster ? or maybe i can tune some From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 10:41:45 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80F46106566C for ; Tue, 28 Oct 2008 10:41:45 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3982B8FC13 for ; Tue, 28 Oct 2008 10:41:45 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kum15-00046y-Pk for freebsd-net@freebsd.org; Tue, 28 Oct 2008 10:41:39 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2008 10:41:39 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2008 10:41:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Tue, 28 Oct 2008 11:42:21 +0100 Lines: 36 Message-ID: <4906EC8D.7070503@freebsd.org> References: <200810281235.53508.gizmen@blurp.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5DDEB52BFF8457D4FA80E9E2" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <200810281235.53508.gizmen@blurp.pl> X-Enigmail-Version: 0.95.0 Sender: news Cc: jfvogel@gmail.com Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 10:41:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5DDEB52BFF8457D4FA80E9E2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bartosz Giza wrote: > Another question is why em0 taskq is eating so much cpu ? BGE interface= is=20 > actually one that pushes 2 times more packets than em0 and it uses abou= t=20 > half cpu comparing to em0. Is that not strange ? > Could someone tell my why is this happening ? BGE is faster ? or maybe = i can=20 > tune some I have the same problem - em0 taskq eating incredible amounts of CPU. If you find a solution, contact me! --------------enig5DDEB52BFF8457D4FA80E9E2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJBuyNldnAQVacBcgRAkEAAJ9Ctrc1rNIPyn7/VvPgBkNvnXJurgCffDXB dZFLOgJBfXwcmMFtk4uU7UM= =Ym29 -----END PGP SIGNATURE----- --------------enig5DDEB52BFF8457D4FA80E9E2-- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 10:55:20 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1157106566B for ; Tue, 28 Oct 2008 10:55:19 +0000 (UTC) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from mail.telesweet.net (mail.telesweet.net [194.110.252.6]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA168FC1C for ; Tue, 28 Oct 2008 10:55:19 +0000 (UTC) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from localhost (localhost [127.0.0.1]) by mail.telesweet.net (Postfix) with ESMTP id A360310C2AB; Tue, 28 Oct 2008 12:43:41 +0200 (EET) X-Spam-Flag: NO X-Spam-Score: -1.44 X-Spam-Level: X-Spam-Status: No, score=-1.44 required=6.2 tests=[ALL_TRUSTED=-1.44, AWL=-0.000] Received: from [10.0.0.109] (pigeon-work.telesweet [10.0.0.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.telesweet.net (Postfix) with ESMTPS id 95F8F10C2A6; Tue, 28 Oct 2008 12:43:40 +0200 (EET) Message-ID: <4906ECDC.3040809@samoylyk.sumy.ua> Date: Tue, 28 Oct 2008 12:43:40 +0200 From: Oleksandr Samoylyk User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Bartosz Giza References: <200810281235.53508.gizmen@blurp.pl> In-Reply-To: <200810281235.53508.gizmen@blurp.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 10:55:21 -0000 Bartosz Giza wrote: > Hi, > > i have two core system with freebsd 7.0. I have two NIC; first is em and > second is bge. > I wonder why system put irq processes almost always to one core. > There is example: > > 11 root 1 171 ki31 0K 8K RUN 0 311.2H 96.19% idle: cpu0 > 10 root 1 171 ki31 0K 8K CPU1 1 271.4H 71.44% idle: cpu1 > 21 root 1 -68 - 0K 8K WAIT 1 48.8H 13.87% irq17: bge0 > 20 root 1 -68 - 0K 8K - 1 42.9H 11.72% em0 taskq > > Almost all the time irq17: bge0 and em0 taskq are on second cpu (1). > I use SCHED_4BSD scheduler. How can i make system to use two cores not one > for interrupt handling. In Linux it is possible to use SMP IRQ Affinity to attach IRQs to different CPUs. I wonder if there any way to do the same with FreeBSD? -- Oleksandr Samoylyk OVS-RIPE From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 10:55:21 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E19B4106566C for ; Tue, 28 Oct 2008 10:55:19 +0000 (UTC) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from mail.telesweet.net (mail.telesweet.net [194.110.252.6]) by mx1.freebsd.org (Postfix) with ESMTP id 9BB258FC1E for ; Tue, 28 Oct 2008 10:55:19 +0000 (UTC) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from localhost (localhost [127.0.0.1]) by mail.telesweet.net (Postfix) with ESMTP id 830A110C2E1; Tue, 28 Oct 2008 12:49:23 +0200 (EET) X-Spam-Flag: NO X-Spam-Score: -1.44 X-Spam-Level: X-Spam-Status: No, score=-1.44 required=6.2 tests=[ALL_TRUSTED=-1.44] Received: from [10.0.0.109] (pigeon-work.telesweet [10.0.0.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.telesweet.net (Postfix) with ESMTPS id 1586910C2DD; Tue, 28 Oct 2008 12:49:22 +0200 (EET) Message-ID: <4906EE31.3080400@samoylyk.sumy.ua> Date: Tue, 28 Oct 2008 12:49:21 +0200 From: Oleksandr Samoylyk User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Ivan Voras References: <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> In-Reply-To: <4906EC8D.7070503@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, jfvogel@gmail.com Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 10:55:21 -0000 Ivan Voras wrote: > Bartosz Giza wrote: > >> Another question is why em0 taskq is eating so much cpu ? BGE interface is >> actually one that pushes 2 times more packets than em0 and it uses about >> half cpu comparing to em0. Is that not strange ? >> Could someone tell my why is this happening ? BGE is faster ? or maybe i can >> tune some > > I have the same problem - em0 taskq eating incredible amounts of CPU. If > you find a solution, contact me! > > It could be not just a problem with em driver. Firstly, it's good to make profiling and find out what exactly eats CPU time. -- Oleksandr Samoylyk OVS-RIPE From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 02:52:38 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12FD8106566C for ; Tue, 28 Oct 2008 02:52:38 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from n55.bullet.mail.sp1.yahoo.com (n55.bullet.mail.sp1.yahoo.com [98.136.44.188]) by mx1.freebsd.org (Postfix) with SMTP id E71EB8FC16 for ; Tue, 28 Oct 2008 02:52:37 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from [216.252.122.219] by n55.bullet.mail.sp1.yahoo.com with NNFMP; 28 Oct 2008 02:52:37 -0000 Received: from [69.147.84.123] by t4.bullet.sp1.yahoo.com with NNFMP; 28 Oct 2008 02:52:37 -0000 Received: from [127.0.0.1] by omp209.mail.sp1.yahoo.com with NNFMP; 28 Oct 2008 02:52:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 836802.31671.bm@omp209.mail.sp1.yahoo.com Received: (qmail 36680 invoked by uid 60001); 28 Oct 2008 02:52:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=yN4FQjmXvYrDmG76BzO5+fw2xbQQa29yigCAMZjroGXpuR5QM1wEskRjW2HR7mbEn8GYUkiaSHtvxNfWls+cRsVq6vPWMzbnD5ty5sMezFwSgpa+c+45kesJ9UaOcxvpa8BvnNZs3Qkp5W16La/4m8EpoovKj41+eXd3EQDj5Gg=; X-YMail-OSG: t4QliZoVM1kCk3MCXq6b2f3Sso7BDCL1D0hh9sAG4I9uCsWvc2mQF0Wdzoz4Hc1qyBiqHuin8n_1.IqjRP7iBAsxdPpaGwsqiD9IyHETAmzxcv9nmSTtFfWnU5AGw1Cuei.3rGZfuHLZ0yMf7gxZaJ6Jwez8JOYVMrvyZqVU28ycLSolLIf1IH94aaA- Received: from [122.109.214.56] by web45205.mail.sp1.yahoo.com via HTTP; Mon, 27 Oct 2008 19:52:37 PDT X-Mailer: YahooMailRC/1155.11 YahooMailWebService/0.7.247.3 Date: Mon, 27 Oct 2008 19:52:37 -0700 (PDT) From: Roberto de Sousa To: Byung-Hee HWANG MIME-Version: 1.0 Message-ID: <712773.35896.qm@web45205.mail.sp1.yahoo.com> X-Mailman-Approved-At: Tue, 28 Oct 2008 11:12:05 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 02:52:38 -0000 HI Byung,=0AThank you so much share this great link. It would be great if t= he nsupdate can be trigger from the web too.. however, the link did not pro= vided the instruction on how to do that...=0A=0ADo you have any advise?=0A= =0AThanks.=0A=0A =0ARoberto=0A=0A=0A=0A=0A=0A______________________________= __=0AFrom: Byung-Hee HWANG =0ATo: Roberto de Sousa =0ACc: freebsd-net@freebsd.org=0ASent: Tuesday, 28 October,= 2008 11:08:53 AM=0ASubject: Re: NSupdate from CLI=0A=0A-----BEGIN PGP SIGN= ED MESSAGE-----=0AHash: SHA1=0A=0ARoberto de Sousa wrote:=0A> Hello all,=0A= > Can someone direct me where to go to find out example of how to create a = script using nsupdate from CLI to add host to forward and reversing zone of= DNS?=0A> I am new to Unix and just installed my freeBSD box which running = apache and BIND last month.=0A> =0A> Any advise or information will be high= ly appreciated.=0A> =0A> Thanks all.=0A> =0A> Roberto=0A=0ARoberto, this is= not what you want really. However i would like to=0Arecommend for you. See= ;;=0A=0Abyunghee=0A=0A= =0A-----BEGIN PGP SIGNATURE-----=0AVersion: GnuPG v1.4.0 (FreeBSD)=0A=0AiEY= EARECAAYFAkkGWBUACgkQsCouaZaxlv5tdwCgnjLg4lmjW++pqbhQDF+tOv1r=0ANm0AnR3NZg9= unwAfxaKCXopNo5V7q5Jg=0A=3Dz4E4=0A-----END PGP SIGNATURE-----=0A=0A=0A=0A = Make the switch to the world's best email. Get Yahoo!7 Mail! http:/= /au.yahoo.com/y7mail From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:18:44 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7333C1065671 for ; Tue, 28 Oct 2008 11:18:44 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140]) by mx1.freebsd.org (Postfix) with ESMTP id 25EA38FC20 for ; Tue, 28 Oct 2008 11:18:44 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from desktop.home.serebryakov.spb.ru (blacklion.dialup.corbina.ru [89.179.122.169]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 32EA313DF5B for ; Tue, 28 Oct 2008 14:10:34 +0300 (MSK) Date: Tue, 28 Oct 2008 14:02:37 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <104920145.20081028140237@serebryakov.spb.ru> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: Intel PRO/1000 PT: Desktop (EXPI9300PT) vs Server (EXPI9400PT) editions? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 11:18:44 -0000 Hello, Freebsd-net. Is here any real difference between two versions of this network adapter? According to documents on Intel site, only difference I can see is that server version goes with two brackets: standard and low-profile one. Everything other is same: picture, controller, specifications... And prices ARE different: $100 vs $50... --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:21:00 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46542106567F for ; Tue, 28 Oct 2008 11:21:00 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id F306C8FC13 for ; Tue, 28 Oct 2008 11:20:59 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kumd5-0005ur-4e for freebsd-net@freebsd.org; Tue, 28 Oct 2008 11:20:55 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2008 11:20:55 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2008 11:20:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Tue, 28 Oct 2008 12:21:32 +0100 Lines: 44 Message-ID: References: <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> <4906EE31.3080400@samoylyk.sumy.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9EBC28282BF222D4B071B0B8" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <4906EE31.3080400@samoylyk.sumy.ua> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 11:21:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9EBC28282BF222D4B071B0B8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oleksandr Samoylyk wrote: > Ivan Voras wrote: >> Bartosz Giza wrote: >> >>> Another question is why em0 taskq is eating so much cpu ? BGE >>> interface is actually one that pushes 2 times more packets than em0 >>> and it uses about half cpu comparing to em0. Is that not strange ? >>> Could someone tell my why is this happening ? BGE is faster ? or >>> maybe i can tune some >> >> I have the same problem - em0 taskq eating incredible amounts of CPU. = If >> you find a solution, contact me! >> >> >=20 > It could be not just a problem with em driver. > Firstly, it's good to make profiling and find out what exactly eats CPU= Can you give any pointers on how to profile the driver and/or the network stack? --------------enig9EBC28282BF222D4B071B0B8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJBvW8ldnAQVacBcgRAutnAJ9N86QQS5SeA/xAVVsEtg+YI7Kn0QCgr4zm qyWzcnSqf69++KOtCjcPVps= =hbuP -----END PGP SIGNATURE----- --------------enig9EBC28282BF222D4B071B0B8-- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:25:06 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA75D1065685; Tue, 28 Oct 2008 11:25:05 +0000 (UTC) (envelope-from bartosz.giza@korbank.pl) Received: from LISTonosz.Korbank.PL (chrissie.static.korbank.pl [193.239.59.243]) by mx1.freebsd.org (Postfix) with ESMTP id 9F3CB8FC1A; Tue, 28 Oct 2008 11:25:05 +0000 (UTC) (envelope-from bartosz.giza@korbank.pl) Received: from LISTonosz.Korbank.PL (unknown [127.0.0.3]) by LISTonosz.Korbank.PL (Postfix) with ESMTP id B02B71670AC7; Tue, 28 Oct 2008 11:58:46 +0100 (CET) Received: from [10.8.1.27] (unknown [10.8.1.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by LISTonosz.Korbank.PL (Postfix) with ESMTP id 9628316709AC; Tue, 28 Oct 2008 11:58:46 +0100 (CET) From: Bartosz Giza Organization: KORBANK To: freebsd-net@freebsd.org Date: Tue, 28 Oct 2008 13:09:58 +0100 User-Agent: KMail/1.9.7 References: <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> <4906EE31.3080400@samoylyk.sumy.ua> In-Reply-To: <4906EE31.3080400@samoylyk.sumy.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810281309.58262.bartosz.giza@korbank.pl> X-Virus-Scanned: ClamAV using ClamSMTP Cc: Oleksandr Samoylyk , Ivan Voras , jfvogel@gmail.com Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 11:25:07 -0000 Tuesday 28 of October 2008 11:49:21 Oleksandr Samoylyk napisa=C5=82(a): > Ivan Voras wrote: > > Bartosz Giza wrote: > >> Another question is why em0 taskq is eating so much cpu ? BGE > >> interface is actually one that pushes 2 times more packets than em0 > >> and it uses about half cpu comparing to em0. Is that not strange ? > >> Could someone tell my why is this happening ? BGE is faster ? or maybe > >> i can tune some > > > > I have the same problem - em0 taskq eating incredible amounts of CPU. > > If you find a solution, contact me! > > It could be not just a problem with em driver. > Firstly, it's good to make profiling and find out what exactly eats CPU > time. Yes, we should make some profiling, but it is quite hard on busy production= =20 router. When i turn on pooling on em0 card swi1: net is using about 3% of=20 cpu. So it is quite big difference between 20% with tasq and 3% with=20 polling. BTW: i am using em0@pci0:3:0:0: class=3D0x020000 card=3D0x10838086 chip=3D0x10b98086 rev=3D= 0x06=20 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82572EI PRO/1000 PT Desktop Adapter (Copper)' class =3D network subclass =3D ethernet I know it is desktop card but i thnik it should not use so much cpu. Beside= s=20 intel card and em driver is supposed to be the best on freebsd. But from my= =20 observation bge cards are better for now. =2D-=20 Pozdrawiam, Bartosz Giza, Administrator sieci Korbank sp. z o.o. From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:27:54 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6CDB106566C for ; Tue, 28 Oct 2008 11:27:54 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 86AA48FC19 for ; Tue, 28 Oct 2008 11:27:54 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by ug-out-1314.google.com with SMTP id 30so195885ugs.39 for ; Tue, 28 Oct 2008 04:27:53 -0700 (PDT) Received: by 10.103.249.19 with SMTP id b19mr3318389mus.53.1225191350036; Tue, 28 Oct 2008 03:55:50 -0700 (PDT) Received: by 10.103.229.14 with HTTP; Tue, 28 Oct 2008 03:55:50 -0700 (PDT) Message-ID: Date: Tue, 28 Oct 2008 12:55:50 +0200 From: "Vlad GALU" To: "Ivan Voras" In-Reply-To: <4906EC8D.7070503@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> Cc: freebsd-net@freebsd.org, jfvogel@gmail.com Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 11:27:55 -0000 On Tue, Oct 28, 2008 at 12:42 PM, Ivan Voras wrote: > Bartosz Giza wrote: > >> Another question is why em0 taskq is eating so much cpu ? BGE interface is >> actually one that pushes 2 times more packets than em0 and it uses about >> half cpu comparing to em0. Is that not strange ? >> Could someone tell my why is this happening ? BGE is faster ? or maybe i can >> tune some > > I have the same problem - em0 taskq eating incredible amounts of CPU. If > you find a solution, contact me! > > > Could this be related to the different interrupt handling models? em(4) uses FILTER, the others use ITHREAD. -- ~/.signature: no such file or directory From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:29:17 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C01241065673 for ; Tue, 28 Oct 2008 11:29:17 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 780268FC0A for ; Tue, 28 Oct 2008 11:29:17 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kuml7-0006He-I6 for freebsd-net@freebsd.org; Tue, 28 Oct 2008 11:29:13 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2008 11:29:13 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2008 11:29:13 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Tue, 28 Oct 2008 12:29:54 +0100 Lines: 50 Message-ID: References: <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> <4906EE31.3080400@samoylyk.sumy.ua> <200810281309.58262.bartosz.giza@korbank.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig05561AD4701EB83529FE6215" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <200810281309.58262.bartosz.giza@korbank.pl> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 11:29:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig05561AD4701EB83529FE6215 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bartosz Giza wrote: > Tuesday 28 of October 2008 11:49:21 Oleksandr Samoylyk napisa=C5=82(a):= >> Ivan Voras wrote: >>> Bartosz Giza wrote: >>>> Another question is why em0 taskq is eating so much cpu ? BGE >>>> interface is actually one that pushes 2 times more packets than em0 >>>> and it uses about half cpu comparing to em0. Is that not strange ? >>>> Could someone tell my why is this happening ? BGE is faster ? or may= be >>>> i can tune some >>> I have the same problem - em0 taskq eating incredible amounts of CPU.= >>> If you find a solution, contact me! >> It could be not just a problem with em driver. >> Firstly, it's good to make profiling and find out what exactly eats CP= U >> time. >=20 > Yes, we should make some profiling, but it is quite hard on busy produc= tion=20 > router. When i turn on pooling on em0 card swi1: net is using about 3% = of=20 > cpu. So it is quite big difference between 20% with tasq and 3% with=20 > polling. Is the difference reflected in your system / idle CPU time? (i.e. does your idle time increase for ~~ 17%?) --------------enig05561AD4701EB83529FE6215 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJBveyldnAQVacBcgRAqQIAJ9kVHmIeN+wnD2QRWRDdFjfEi0FVACg4v6K FTNx57pbpYQ+Bb1O3GJXLSM= =QJDm -----END PGP SIGNATURE----- --------------enig05561AD4701EB83529FE6215-- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:32:55 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 568AA106567A for ; Tue, 28 Oct 2008 11:32:55 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 187AE8FC0C for ; Tue, 28 Oct 2008 11:32:54 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id 66EFC116F8; Tue, 28 Oct 2008 12:32:54 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: freebsd-net@freebsd.org Date: Tue, 28 Oct 2008 13:32:52 +0100 User-Agent: KMail/1.9.7 References: <200810281235.53508.gizmen@blurp.pl> <4906ECDC.3040809@samoylyk.sumy.ua> In-Reply-To: <4906ECDC.3040809@samoylyk.sumy.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810281332.52725.gizmen@blurp.pl> Cc: Oleksandr Samoylyk Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 11:32:55 -0000 Tuesday 28 of October 2008 11:43:40 Oleksandr Samoylyk napisa=C5=82(a): > Bartosz Giza wrote: > > Hi, > > > > i have two core system with freebsd 7.0. I have two NIC; first is em > > and second is bge. > > I wonder why system put irq processes almost always to one core. > > There is example: > > > > 11 root 1 171 ki31 0K 8K RUN 0 311.2H 96.19% idle: > > cpu0 10 root 1 171 ki31 0K 8K CPU1 1 271.4H 71.44% > > idle: cpu1 21 root 1 -68 - 0K 8K WAIT 1 48.8H > > 13.87% irq17: bge0 20 root 1 -68 - 0K 8K - 1=20 > > 42.9H 11.72% em0 taskq > > > > Almost all the time irq17: bge0 and em0 taskq are on second cpu (1). > > I use SCHED_4BSD scheduler. How can i make system to use two cores not > > one for interrupt handling. > > In Linux it is possible to use SMP IRQ Affinity to attach IRQs to > different CPUs. > > I wonder if there any way to do the same with FreeBSD? AFAIK freebsd does not support such thing. But it would be really quite nic= e=20 feature to have. Other thing what i think would be cool to have couple of processes which ar= e=20 responsible for polling (swi1:net) probably one per NIC. This would benefit= =20 from multi core systems (i think) From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 12:04:28 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 648F4106567A for ; Tue, 28 Oct 2008 12:04:28 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 20ECF8FC0A for ; Tue, 28 Oct 2008 12:04:27 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id 53F64116FB; Tue, 28 Oct 2008 13:04:25 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: freebsd-net@freebsd.org Date: Tue, 28 Oct 2008 14:04:23 +0100 User-Agent: KMail/1.9.7 References: <200810281235.53508.gizmen@blurp.pl> <200810281309.58262.bartosz.giza@korbank.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810281404.24067.gizmen@blurp.pl> Cc: Ivan Voras Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 12:04:28 -0000 Tuesday 28 of October 2008 12:29:54 Ivan Voras napisa=C5=82(a): > Bartosz Giza wrote: > > Tuesday 28 of October 2008 11:49:21 Oleksandr Samoylyk napisa=C5=82(a): > >> Ivan Voras wrote: > >>> Bartosz Giza wrote: > >>>> Another question is why em0 taskq is eating so much cpu ? BGE > >>>> interface is actually one that pushes 2 times more packets than em0 > >>>> and it uses about half cpu comparing to em0. Is that not strange ? > >>>> Could someone tell my why is this happening ? BGE is faster ? or > >>>> maybe i can tune some > >>> > >>> I have the same problem - em0 taskq eating incredible amounts of CPU. > >>> If you find a solution, contact me! > >> > >> It could be not just a problem with em driver. > >> Firstly, it's good to make profiling and find out what exactly eats > >> CPU time. > > > > Yes, we should make some profiling, but it is quite hard on busy > > production router. When i turn on pooling on em0 card swi1: net is > > using about 3% of cpu. So it is quite big difference between 20% with > > tasq and 3% with polling. > > Is the difference reflected in your system / idle CPU time? (i.e. does > your idle time increase for ~~ 17%?) Yes exactly my idle time is increasing ~17% =46or now i am not using polling But i am preparing the same machine for mu= ch=20 more bussier router and i am not sure that this router with em cards will=20 suffice. From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 13:43:15 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 455911065673 for ; Tue, 28 Oct 2008 13:43:15 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id A93AE8FC4F for ; Tue, 28 Oct 2008 13:43:14 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so231869ugs.39 for ; Tue, 28 Oct 2008 06:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=n9AqODvkjYOw+FQ7lUWLyFcKRj+9b/034YqdlTU1V80=; b=fTw1c5ivLNsh9MWU2FxqP6OdXHQW1HC7BHyz+ZmpKurebM+kZqv5fJ8niokMv7ES/b t39+jMUVeH9S1tOuiTVKIQ1IME6Bzx2oaiAaNn5dn1IpUvL3zgRWQBnFySvg+nndblYJ IwAbteZ0mksuGGfCUUSO2WMt/HAWTk2ZN1Oo0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=bFzRxx7LHO6HDvznFpGJrrqWL7ryu4E/ROrnKubUjbfz2RQoGPyqsCnqfr6SGU/aWL gV7Uo/V3rMxxtnvMZgAVd559j7Fmizl1l9fWnm8TRNPyYrb3KoxSOrWKkpE3dKfuJQfp 7a9v08ZXlVNEr/qZrwuxd0rU8jbhOPMBExI9s= Received: by 10.67.98.15 with SMTP id a15mr2947229ugm.15.1225199755286; Tue, 28 Oct 2008 06:15:55 -0700 (PDT) Received: from ndenev.cmotd.com (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id o24sm2417076ugd.31.2008.10.28.06.15.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Oct 2008 06:15:52 -0700 (PDT) Message-Id: From: Nikolay Denev To: freebsd-net@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 28 Oct 2008 15:15:49 +0200 X-Mailer: Apple Mail (2.929.2) Subject: ifconfig em0 mtu 9000 does not update the routing table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 13:43:15 -0000 Hello, As the subject says, I'm trying to enable jumbo frames on running machine by setting ifconfig em0 mtu 9000 by hand, but nothing changed, and I've fount that when I list the routing table with the MTU column it shows the connected routes still with MTU 1500. Is this supposed to work this way? I understand that making ifconfig touch the routing table is ugly hack, but maybe the routing code can be notified for interface changes by some other mechanism? btw, this is on 7-STABLE with if_em(4) interfaces. -- Regards, Nikolay Denev From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 14:17:46 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6572F106567C for ; Tue, 28 Oct 2008 14:17:46 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (unknown [IPv6:2001:41d0:1:2ad2:0:1::]) by mx1.freebsd.org (Postfix) with ESMTP id ED75B8FC0A for ; Tue, 28 Oct 2008 14:17:45 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:1:2ad2:1:ffff::]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id D4DA6E041F; Tue, 28 Oct 2008 15:17:44 +0100 (CET) Received: from morzine.restart.bel (morzine.restart.bel [IPv6:2001:41d0:1:2ad2:1:2::]) (authenticated bits=0) by restart.be (8.14.3/8.14.3) with ESMTP id m9SEHZbO046800; Tue, 28 Oct 2008 15:17:36 +0100 (CET) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1225203464; bh=hfQb6PStKSAZRxXRAQb58zsYP/KKZr/au1d6ygX bM2E=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=IaLrvbHHv+ipw2UT0AV+w3g4qRDxy8PixpVkKM wV5sa6UGr8bTuOtYuP3/a057hzr+nCsVid94OTDKRatoLiJA== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type:x-scanned-by; b=if+OrGSshlIhgpFPDlPmaU1p+uxfcsSG8Xhi0+GZKzP5PfD19ko0pxxNSOzrAUTqX kXlN/DVlk7hDAdE5fZNiA== Message-ID: <49071EFF.1010806@restart.be> Date: Tue, 28 Oct 2008 15:17:35 +0100 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.17 (X11/20081004) MIME-Version: 1.0 To: Roberto de Sousa References: <723811.95360.qm@web45207.mail.sp1.yahoo.com> In-Reply-To: <723811.95360.qm@web45207.mail.sp1.yahoo.com> Content-Type: multipart/mixed; boundary="------------060304020409050900030702" X-Scanned-By: MIMEDefang 2.64 on IPv6:2001:41d0:1:2ad2:1:1:: Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 14:17:46 -0000 This is a multi-part message in MIME format. --------------060304020409050900030702 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Roberto de Sousa wrote: > Hello Henri, > Thank you for your kindness to help me on this.. I have generated the > key and and edit my named.conf as per your instruction. I have also > tried your script which work great. What i would like to find out more > is that how to modify this script so that it provides flexibility > without having to specify the host in the script? > what i mean is that.. i could select add or delete option from CLI and > able to add any host to forward & Reversing Zone of my DNS from my > freeBSD CLI? <--- clip ---> What do you thing about the attached script ? Some more check of args may be usefull ... Henri --------------060304020409050900030702 Content-Type: text/plain; name="dnsupdate" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="dnsupdate" IyEvYmluL3NoCnVzYWdlICgpIHsKICAgIGVjaG8gJ1VzYWdlOiBkbnN1cGRhdGUgLWF8LWR8 LXUgPEhvc3ROYW1lPj08SVBfQWRkcmVzcz4nCiAgICBlY2hvICcJLWEJYWRkIEROUyBlbnRy eSBmb3IgPEhvc3ROYW1lPicKICAgIGVjaG8gJwktZAlkZWxldGUgRE5TIGVudHJ5IGZvciA8 SG9zdE5hbWU+JwogICAgZWNobyAnCS11CXVwZGF0ZSBETlMgZW50cnk8SG9zdE5hbWU+Jwp9 Ck5TU0VSVkVSPSd4eHgueHh4Lnh4eC54eHgnClRTSUc9J2hvc3QxLmV4YW1wbGUuY29tLjpY WFhYLi4uWFhYWD09JwojLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQpjYXNlICQjIGluCiAg ICAyKQk7OwogICAgKikgIHVzYWdlID4mMjsKCWV4aXQgMTs7CmVzYWMKSE9TVE5BTUU9JHsy JSU9Kn0KSVBBRERSPSR7MiMjKj19CmlmIFsgJHtIT1NUTkFNRX0gPSAkMiAtbyAke0lQQURE Un0gPSAkMiBdCnRoZW4KICAgdXNhZ2UgPiYyOwogICBleGl0IDEKZmkKSVBBRERSMT0ke0lQ QUREUiUlLip9CklQQUREUlg9JHtJUEFERFIjKi59CklQQUREUjI9JHtJUEFERFJYJSUuKn0K SVBBRERSWD0ke0lQQUREUlgjKi59CklQQUREUjM9JHtJUEFERFJYJSUuKn0KSVBBRERSND0k e0lQQUREUlgjKi59CmlmIFsgIiR7SVBBRERSMX0uJHtJUEFERFIyfS4ke0lQQUREUjN9LiR7 SVBBRERSNH0iICE9ICR7SVBBRERSfSBdCnRoZW4KICAgIHVzYWdlID4mMjsKICAgIGV4aXQg MQpmaQpkZWxldGUoKSB7CmVjaG8gdXBkYXRlIGRlbGV0ZSAke0hPU1ROQU1FfS4gSU4gQQpl Y2hvIHVwZGF0ZSBkZWxldGUgJHtJUEFERFI0fS4ke0lQQUREUjN9LiR7SVBBRERSMn0uJHtJ UEFERFIxfS5pbi1hZGRyLmFycGEuIElOIFBUUgp9CmFkZCgpIHsKZWNobyB1cGRhdGUgYWRk ICR7SE9TVE5BTUV9LiA2MCBJTiBBICR7SVBBRERSfQplY2hvIHVwZGF0ZSBhZGQgJHtJUEFE RFI0fS4ke0lQQUREUjN9LiR7SVBBRERSMn0uJHtJUEFERFIxfS5pbi1hZGRyLmFycGEuIDYw IElOIFBUUiAke0hPU1ROQU1FfS4KfQpjYXNlICQxIGluCiAgICAtYXwtZHwtdSkgOzsKICAg ICopICB1c2FnZSA+JjI7CglleGl0IDE7Owplc2FjCmNhc2UgJDEgaW4KICAgIC1hKQllY2hv IHNlcnZlciAke05TU0VSVkVSfTsKCWFkZDsKCWVjaG8gc2VuZDs7CiAgICAtZCkgZWNobyBz ZXJ2ZXIgJHtOU1NFUlZFUn07CglkZWxldGU7CgllY2hvIHNlbmQ7OwogICAgLXUpIGVjaG8g c2VydmVyICR7TlNTRVJWRVJ9OwoJZGVsZXRlOwoJYWRkOwoJZWNobyBzZW5kOzsKZXNhYyB8 IC91c3IvYmluL25zdXBkYXRlIC15ICR7VFNJR30gMT4vZGV2L251bGwK --------------060304020409050900030702-- From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 14:40:40 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 773951065675 for ; Tue, 28 Oct 2008 14:40:40 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from n4.bullet.mail.mud.yahoo.com (n4.bullet.mail.mud.yahoo.com [209.191.127.236]) by mx1.freebsd.org (Postfix) with SMTP id 428CB8FC13 for ; Tue, 28 Oct 2008 14:40:40 +0000 (UTC) (envelope-from r_de_sousa@yahoo.com) Received: from [68.142.200.226] by n4.bullet.mud.yahoo.com with NNFMP; 28 Oct 2008 14:26:49 -0000 Received: from [68.142.201.243] by t7.bullet.mud.yahoo.com with NNFMP; 28 Oct 2008 14:26:49 -0000 Received: from [127.0.0.1] by omp404.mail.mud.yahoo.com with NNFMP; 28 Oct 2008 14:26:49 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 562705.93028.bm@omp404.mail.mud.yahoo.com Received: (qmail 95752 invoked by uid 60001); 28 Oct 2008 14:26:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=bZN2vKO6tUyH0JlY9mHJ0yPRl81YqFmmO7uYBYdwnIMVAQp+LyYuUFoYJFYEMDPB/sbFnGaowbaUOBDaQQ3Md4iglHwfbJh06GXm+yfKzcnp8G8cu/+N+F/auPo+AK+L1ty0sUicgJndGQhoQhuV1UNF6sZCZD0yhAZyQiPdbR0=; X-YMail-OSG: gK2mREcVM1n0TdB4Crp0HejYAzH8Wfr.RwKr_m2BYdO.m_S3KQtKDbaQJzcp7HRcxruI4FJezNKGn75olyskUuy6isBgbmSOjKGIELzXFdw7cBqjLHBwV8ofcRYD6UhZ6zz9TeDD1GhcTALuKyv3BPAzmRTMS3Lcw86ERAPKENKK7p4x9WUgIqU3eD0tG8lw3rJhrbsLa27z_5Q- Received: from [122.109.214.56] by web45215.mail.sp1.yahoo.com via HTTP; Tue, 28 Oct 2008 07:26:48 PDT X-Mailer: YahooMailRC/1155.11 YahooMailWebService/0.7.247.3 Date: Tue, 28 Oct 2008 07:26:48 -0700 (PDT) From: Roberto de Sousa To: Henri Hennebert MIME-Version: 1.0 Message-ID: <47835.95227.qm@web45215.mail.sp1.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: NSupdate from CLI X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 14:40:40 -0000 Hi Henri,=0Athanks for the help. I have this script :=0A#!/bin/sh=0AIPADDR= =3D`ifconfig em0 | grep 'inet addr:[0-9]' | tr -s " " | cut -d" " -f3 | tr = -d "addr:"`=0Aecho "update delete host1.customer. A" >> /etc/nsupdate=0Aech= o "update delete host2.customer. CNAME" >> /etc/nsupdate=0Aecho "update add= host5.customer 86400 A $IPADDR" >> /etc/nsupdate=0Aecho "update add *.cust= omer. 38400 CNAME ns2.customer." >> /etc/nsupdate=0Aecho "show" >> /etc/nsu= pdate=0Aecho "send" >> /etc/nsupdate=0Aecho "" >> /etc/nsupdate=0A/usr/bin/= nsupdate -k Kmydns.com.+157+62440.private -d /etc/nsupdate=0A=0AHowever, w= hen i tried to run it, i got there messages :=0Aroot@admin# ./test2.sh=0Ase= rver: not found=0Azone: not found=0Aupdate: not found=0Aupdate: not found= =0Aupdate: not found=0Aupdate: not found=0Ashow: not found=0Asend: not foun= d=0A=0AIt seem that the nsupdate things still take the value from the /etc/= nsupdate even i have renamed the /etc/nsupdate to /etc/old... Do you have a= ny clue why it still referring it?=0A=0Ai also have change the test2.sh to = test3.sh and execute the script but i still got the above message.=0A=0AAny= advise will be highly appreciated.=0A=0AThank you.=0A=0ARoberto=0A=0A =0Ab= uka wainhira la hatene, buka atu hatene liu tan =0A=0Aabracos =0A=0A=0A=0A= =0A________________________________=0AFrom: Henri Hennebert =0ATo: Roberto de Sousa =0ACc: freebsd-net@freebsd.o= rg=0ASent: Wednesday, 29 October, 2008 1:17:35 AM=0ASubject: Re: NSupdate f= rom CLI=0A=0ARoberto de Sousa wrote:=0A> Hello Henri,=0A> Thank you for you= r kindness to help me on this.. I have generated the =0A> key and and edit = my named.conf as per your instruction. I have also =0A> tried your script w= hich work great. What i would like to find out more =0A> is that how to mod= ify this script so that it provides flexibility =0A> without having to spec= ify the host in the script?=0A> what i mean is that.. i could select add or= delete option from CLI and =0A> able to add any host to forward & Reversin= g Zone of my DNS from my =0A> freeBSD CLI?=0A=0A<--- clip --->=0A=0AWhat do= you thing about the attached script ? Some more check of args =0Amay be us= efull ...=0A=0AHenri=0A=0A=0A=0A Make the switch to the world's be= st email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 15:12:11 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6795C10656A2 for ; Tue, 28 Oct 2008 15:12:11 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id EA9158FC1C for ; Tue, 28 Oct 2008 15:12:10 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 226342188; Tue, 28 Oct 2008 17:12:10 +0200 Message-ID: <49072BC9.4010103@FreeBSD.org> Date: Tue, 28 Oct 2008 17:12:09 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Bartosz Giza References: <1225203780.00029971.1225190402@10.7.7.3> In-Reply-To: <1225203780.00029971.1225190402@10.7.7.3> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 15:12:11 -0000 Bartosz Giza wrote: > On other router based on the same hardware and software i have something > like that: > > 10 root 1 171 ki31 0K 8K RUN 1 235.4H 78.66% idle: cpu1 > 11 root 1 171 ki31 0K 8K RUN 0 185.2H 72.12% idle: cpu0 > 20 root 1 -68 - 0K 8K - 0 48.7H 23.00% em0 taskq > 23 root 1 -68 - 0K 8K WAIT 0 19.2H 9.67% irq16: fxp1 > 21 root 1 -68 - 0K 8K WAIT 1 28.2H 8.01% irq17: bge0 > > I don't know why on this router system balance over two cores. One > difference is that on this router i have another fxp card (3 total) In verbose boot messages system shows that different IRQs assigned to different APICs in round-robin fashion. So I may assume that this IRQ->CPU mapping is static. em0's taskqueue at the same time able to migrate CPUs as any usual process. > Another question is why em0 taskq is eating so much cpu ? BGE interface is > actually one that pushes 2 times more packets than em0 and it uses about > half cpu comparing to em0. Is that not strange ? > Could someone tell my why is this happening ? BGE is faster ? or maybe i can > tune some The CPU time you see there includes much more then just a card handling itself. It also includes CPU time of the most parts of network stack used to process received packet. So if you have NAT, big firewall, netgraph or any other CPU-hungry actions done with packets incoming via em0 you will see such results. Even more interesting is that if bge0 or fxp0 cards will require much CPU time to send packet, this time will also be accounted to em0 process. :) -- Alexander Motin From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 16:13:15 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA31B1065679; Tue, 28 Oct 2008 16:13:15 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 66EE18FC17; Tue, 28 Oct 2008 16:13:15 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from localhost.localnet (blurp.t2.ds.pwr.wroc.pl [156.17.224.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id 66B97116FB; Tue, 28 Oct 2008 17:13:14 +0100 (CET) From: Bartosz Giza To: freebsd-net@freebsd.org Date: Tue, 28 Oct 2008 16:13:13 +0000 User-Agent: KMail/1.10.1 (Linux/2.6.25-gentoo-r8; KDE/4.1.2; i686; ; ) References: <1225203780.00029971.1225190402@10.7.7.3> <49072BC9.4010103@FreeBSD.org> In-Reply-To: <49072BC9.4010103@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810281613.13719.gizmen@blurp.pl> Cc: Alexander Motin Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 16:13:16 -0000 On Tuesday 28 of October 2008 15:12:09 Alexander Motin wrote: > Bartosz Giza wrote: > > On other router based on the same hardware and software i have something > > like that: > > > > 10 root 1 171 ki31 0K 8K RUN 1 235.4H 78.66% idle: > > cpu1 11 root 1 171 ki31 0K 8K RUN 0 185.2H 72.12% idle: > > cpu0 20 root 1 -68 - 0K 8K - 0 48.7H 23.00% em0 > > taskq 23 root 1 -68 - 0K 8K WAIT 0 19.2H 9.67% > > irq16: fxp1 21 root 1 -68 - 0K 8K WAIT 1 28.2H 8.01% > > irq17: bge0 > > > > I don't know why on this router system balance over two cores. One > > difference is that on this router i have another fxp card (3 total) > > In verbose boot messages system shows that different IRQs assigned to > different APICs in round-robin fashion. So I may assume that this > IRQ->CPU mapping is static. em0's taskqueue at the same time able to > migrate CPUs as any usual process. I am not sure it is that true. When i watch top i see that sometimes irq: bge0 process switch to core 0 but most of the time is on core 1. So scheduler sometimes put this process on different core. > > Another question is why em0 taskq is eating so much cpu ? BGE interface > > is actually one that pushes 2 times more packets than em0 and it uses > > about half cpu comparing to em0. Is that not strange ? > > Could someone tell my why is this happening ? BGE is faster ? or maybe i > > can tune some > > The CPU time you see there includes much more then just a card handling > itself. It also includes CPU time of the most parts of network stack > used to process received packet. So if you have NAT, big firewall, > netgraph or any other CPU-hungry actions done with packets incoming via > em0 you will see such results. > Even more interesting is that if bge0 or fxp0 cards will require much > CPU time to send packet, this time will also be accounted to em0 process. > :) WOW that is weird. Yes i have quite big ipfw firewall and also couple of rules from pf. So you are saying that whole overhead from firewall is counted to this em taskq process. This is really strange for somebody who don't know about this. So what in case if i would have two em nic's. How would then overhead from firewalls be counted ? Splited to two taskq processes ? And another really weird thing is that if i have other card their processing are counted to tasq process of different NIC. Why is this done in such a way ? From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 16:41:17 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ED14106566C for ; Tue, 28 Oct 2008 16:41:17 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 982F38FC1D for ; Tue, 28 Oct 2008 16:41:16 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2902268fkk.11 for ; Tue, 28 Oct 2008 09:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=XFHbPIALavcrdfLOUjCQxWsxAyckvIq5ZwjHkMt4Lis=; b=Xf7gWAP+5fjEJYRPXN67LddDlnCbL2p2kf4RC3EPHCj0DNGWTW/x9ORHatRnjXp6m/ Wr/lbVDz7dkfII7fruMfAl3obgYCf9AuvvPYqylmF/AQYAfVGo5Wn6yCFsS7CmdHwBme jbackPQ1HfIfeMCKyHRPbIvL9MCwrZD/lsZh0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=DlPlq8chULzlVNkZL9DiN7epMF3Wya5ZPlUKG6wslWaHz/HyNszc/6LeG02lBIM5c+ lLR8V+p0lmVYVurh+em3wAhBUOC9rW0+E3b2Gg/DFMdOsLQOMUqs8SaCwfaI70Sye6hK aYwqKztqvbfICn+tjydjwt2cVnSjD6vaCbg8o= Received: by 10.181.136.4 with SMTP id o4mr2229487bkn.0.1225212074880; Tue, 28 Oct 2008 09:41:14 -0700 (PDT) Received: by 10.180.208.16 with HTTP; Tue, 28 Oct 2008 09:41:14 -0700 (PDT) Message-ID: <2a41acea0810280941g6c9846y6e0d4b8b19313e0a@mail.gmail.com> Date: Tue, 28 Oct 2008 09:41:14 -0700 From: "Jack Vogel" To: "Nikolay Denev" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: ifconfig em0 mtu 9000 does not update the routing table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 16:41:17 -0000 It can't change the route table when you've given it no address: IE. ifconfig em0 HOSTNAME mtu 9000 will update it just fine. Cheers, Jack On Tue, Oct 28, 2008 at 6:15 AM, Nikolay Denev wrote: > Hello, > > As the subject says, I'm trying to enable jumbo frames on running machine > by setting > ifconfig em0 mtu 9000 by hand, but nothing changed, and I've fount that > when I list > the routing table with the MTU column it shows the connected routes still > with MTU 1500. > Is this supposed to work this way? I understand that making ifconfig touch > the routing table is ugly hack, but maybe the routing code can be notified > for interface changes by some other mechanism? > > btw, this is on 7-STABLE with if_em(4) interfaces. > > -- > Regards, > Nikolay Denev > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 17:53:23 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 894E31065674 for ; Tue, 28 Oct 2008 17:53:23 +0000 (UTC) (envelope-from kordex@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 3A50C8FC13 for ; Tue, 28 Oct 2008 17:53:23 +0000 (UTC) (envelope-from kordex@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so649947yxb.13 for ; Tue, 28 Oct 2008 10:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=2uiJLZrpJ0W32dN20Dgv9EHPoFSsKBdIjXwW0jHMnrM=; b=pbXbDrd6u6PljS+jfzGE2ClVHAgK1w8yTUzMuEfiILVmg4CGTX3cD0yt2OQIncu8pC rb6QOMDwoi2DQU3NNLXKud0/IPG5xOPtijyfio0w+93fK+hWMhJb6maH2/sOIj/b3jVY ckuQWma5zr8rDkFnfKqejO7+AkWSVH+6KMz5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=oYwlTRR7IdYhidwXpnL1zDHpT+WzI2ojsyaHDq0WKyusYvHK2yTtXqUIRgtT/tVYLT r5y3ZpgTEzQNUfqb65B45x7Y/ZoGCaZewVLCsnrI8zjex4C/lt24GbOiXWgmGkVU3Zi8 gyGF8FzsfSfLl5mCsBFHfBZ6hEG11uWtPVodY= Received: by 10.187.243.3 with SMTP id v3mr713102far.100.1225216400857; Tue, 28 Oct 2008 10:53:20 -0700 (PDT) Received: by 10.187.207.12 with HTTP; Tue, 28 Oct 2008 10:53:20 -0700 (PDT) Message-ID: <8b8dd87a0810281053iccbd10we4d1687ceba0a89f@mail.gmail.com> Date: Tue, 28 Oct 2008 17:53:20 +0000 From: "kordex -" To: freebsd-net@freebsd.org In-Reply-To: <20081025083027.GD59215@cdnetworks.co.kr> MIME-Version: 1.0 References: <8b8dd87a0810230602i39bbb291h6777f41022d3f0d4@mail.gmail.com> <20081025083027.GD59215@cdnetworks.co.kr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: nfe driver bad performance on FreeBSD 7 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 17:53:23 -0000 I found the reason for bad performance. It also affected the non-free nvidia glx driver. It was options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions not set in the kernel configuration. --Mikko Kortelainen 2008/10/25 Pyun YongHyeon > On Thu, Oct 23, 2008 at 04:02:48PM +0300, kordex - wrote: > > Same issue as > > > http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2008-09/msg00278.html > > > > I got HP Pavilion dv6646eo laptop with same network chip. Max throughput > is > > 800kB/s with scp. same with generic kernel. > > > > nfe0: flags=8843 metric 0 mtu > 1500 > > options=8 > > ether 00:00:00:00:00:00 > > inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255 > > media: Ethernet autoselect (100baseTX ) > > status: active > > lilian# > > > > MAC being all zeros is not done by me. It's BIOS doing that. I wonder if > > that can cause things like this. No PXE Boot for me :| Should I send > this to > > warranty for that? > > > > Don't use all zeroed ethernet address. You can assign fake ethernet > address to nfe(4) with "ifconfig nfe0 ether 00:01:02:03:04:05". > The problem is why nfe(4) got all zeord station address from > controller. Does nve(4) also show the same ethernet address? > > > lilian# uname -a > > FreeBSD lilian.xnet.kx 7.0-RELEASE FreeBSD 7.0-RELEASE #3: Sat Sep 27 > > 20:36:01 UTC 2008 root@lilian.xnet.kx > :/usr/obj/usr/src/sys/LILIAN_KERN > > i386 > > > > > > lilian# dmesg > > Copyright (c) 1992-2008 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights > reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 7.0-RELEASE #3: Sat Sep 27 20:36:01 UTC 2008 > > root@lilian.xnet.kx:/usr/obj/usr/src/sys/LILIAN_KERN > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (1908.67-MHz 686-class > > CPU) > > Origin = "AuthenticAMD" Id = 0x60f81 Stepping = 1 > > > > [...] > > > nfe0: port 0x30e0-0x30e7 mem > > 0xf2487000-0xf2487fff irq 20 at device 6.0 on pci0 > > miibus0: on nfe0 > > rgephy0: PHY 1 on miibus0 > > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > 1000baseT-FDX, auto > > nfe0: [FILTER] > > There was one report of MCP65's poor performance but he said it > happens on 1000Mbps link only. Normally poor network performance > comes from speed/duplex mismatch. Does link partner also agree on > resolved speed/duplex of nfe(4)? Would you show me the output of > "netstat -ndI nfe0"? > > nfe(4) in 8-CURRENT supports hardware MAC counters and the counters > give us very valuable information to diagnose driver issues. Would > you try latest CURRENT and show me the output of > "sysctl dev.nfe.0.stats" after some network activities? > > -- > Regards, > Pyun YongHyeon > From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 17:54:59 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D47171065672 for ; Tue, 28 Oct 2008 17:54:59 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id 881978FC16 for ; Tue, 28 Oct 2008 17:54:59 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s17so882152wxc.7 for ; Tue, 28 Oct 2008 10:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=ZqOi9/Ej2xrgrIf6yxyzmzZjLFzLLwCuGB58rriFCuU=; b=s5Q7cV5NlczVukipqKHkXZzzOKagxBv5aOq2N/CeRiZnLn2kJGHtjnN97JM98R7Ig6 2qA0yVjsXzjbFPz7Sfa9DSTbl9IGxkbEtAVhZcevMYV/gjD3YSMg6rVSEU/aoBgvfrJY 3QJAFgTusSb78nkqmUxEfag+dZqZBLFzH+wf4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=WnqZAQlEieRTkdlHQPBk7uLLWc79RNQP4KnxmrFHN9Ee14DBq6AWd/eaykHOfGl2V9 Th1GSPoETXZWGCtsaYbZ1QvN07gYmJTl51qdsnpK+qZuaovnYJAIZPfAL0NTOmzfptGb k1hsn8RI3xMs59s0OVpx2RGVzlZwXMgMdFPQ4= Received: by 10.103.220.18 with SMTP id x18mr3551751muq.81.1225216497367; Tue, 28 Oct 2008 10:54:57 -0700 (PDT) Received: from MYTAHT.totalterror.net ([87.121.19.243]) by mx.google.com with ESMTPS id u26sm2339168mug.5.2008.10.28.10.54.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Oct 2008 10:54:55 -0700 (PDT) Message-Id: <84671113-DA04-4EFA-8640-E9AD2F09BB34@gmail.com> From: Nikolay Denev To: Jack Vogel In-Reply-To: <2a41acea0810280941g6c9846y6e0d4b8b19313e0a@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 28 Oct 2008 19:54:48 +0200 References: <2a41acea0810280941g6c9846y6e0d4b8b19313e0a@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-net@freebsd.org Subject: Re: ifconfig em0 mtu 9000 does not update the routing table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 17:54:59 -0000 On 28 Oct, 2008, at 18:41 , Jack Vogel wrote: > It can't change the route table when you've given it no address: > > IE. ifconfig em0 HOSTNAME mtu 9000 will update it just fine. > > Cheers, > > Jack > > > On Tue, Oct 28, 2008 at 6:15 AM, Nikolay Denev > wrote: > Hello, > > As the subject says, I'm trying to enable jumbo frames on running > machine by setting > ifconfig em0 mtu 9000 by hand, but nothing changed, and I've fount > that when I list > the routing table with the MTU column it shows the connected routes > still with MTU 1500. > Is this supposed to work this way? I understand that making ifconfig > touch the routing table is ugly hack, but maybe the routing code can > be notified for interface changes by some other mechanism? > > btw, this is on 7-STABLE with if_em(4) interfaces. > > -- > Regards, > Nikolay Denev > Hi Jack, Yes, I understand that, It just looked logical to me to update the existing entries (directly attached) if no address is given, so one can use the mtu knob alone. Anyways, one rarely touches the mtu alone and this not a real problem, I've just tried to enable jumbo frames on two running machines with just the ifconfig em0 mtu 9000 line and wondered why it does not work for a minute. Thanks! -- Regards, Nikolay Denev From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 18:10:48 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D2A71065682 for ; Tue, 28 Oct 2008 18:10:48 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 8AAA18FC0C for ; Tue, 28 Oct 2008 18:10:47 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 226355586; Tue, 28 Oct 2008 20:10:46 +0200 Message-ID: <490755A3.4050903@FreeBSD.org> Date: Tue, 28 Oct 2008 20:10:43 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Bartosz Giza References: <1225203780.00029971.1225190402@10.7.7.3> <49072BC9.4010103@FreeBSD.org> <200810281613.13719.gizmen@blurp.pl> In-Reply-To: <200810281613.13719.gizmen@blurp.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 18:10:48 -0000 Bartosz Giza wrote: >> The CPU time you see there includes much more then just a card handling >> itself. It also includes CPU time of the most parts of network stack >> used to process received packet. So if you have NAT, big firewall, >> netgraph or any other CPU-hungry actions done with packets incoming via >> em0 you will see such results. >> Even more interesting is that if bge0 or fxp0 cards will require much >> CPU time to send packet, this time will also be accounted to em0 process. >> :) > > WOW that is weird. Yes i have quite big ipfw firewall and also couple of rules > from pf. So you are saying that whole overhead from firewall is counted to > this em taskq process. This is really strange for somebody who don't know > about this. > So what in case if i would have two em nic's. How would then overhead from > firewalls be counted ? Splited to two taskq processes ? > And another really weird thing is that if i have other card their processing > are counted to tasq process of different NIC. Why is this done in such a way ? There is no dedicated processes in system to handle routing, firewall, netgraph, etc. Many processes would lead to multiple context switches, bigger latencies and reduced performance. Instead most parts of network stack implemented in direct call fashion. So NIC receive interrupt initiates packet handling by doing stack function call, that function calls another and so on until packet will be completely processed and transmitted or queued. There is not so many exception from this rule, for example, dummynet which schedules part of activity to the timer events. So sometimes you still can see some activity from the swi:net, dummynet or some other threads. It also tells not so much about who really consumed the CPU, but more about who initiated that CPU consumption. In case of two em NICs em0 thread will mostly show load produced by em0->em1 traffic processing and em1 - load produced by em1->em0 traffic. -- Alexander Motin From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 21:16:28 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7E171065673 for ; Tue, 28 Oct 2008 21:16:28 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id DC4A78FC08 for ; Tue, 28 Oct 2008 21:16:27 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (z5erj9u6u31z3btb@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id m9SL2GUF028282; Tue, 28 Oct 2008 14:02:16 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id m9SL2FIY028281; Tue, 28 Oct 2008 14:02:15 -0700 (PDT) (envelope-from jmg) Date: Tue, 28 Oct 2008 14:02:15 -0700 From: John-Mark Gurney To: Eitan Shefi Message-ID: <20081028210215.GE51033@funkthat.com> Mail-Followup-To: Eitan Shefi , freebsd-net@freebsd.org References: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Tue, 28 Oct 2008 14:02:16 -0700 (PDT) Cc: freebsd-net@freebsd.org Subject: Re: It seems that FreeBSD-7.0 does not use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 21:16:28 -0000 Eitan Shefi wrote this message on Mon, Oct 27, 2008 at 23:53 +0200: > I am using 2 hosts with FreeBSD-7.0 connected directly. > When I change the MTU to a value greater then 1500, for example 3000, > and then send "ping" with message size 2500, from one host to the other, > the other host gets more then one ICMP packet, even thaw the message > that was send is match smaller then the MTU. > > I tried to run this test using a different NIC, but I got the same > behavior. > > I run: > 1. On both hosts: > ifconfig mtnic0 mtu 3000 > 2. Than on one host I run: > tcpdump -i mtnic0 icmp > 3. And on the other host I run: > ping -s 2500 -c 1 OTHER_HOST_IP (ping to "mtnic0" on the other > host) run netstat -rnW to see what the route's MTU is. Most likely you need to set the mtu before you configure an ip address on the interface so that the network's route is created w/ the correct MTU... either readd the network route, or change the mtu of the route for the host: route change -mtu 3000 OTHER_HOST_IP also change it on the network route so that when the host route gets flushed and recreated it will be created w/ the correct MTU... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 21:23:51 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0E80106567C for ; Tue, 28 Oct 2008 21:23:51 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2938FC22 for ; Tue, 28 Oct 2008 21:23:51 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (dbbayk1lcggos5zf@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id m9SLNonx028599; Tue, 28 Oct 2008 14:23:50 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id m9SLNojV028598; Tue, 28 Oct 2008 14:23:50 -0700 (PDT) (envelope-from jmg) Date: Tue, 28 Oct 2008 14:23:50 -0700 From: John-Mark Gurney To: Nikolay Denev Message-ID: <20081028212350.GF51033@funkthat.com> Mail-Followup-To: Nikolay Denev , Jack Vogel , freebsd-net@freebsd.org References: <2a41acea0810280941g6c9846y6e0d4b8b19313e0a@mail.gmail.com> <84671113-DA04-4EFA-8640-E9AD2F09BB34@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84671113-DA04-4EFA-8640-E9AD2F09BB34@gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Tue, 28 Oct 2008 14:23:51 -0700 (PDT) Cc: freebsd-net@freebsd.org, Jack Vogel Subject: Re: ifconfig em0 mtu 9000 does not update the routing table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 21:23:51 -0000 Nikolay Denev wrote this message on Tue, Oct 28, 2008 at 19:54 +0200: > On 28 Oct, 2008, at 18:41 , Jack Vogel wrote: > > >It can't change the route table when you've given it no address: > > > >IE. ifconfig em0 HOSTNAME mtu 9000 will update it just fine. > > > >Cheers, > > > >Jack > > > > > >On Tue, Oct 28, 2008 at 6:15 AM, Nikolay Denev > >wrote: > >Hello, > > > >As the subject says, I'm trying to enable jumbo frames on running > >machine by setting > >ifconfig em0 mtu 9000 by hand, but nothing changed, and I've fount > >that when I list > >the routing table with the MTU column it shows the connected routes > >still with MTU 1500. > >Is this supposed to work this way? I understand that making ifconfig > >touch the routing table is ugly hack, but maybe the routing code can > >be notified for interface changes by some other mechanism? > > > >btw, this is on 7-STABLE with if_em(4) interfaces. > > > >-- > >Regards, > >Nikolay Denev > > > > > Hi Jack, > > Yes, I understand that, It just looked logical to me to update the > existing entries (directly attached) if no address is given, so one > can use the mtu knob alone. > > Anyways, one rarely touches the mtu alone and this not a real problem, > I've just tried to enable jumbo frames on two running machines with > just the ifconfig em0 mtu 9000 line and wondered why it does not work > for a minute. But what happens if you are talking to a machine that doesn't have jumbo frames enabled? You'd loose communications with the machines if ifconfig auto updated... The real missing part of the puzzle is a daemon that sits around and probes neighbor's MRU size and updates each host route w/ the size that is supported by that host... /me has want to write such a daemon, but the work to do it in C is time consuming. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 23:57:01 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82961106567F for ; Tue, 28 Oct 2008 23:57:01 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 313528FC1D for ; Tue, 28 Oct 2008 23:57:00 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id 5925511A2C85; Tue, 28 Oct 2008 20:56:59 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 24549-03; Tue, 28 Oct 2008 20:56:58 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id 4445011A2878; Tue, 28 Oct 2008 20:56:58 -0300 (ADT) Date: Tue, 28 Oct 2008 20:56:55 -0300 From: "Marc G. Fournier" To: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Message-ID: X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 23:57:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to run a QEMU VM on top of a FreeBSD 7.x server ... I've tried the exact same setup on my desktop, using 192.168.1.x and an fxp device, and it all works perfectly, but as soon as I do this on another machine on a public IP, I'm not getting any routing, I can't even ping it from the same machine ... My first thought was that there was an issue with IP aliases already on the bge device, but tried doing the following: ifconfig bridge0 destroy ifconfig tap0 destroy ifconfig fxp0 -alias 192.168.1.101 ifconfig fxp0 alias 192.168.1.101 netmask 255.255.255.255 ifconfig bridge0 create ifconfig tap0 create ifconfig bridge0 addm fxp0 addm tap0 up on my desktop here and then starting up the qemu image, and all worked as expected, so having an alias on the interface, before or after, doesn't make a difference ... at least with the fxp device ... Using VNC to connect to the VM, I can look at the interface, and it says it is connected ... and the IP/Gateway are all set right for the network I'm on, netmask is set to 255.255.255.0, same as on the 'private network' ... Please note that when I say "it works" on my private network / desktop, I'm using it to connect to my work computer, across the Internet, via Windows RDP, and it works flawlessly ... Looking at /var/log/messages, you can see the bridge being setup: Oct 27 18:53:21 io kernel: bridge0: Ethernet address: ce:44:c7:1b:47:40 as well as the tap device: Oct 27 18:53:25 io kernel: tap0: Ethernet address: 00:bd:96:ae:67:00 Oct 27 18:53:41 io kernel: tap0: promiscuous mode enabled and the ethernet going promiscuous: Oct 26 20:53:56 ganymede kernel: fxp0: promiscuous mode enabled So, all I have left is that everything is being setup okay, but there is something I'm missing here ... something with bridge<->bge, maybe? I've even tries to compare the output of 'ifconfig -a' as far as the bridge0 and tap0 devices are concerned, and other then the mac address, they look identical also ... So, pointers to what I may be missing here? a sysctl value that I need to set for this interface? Thanks ... - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkHpscACgkQ4QvfyHIvDvPnFgCgk+6Pg+QeYO0BD9KMIkyZK2g7 JWgAn3VHq+F1OzD9M8VuYLEZDQLfFsNU =+3J/ -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 02:34:30 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFCA41065680 for ; Wed, 29 Oct 2008 02:34:29 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id CD6178FC16 for ; Wed, 29 Oct 2008 02:34:27 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: by mu-out-0910.google.com with SMTP id i2so2568678mue.3 for ; Tue, 28 Oct 2008 19:34:26 -0700 (PDT) Received: by 10.181.228.15 with SMTP id f15mr36226bkr.152.1225246098726; Tue, 28 Oct 2008 19:08:18 -0700 (PDT) Received: by 10.181.17.8 with HTTP; Tue, 28 Oct 2008 19:08:18 -0700 (PDT) Message-ID: <1de79840810281908i616a8086r474d4329de184f37@mail.gmail.com> Date: Tue, 28 Oct 2008 22:08:18 -0400 From: "Michael Proto" To: "Marc G. Fournier" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 02:34:30 -0000 On Tue, Oct 28, 2008 at 7:56 PM, Marc G. Fournier wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > I'm trying to run a QEMU VM on top of a FreeBSD 7.x server ... I've tried > the > exact same setup on my desktop, using 192.168.1.x and an fxp device, and it > all > works perfectly, but as soon as I do this on another machine on a public > IP, > I'm not getting any routing, I can't even ping it from the same machine ... > > My first thought was that there was an issue with IP aliases already on > the > bge device, but tried doing the following: > > ifconfig bridge0 destroy > ifconfig tap0 destroy > ifconfig fxp0 -alias 192.168.1.101 > ifconfig fxp0 alias 192.168.1.101 netmask 255.255.255.255 > ifconfig bridge0 create > ifconfig tap0 create > ifconfig bridge0 addm fxp0 addm tap0 up > > on my desktop here and then starting up the qemu image, and all worked as > expected, so having an alias on the interface, before or after, doesn't > make a > difference ... at least with the fxp device ... > > Using VNC to connect to the VM, I can look at the interface, and it says it > is > connected ... and the IP/Gateway are all set right for the network I'm on, > netmask is set to 255.255.255.0, same as on the 'private network' ... > > Please note that when I say "it works" on my private network / desktop, I'm > using it to connect to my work computer, across the Internet, via Windows > RDP, > and it works flawlessly ... > > Looking at /var/log/messages, you can see the bridge being setup: > > > Oct 27 18:53:21 io kernel: bridge0: Ethernet address: ce:44:c7:1b:47:40 > > as well as the tap device: > > Oct 27 18:53:25 io kernel: tap0: Ethernet address: 00:bd:96:ae:67:00 > Oct 27 18:53:41 io kernel: tap0: promiscuous mode enabled > > and the ethernet going promiscuous: > > Oct 26 20:53:56 ganymede kernel: fxp0: promiscuous mode enabled > > So, all I have left is that everything is being setup okay, but there is > something I'm missing here ... something with bridge<->bge, maybe? I've > even > tries to compare the output of 'ifconfig -a' as far as the bridge0 and tap0 > devices are concerned, and other then the mac address, they look identical > also > ... > > So, pointers to what I may be missing here? a sysctl value that I need to > set > for this interface? > > I'm having a little trouble understanding the setup you have. In your test case, is the IP of your VM 192.168.1.101? If so, then I don't think you want that IP aliased on the physical interface of your bridge. The VM NIC will answer for packets destined on your local segment, which the bridge would forward to the physical interface. If you assign the VM's IP to that physical interface, then your host would think that traffic is destined for itself and not pass it to the bridge. If I'm misunderstanding and the 192.168.1.101 alias (or whatever the equiv in your production setup) isn't being used by your VM then I would start looking at the ARP traffic crossing both the tap0, lo0, and physical interfaces. What does an 'ifconfig -a' look like on both systems? netstat -rn? Any packet filtering? -Proto From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 03:35:45 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9D5D1065672; Wed, 29 Oct 2008 03:35:45 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 9E3518FC0A; Wed, 29 Oct 2008 03:35:45 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id 57C8E11A2C85; Wed, 29 Oct 2008 00:35:42 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70756-02; Wed, 29 Oct 2008 00:35:38 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id 63F5711A2872; Wed, 29 Oct 2008 00:35:36 -0300 (ADT) Date: Wed, 29 Oct 2008 00:35:35 -0300 From: "Marc G. Fournier" To: Michael Proto , "Marc G. Fournier" Message-ID: X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 03:35:46 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Tuesday, October 28, 2008 22:08:18 -0400 Michael Proto wrote: > > > > On Tue, Oct 28, 2008 at 7:56 PM, Marc G. Fournier wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > I'm trying to run a QEMU VM on top of a FreeBSD 7.x server ... I've tried the > exact same setup on my desktop, using 192.168.1.x and an fxp device, and it > all > works perfectly, but as soon as I do this on another machine on a public IP, > I'm not getting any routing, I can't even ping it from the same machine ... > > My first thought was that there was an issue with IP aliases already on the > bge device, but tried doing the following: > > ifconfig bridge0 destroy > ifconfig tap0 destroy > ifconfig fxp0 -alias 192.168.1.101 > ifconfig fxp0 alias 192.168.1.101 netmask 255.255.255.255 > ifconfig bridge0 create > ifconfig tap0 create > ifconfig bridge0 addm fxp0 addm tap0 up > > on my desktop here and then starting up the qemu image, and all worked as > expected, so having an alias on the interface, before or after, doesn't make a > difference ... at least with the fxp device ... > > Using VNC to connect to the VM, I can look at the interface, and it says it is > connected ... and the IP/Gateway are all set right for the network I'm on, > netmask is set to 255.255.255.0, same as on the 'private network' ... > > Please note that when I say "it works" on my private network / desktop, I'm > using it to connect to my work computer, across the Internet, via Windows RDP, > and it works flawlessly ... > > Looking at /var/log/messages, you can see the bridge being setup: > > > Oct 27 18:53:21 io kernel: bridge0: Ethernet address: ce:44:c7:1b:47:40 > > as well as the tap device: > > Oct 27 18:53:25 io kernel: tap0: Ethernet address: 00:bd:96:ae:67:00 > Oct 27 18:53:41 io kernel: tap0: promiscuous mode enabled > > and the ethernet going promiscuous: > > Oct 26 20:53:56 ganymede kernel: fxp0: promiscuous mode enabled > > So, all I have left is that everything is being setup okay, but there is > something I'm missing here ... something with bridge<->bge, maybe? I've even > tries to compare the output of 'ifconfig -a' as far as the bridge0 and tap0 > devices are concerned, and other then the mac address, they look identical > also > ... > > So, pointers to what I may be missing here? a sysctl value that I need to set > for this interface? > > > > > I'm having a little trouble understanding the setup you have. In your test > case, is the IP of your VM 192.168.1.101? If so, then I don't think you want > that IP aliased on the physical interface of your bridge. The VM NIC will > answer for packets destined on your local segment, which the bridge would > forward to the physical interface. If you assign the VM's IP to that physical > interface, then your host would think that traffic is destined for itself and > not pass it to the bridge. > > If I'm misunderstanding and the 192.168.1.101 alias (or whatever the equiv in > your production setup) isn't being used by your VM then I would start looking > at the ARP traffic crossing both the tap0, lo0, and physical interfaces. > > What does an 'ifconfig -a' look like on both systems? netstat -rn? Any packet > filtering? I always fear I'm going to send more info then I should, and generate chaos and confusion :) On my test box, the VM is set to 192.168.1.100 ... the alias I added to fxp0 was to simulate what I have on the "public server", where there is a bge0 device with n aliases attached to it ... in no case is the IP assigned to the VM actually aliased onto any interface on the network itself Now, to try and answer your other questions ... netstat -nr on the 192 server shows the IP to be at: > netstat -nr | grep 168.1.100 192.168.1.100 52:54:00:12:34:56 UHLW 1 1 fxp0 1128 which is very odd, as that MAC address is not found via ifconfig -a: > ifconfig -a | grep 52 > while arp -a also shows the 52:54 MAC, although MACs for the ifconfig -a are, in fact: > ifconfig -a | grep ether ether 00:02:b3:ee:da:3e ether 5e:d1:e6:8b:55:50 ether 00:bd:25:18:6d:00 On the server, I'm getting nothing in arp or netstat for the IP in question: io# arp -a | grep 204.213 io# netstat -nr | grep 204.213 io# I've even tried doing a ping *from* the VM (logged in with VNC) to see if it will broadcast itself out, and nothing ... I'm starting QEMU on both servers with the same options as well: qemu -m 512M -net nic -net tap winxp.img just to confirm that I'm not doing anything different for attaching to the network ... So, right now, all I can see as being "different" is bge vs fxp interfaces ... both machines are running 7.x ... - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkH2gcACgkQ4QvfyHIvDvNHUgCgtQORpycxkREQuiogWWOwydWG WfUAoOlRghz5Iy7XYWwwpOI5JgMjmBfi =3Q5f -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 04:14:30 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC1DC1065679 for ; Wed, 29 Oct 2008 04:14:30 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (mail.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC9F8FC0A for ; Wed, 29 Oct 2008 04:14:30 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id DC80C5B46; Tue, 28 Oct 2008 21:14:28 -0700 (PDT) To: "Marc G. Fournier" In-reply-to: Your message of "Wed, 29 Oct 2008 00:35:35 -0300." References: Comments: In-reply-to "Marc G. Fournier" message dated "Wed, 29 Oct 2008 00:35:35 -0300." Date: Tue, 28 Oct 2008 21:14:28 -0700 From: Bakul Shah Message-Id: <20081029041428.DC80C5B46@mail.bitblocks.com> Cc: Michael Proto , freebsd-stable@freebsd.org, freebsd-net@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 04:14:30 -0000 On Wed, 29 Oct 2008 00:35:35 -0300 "Marc G. Fournier" wrote: > netstat -nr on the 192 server shows the IP to be at: > > > netstat -nr | grep 168.1.100 > 192.168.1.100 52:54:00:12:34:56 UHLW 1 1 fxp0 1128 > > which is very odd, as that MAC address is not found via ifconfig -a: > > > ifconfig -a | grep 52 > > > > while arp -a also shows the 52:54 MAC, although MACs for the ifconfig -a are, > > in fact: > > > ifconfig -a | grep ether > ether 00:02:b3:ee:da:3e > ether 5e:d1:e6:8b:55:50 > ether 00:bd:25:18:6d:00 The setup you get with a tap device talking to qemu is this: [host]-tap0----qemu---ed0-[VM] Each end has its own mac address. The VM's NIC (ed0 or rl0 or whatever) gets addresses like 52:54:00:12:34:56. The host will have an arp entry for it once the VM sends an arp packet. But tap0 will have an address assigned by the tap driver, something like 00:bd:xx:xx:xx. If you have two VMs running at the same time on two different machines and they both have identical MAC addresses, that could be part of your problem. But your network topolgy is still not clear. What would help is something like this: You have: machine A (runs VM A1). machine B (runs VM B1). machine C (runs windows). Can you ping from A to C? Can you ping from B to C? Can you ping from A to A1? Can you ping from B to B1? Can you ping from A1 to C? Can you ping from B1 to C? Can you ping from C to A1? Can you ping from C to B1? All of the above should work. Next you can try tcpdump on tap devices to see what is going on. If you are still stumped provide ifconfig -a output on A, B, C, A1 and B1. On windows machine you can do ipconfig/all to get at this information (IIRC). From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 04:38:53 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5C6C1065690; Wed, 29 Oct 2008 04:38:53 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 806DA8FC0C; Wed, 29 Oct 2008 04:38:53 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id 7C06311A2CB9; Wed, 29 Oct 2008 01:38:51 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 84723-01; Wed, 29 Oct 2008 01:38:43 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id CDB4911A2878; Wed, 29 Oct 2008 01:38:41 -0300 (ADT) Date: Wed, 29 Oct 2008 01:38:38 -0300 From: "Marc G. Fournier" To: Bakul Shah , "Marc G. Fournier" Message-ID: <7762927ECAFF08B969F9E5A0@ganymede.hub.org> In-Reply-To: <20081029041428.DC80C5B46@mail.bitblocks.com> References: <20081029041428.DC80C5B46@mail.bitblocks.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Michael Proto , freebsd-stable@freebsd.org, freebsd-net@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 04:38:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I only have one VM running on one server ... - --On Tuesday, October 28, 2008 21:14:28 -0700 Bakul Shah wrote: > On Wed, 29 Oct 2008 00:35:35 -0300 "Marc G. Fournier" > wrote: >> netstat -nr on the 192 server shows the IP to be at: >> >> > netstat -nr | grep 168.1.100 >> 192.168.1.100 52:54:00:12:34:56 UHLW 1 1 fxp0 1128 >> >> which is very odd, as that MAC address is not found via ifconfig -a: >> >> > ifconfig -a | grep 52 >> > >> >> while arp -a also shows the 52:54 MAC, although MACs for the ifconfig -a are, >> >> in fact: >> >> > ifconfig -a | grep ether >> ether 00:02:b3:ee:da:3e >> ether 5e:d1:e6:8b:55:50 >> ether 00:bd:25:18:6d:00 > > The setup you get with a tap device talking to qemu is this: > > [host]-tap0----qemu---ed0-[VM] > > Each end has its own mac address. The VM's NIC (ed0 or rl0 > or whatever) gets addresses like 52:54:00:12:34:56. The host > will have an arp entry for it once the VM sends an arp > packet. But tap0 will have an address assigned by the tap > driver, something like 00:bd:xx:xx:xx. > > If you have two VMs running at the same time on two different > machines and they both have identical MAC addresses, that > could be part of your problem. > > But your network topolgy is still not clear. What would help > is something like this: > > You have: > machine A (runs VM A1). > machine B (runs VM B1). > machine C (runs windows). > > Can you ping from A to C? > Can you ping from B to C? > Can you ping from A to A1? > Can you ping from B to B1? > Can you ping from A1 to C? > Can you ping from B1 to C? > Can you ping from C to A1? > Can you ping from C to B1? > > All of the above should work. Next you can try tcpdump on > tap devices to see what is going on. If you are still > stumped provide ifconfig -a output on A, B, C, A1 and B1. On > windows machine you can do ipconfig/all to get at this > information (IIRC). - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkH6M4ACgkQ4QvfyHIvDvPciwCgi3LwM74g8DPrRC4XlkNQgFD4 eRgAnj6/CUVTkrzwr8GnzawWKlbfCWBc =KgEt -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 05:37:59 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2B961065694 for ; Wed, 29 Oct 2008 05:37:59 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 906D48FC14 for ; Wed, 29 Oct 2008 05:37:59 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id C638C5B46; Tue, 28 Oct 2008 22:37:58 -0700 (PDT) To: "Marc G. Fournier" In-reply-to: Your message of "Wed, 29 Oct 2008 01:38:38 -0300." <7762927ECAFF08B969F9E5A0@ganymede.hub.org> References: <20081029041428.DC80C5B46@mail.bitblocks.com> <7762927ECAFF08B969F9E5A0@ganymede.hub.org> Comments: In-reply-to "Marc G. Fournier" message dated "Wed, 29 Oct 2008 01:38:38 -0300." Date: Tue, 28 Oct 2008 22:37:58 -0700 From: Bakul Shah Message-Id: <20081029053758.C638C5B46@mail.bitblocks.com> Cc: freebsd-net@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 05:37:59 -0000 On Wed, 29 Oct 2008 01:38:38 -0300 "Marc G. Fournier" wrote: > > I only have one VM running on one server ... Ok. Here are some debugging suggestions. - /etc/sysctl.conf should have the following; net.link.tap.user_open=1 net.link.tap.up_on_open=1 run sysctl manually to set these. - if you are running qemu as user foo (and not root) you will need own tap0 foo:foo in /etc/devfs.conf and do /etc/rc.d/devfs restart. - start qemu with -monitor stdio as this will give you a command line interface to qemu. Now you can type info network to see what qemu sees. You should see something like VLAN 0 devices: tap: ifname=tap0 setup_script=/usr/local/etc/qemu-ifup rtl8139 pci macaddr=52:54:00:d2:56:03 - I no longer remember if qemu-ifup is needed but without it you may need to manually bring up tap0. - tcpdump on tap0 to see if ping packets (sent from the VM) get through. Next tcpdump on bridge0. Next tcpdump on bge0. I'd still like to see the topology and ip addresses on various interfaces. From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 06:46:54 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E36CF1065672 for ; Wed, 29 Oct 2008 06:46:54 +0000 (UTC) (envelope-from mgb.fbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id B5FFA8FC18 for ; Wed, 29 Oct 2008 06:46:54 +0000 (UTC) (envelope-from mgb.fbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2888919rvf.43 for ; Tue, 28 Oct 2008 23:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=bTY9HtPTd67GNkXyd9NwgRFS4iGkDEo6WjS8o2Tn/Mo=; b=st0hYPWevp6LMzJJh7pHHreyzhUPEX9VA9JpUat8DBfdBTI/PE4P9Uwj55ncwUpn8i natzWz0nodzooD/mOjzxhpGhJ//Xu4CWZ/D5ndQ5Hhz0g8kxD/qVGRPReLrLYx7cziRf yFcHnFM7OyapHOuwvMnggmfJkjza+0E492DWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=KmLhpoEauAm3VwBbosv770OI3lYA95rtmURvH/u7Dh1BrtdzY+iDXsfzh5ffGLMsCD nmB6Q3ZGP9/mAel6ombWjWfShoV3H+W1mwIHr23r+/iUDxXTH1G+qhKVDdWQSAtUYqOK IRJZx/ezfQWlk6M5VdTtl0YBKploNuZpG+IGU= Received: by 10.140.127.13 with SMTP id z13mr4656490rvc.194.1225261566271; Tue, 28 Oct 2008 23:26:06 -0700 (PDT) Received: by 10.141.68.16 with HTTP; Tue, 28 Oct 2008 23:26:06 -0700 (PDT) Message-ID: <499a3e640810282326p99e0d1eud93c7ecd310c8145@mail.gmail.com> Date: Wed, 29 Oct 2008 08:26:06 +0200 From: "Mihail Balikov" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ixgbe vs mxge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 06:46:55 -0000 Hi, I would like to setup 10gbit bridge on FreeBSD7 , but I'm little bit confused which vendor to choose for the NICs. Can you send me some feed back? regards, Mihail Balikov From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 08:53:31 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EDF21065676; Wed, 29 Oct 2008 08:53:31 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7338FC12; Wed, 29 Oct 2008 08:53:30 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id C57C2116F4; Wed, 29 Oct 2008 09:53:29 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: freebsd-net@freebsd.org Date: Wed, 29 Oct 2008 09:53:28 +0100 User-Agent: KMail/1.9.7 References: <1225203780.00029971.1225190402@10.7.7.3> <200810281613.13719.gizmen@blurp.pl> <490755A3.4050903@FreeBSD.org> In-Reply-To: <490755A3.4050903@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810290953.28237.gizmen@blurp.pl> Cc: Alexander Motin Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 08:53:31 -0000 Tuesday 28 of October 2008 19:10:43 Alexander Motin napisa=C5=82(a): > Bartosz Giza wrote: > >> The CPU time you see there includes much more then just a card > >> handling itself. It also includes CPU time of the most parts of > >> network stack used to process received packet. So if you have NAT, big > >> firewall, netgraph or any other CPU-hungry actions done with packets > >> incoming via em0 you will see such results. > >> Even more interesting is that if bge0 or fxp0 cards will require much > >> CPU time to send packet, this time will also be accounted to em0 > >> process. I have checked this and you are right. When i turned off ipfw; taskq proces= s=20 started to use less cpu. But still what is strange why processing from=20 other cards are counted in em0 taskq ? This is quite strange and in that=20 way em0 taskq process is using more cpu on one of the cores. So what i=20 think the best would be to have only em NICs because processing of the=20 packets would be splitted to those taskq processes is that right ? > > WOW that is weird. Yes i have quite big ipfw firewall and also couple > > of rules from pf. So you are saying that whole overhead from firewall > > is counted to this em taskq process. This is really strange for > > somebody who don't know about this. > > So what in case if i would have two em nic's. How would then overhead > > from firewalls be counted ? Splited to two taskq processes ? > > And another really weird thing is that if i have other card their > > processing are counted to tasq process of different NIC. Why is this > > done in such a way ? > > There is no dedicated processes in system to handle routing, firewall, > netgraph, etc. Many processes would lead to multiple context switches, > bigger latencies and reduced performance. Instead most parts of network > stack implemented in direct call fashion. So NIC receive interrupt > initiates packet handling by doing stack function call, that function > calls another and so on until packet will be completely processed and > transmitted or queued. There is not so many exception from this rule, > for example, dummynet which schedules part of activity to the timer > events. So sometimes you still can see some activity from the swi:net, > dummynet or some other threads. It also tells not so much about who > really consumed the CPU, but more about who initiated that CPU > consumption. Ok, good to know. But how is counted firewall overhead when i would have=20 only bge cards. They don't use taskq so i assume i would see this as system= =20 usage correct ? > In case of two em NICs em0 thread will mostly show load produced by > em0->em1 traffic processing and em1 - load produced by em1->em0 traffic. From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 09:34:47 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD86B1065680 for ; Wed, 29 Oct 2008 09:34:47 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from mellanox.co.il (mail.mellanox.co.il [194.90.237.43]) by mx1.freebsd.org (Postfix) with ESMTP id 24B978FC0C for ; Wed, 29 Oct 2008 09:34:46 +0000 (UTC) (envelope-from eitans@mellanox.co.il) Received: from Internal Mail-Server by MTLPINE1 (envelope-from eitans@mellanox.co.il) with SMTP; 29 Oct 2008 11:34:43 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Oct 2008 11:34:35 +0200 Message-ID: <5D49E7A8952DC44FB38C38FA0D758EADD00926@mtlexch01.mtl.com> In-Reply-To: <20081028210215.GE51033@funkthat.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: It seems that FreeBSD-7.0 does not use the available MTU Thread-Index: Ack5QHcZTu/n8YvdQf2SMre0YlS/FgAZ0eBg References: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> <20081028210215.GE51033@funkthat.com> From: "Eitan Shefi" To: "John-Mark Gurney" Cc: freebsd-net@freebsd.org Subject: RE: It seems that FreeBSD-7.0 does not use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 09:34:48 -0000 This is indeed the problem, thanks. Is this a known issue with FreeBSD-7.0 ? I do not want to hide a potential bug in the NIC driver. Eitan Shefi -----Original Message----- From: John-Mark Gurney [mailto:jmg@funkthat.com]=20 Sent: Tuesday, October 28, 2008 11:02 PM To: Eitan Shefi Cc: freebsd-net@freebsd.org Subject: Re: It seems that FreeBSD-7.0 does not use the available MTU Eitan Shefi wrote this message on Mon, Oct 27, 2008 at 23:53 +0200: > I am using 2 hosts with FreeBSD-7.0 connected directly. > When I change the MTU to a value greater then 1500, for example 3000,=20 > and then send "ping" with message size 2500, from one host to the=20 > other, the other host gets more then one ICMP packet, even thaw the=20 > message that was send is match smaller then the MTU. > =20 > I tried to run this test using a different NIC, but I got the same=20 > behavior. > =20 > I run: > 1. On both hosts: > ifconfig mtnic0 mtu 3000 > 2. Than on one host I run: > tcpdump -i mtnic0 icmp > 3. And on the other host I run: > ping -s 2500 -c 1 OTHER_HOST_IP (ping to "mtnic0" on the other > host) run netstat -rnW to see what the route's MTU is. Most likely you need to set the mtu before you configure an ip address on the interface so that the network's route is created w/ the correct MTU... either readd the network route, or change the mtu of the route for the host: route change -mtu 3000 OTHER_HOST_IP also change it on the network route so that when the host route gets flushed and recreated it will be created w/ the correct MTU... --=20 John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 10:36:47 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 755B61065673 for ; Wed, 29 Oct 2008 10:36:47 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id F21E98FC08 for ; Wed, 29 Oct 2008 10:36:46 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 226412545; Wed, 29 Oct 2008 12:36:45 +0200 Message-ID: <49083CBD.1000701@FreeBSD.org> Date: Wed, 29 Oct 2008 12:36:45 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Bartosz Giza References: <1225203780.00029971.1225190402@10.7.7.3> <200810281613.13719.gizmen@blurp.pl> <490755A3.4050903@FreeBSD.org> <200810290953.28237.gizmen@blurp.pl> In-Reply-To: <200810290953.28237.gizmen@blurp.pl> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 10:36:47 -0000 Bartosz Giza wrote: > Tuesday 28 of October 2008 19:10:43 Alexander Motin napisaÅ‚(a): >> Bartosz Giza wrote: >>>> The CPU time you see there includes much more then just a card >>>> handling itself. It also includes CPU time of the most parts of >>>> network stack used to process received packet. So if you have NAT, big >>>> firewall, netgraph or any other CPU-hungry actions done with packets >>>> incoming via em0 you will see such results. >>>> Even more interesting is that if bge0 or fxp0 cards will require much >>>> CPU time to send packet, this time will also be accounted to em0 >>>> process. > > I have checked this and you are right. When i turned off ipfw; taskq process > started to use less cpu. But still what is strange why processing from > other cards are counted in em0 taskq ? What you mean by "processing from other cards"? em0 taskq counts all processing caused by packets incoming via em0 up to and including processing of their transmission by bge/fxp drivers. Same is about bge/fxp. If bge/fxp/em drivers would have separate transmission processes - you would see them, but they don't, so their CPU time accounted to the caller. > This is quite strange and in that > way em0 taskq process is using more cpu on one of the cores. So what i > think the best would be to have only em NICs because processing of the > packets would be splitted to those taskq processes is that right ? em0 processes packets in separate process named taskq, bge does it directly in interrupt handler process. There is no principal difference for you I think. > Ok, good to know. But how is counted firewall overhead when i would have > only bge cards. They don't use taskq so i assume i would see this as system > usage correct ? You would see a lot of interrupt time in this case. -- Alexander Motin From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 12:37:49 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAD611065729; Wed, 29 Oct 2008 12:37:49 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 6DA4E8FC22; Wed, 29 Oct 2008 12:37:49 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id E83FC116F8; Wed, 29 Oct 2008 13:37:46 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: Alexander Motin Date: Wed, 29 Oct 2008 13:37:44 +0100 User-Agent: KMail/1.9.7 References: <1225203780.00029971.1225190402@10.7.7.3> <200810290953.28237.gizmen@blurp.pl> <49083CBD.1000701@FreeBSD.org> In-Reply-To: <49083CBD.1000701@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810291337.44899.gizmen@blurp.pl> Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 12:37:49 -0000 Wednesday 29 of October 2008 11:36:45 Alexander Motin napisa=C5=82(a): > Bartosz Giza wrote: > > Tuesday 28 of October 2008 19:10:43 Alexander Motin napisa=C5=82(a): > >> Bartosz Giza wrote: > >>>> The CPU time you see there includes much more then just a card > >>>> handling itself. It also includes CPU time of the most parts of > >>>> network stack used to process received packet. So if you have NAT, > >>>> big firewall, netgraph or any other CPU-hungry actions done with > >>>> packets incoming via em0 you will see such results. > >>>> Even more interesting is that if bge0 or fxp0 cards will require > >>>> much CPU time to send packet, this time will also be accounted to > >>>> em0 process. > > > > I have checked this and you are right. When i turned off ipfw; taskq > > process started to use less cpu. But still what is strange why > > processing from other cards are counted in em0 taskq ? > > What you mean by "processing from other cards"? em0 taskq counts all > processing caused by packets incoming via em0 up to and including > processing of their transmission by bge/fxp drivers. Same is about > bge/fxp. If bge/fxp/em drivers would have separate transmission > processes - you would see them, but they don't, so their CPU time > accounted to the caller. Ok now i think understand this. If packet enters via em0 all processing of= =20 packet filters(and others) way up to sending packet via other interface is= =20 counted to em0 taskq( even overhead of packet filter when packet leaves the= =20 interface) ? Basicly overhead from passing packet to packet filter twice=20 (on in and out) > > This is quite strange and in that > > way em0 taskq process is using more cpu on one of the cores. So what i > > think the best would be to have only em NICs because processing of the > > packets would be splitted to those taskq processes is that right ? > > em0 processes packets in separate process named taskq, bge does it > directly in interrupt handler process. There is no principal difference > for you I think. So now i am lost again. If packet filtering on bge card is counted to irq17= :=20 bge0 process so i think it should use more cpu. =46rom what you wrote there should be no difference for me if card use tas= q=20 or irq. Those processes do exactly the same thing? If that is true so why=20 there is so much difference in cpu usage: 20 root 1 -68 - 0K 8K - 0 161:01 18.75% em0 taskq 21 root 1 -68 - 0K 8K WAIT 1 100:10 5.47% irq17: bge0 23 root 1 -68 - 0K 8K WAIT 0 75:31 2.98% irq16: fxp1 If what you wrote is true that overhead of incomming packet on bge0 should= =20 be counted to irq17: bge0 So don't understand why there is so big cpu usage on em0. From what you are= =20 saying irq17 and em0 taskq should have similar usage. Even more bge0 passes= =20 about two times more traffic than em0. I simply don't understand this. > > Ok, good to know. But how is counted firewall overhead when i would > > have only bge cards. They don't use taskq so i assume i would see this > > as system usage correct ? > > You would see a lot of interrupt time in this case. From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 13:34:08 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12CBD10656DC for ; Wed, 29 Oct 2008 13:34:08 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 946728FC13 for ; Wed, 29 Oct 2008 13:34:07 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 226430866; Wed, 29 Oct 2008 15:34:06 +0200 Message-ID: <4908664D.4090900@FreeBSD.org> Date: Wed, 29 Oct 2008 15:34:05 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Bartosz Giza References: <1225203780.00029971.1225190402@10.7.7.3> <200810290953.28237.gizmen@blurp.pl> <49083CBD.1000701@FreeBSD.org> <200810291337.44899.gizmen@blurp.pl> In-Reply-To: <200810291337.44899.gizmen@blurp.pl> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 29 Oct 2008 14:23:21 +0000 Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 13:34:08 -0000 Bartosz Giza wrote: > So now i am lost again. If packet filtering on bge card is counted to irq17: > bge0 process so i think it should use more cpu. > From what you wrote there should be no difference for me if card use tasq > or irq. Those processes do exactly the same thing? If that is true so why > there is so much difference in cpu usage: > > 20 root 1 -68 - 0K 8K - 0 161:01 18.75% em0 taskq > 21 root 1 -68 - 0K 8K WAIT 1 100:10 5.47% irq17: bge0 > 23 root 1 -68 - 0K 8K WAIT 0 75:31 2.98% irq16: fxp1 > > If what you wrote is true that overhead of incomming packet on bge0 should > be counted to irq17: bge0 > So don't understand why there is so big cpu usage on em0. From what you are > saying irq17 and em0 taskq should have similar usage. Even more bge0 passes > about two times more traffic than em0. I simply don't understand this. > So don't understand why there is so big cpu usage on em0. Have no idea, there are too much possibilities to answer without profiling. Different incoming packet rates, different firewall match patterns in opposite directions, different card's hardware at least. I have noticed that even different types of em cards may have twice as different CPU usage due to using different interrupt moderation techniques. > bge0 passes about two times more traffic than em0 Incoming or outgoing? Outgoing does not affect time accounting as much as incoming, because transmit interrupt handler usually does not call network stack. -- Alexander Motin From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 16:03:41 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FEE810656B0; Wed, 29 Oct 2008 16:03:41 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2A1B28FC2A; Wed, 29 Oct 2008 16:03:41 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9TG3fbM018906; Wed, 29 Oct 2008 16:03:41 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9TG3fLu018902; Wed, 29 Oct 2008 16:03:41 GMT (envelope-from linimon) Date: Wed, 29 Oct 2008 16:03:41 GMT Message-Id: <200810291603.m9TG3fLu018902@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/128448: [nfs] 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 16:03:41 -0000 Old Synopsis: 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs) New Synopsis: [nfs] 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs) Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Wed Oct 29 16:01:47 UTC 2008 Responsible-Changed-Why: This is really more of an NFS problem I think, but perhaps the folks on -net can weigh in here. http://www.freebsd.org/cgi/query-pr.cgi?pr=128448 From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 17:39:09 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DA47106568B for ; Wed, 29 Oct 2008 17:39:09 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 1AAAC8FC16 for ; Wed, 29 Oct 2008 17:39:09 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (sbd8c3lkz5gj3s1f@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id m9THd8Ye043156; Wed, 29 Oct 2008 10:39:08 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id m9THd7ne043155; Wed, 29 Oct 2008 10:39:07 -0700 (PDT) (envelope-from jmg) Date: Wed, 29 Oct 2008 10:39:07 -0700 From: John-Mark Gurney To: Eitan Shefi Message-ID: <20081029173907.GG51033@funkthat.com> Mail-Followup-To: Eitan Shefi , freebsd-net@freebsd.org References: <5D49E7A8952DC44FB38C38FA0D758EADC72E72@mtlexch01.mtl.com> <5D49E7A8952DC44FB38C38FA0D758EADCC5FB7@mtlexch01.mtl.com> <20081028210215.GE51033@funkthat.com> <5D49E7A8952DC44FB38C38FA0D758EADD00926@mtlexch01.mtl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5D49E7A8952DC44FB38C38FA0D758EADD00926@mtlexch01.mtl.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Wed, 29 Oct 2008 10:39:08 -0700 (PDT) Cc: freebsd-net@freebsd.org Subject: Re: It seems that FreeBSD-7.0 does not use the available MTU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 17:39:09 -0000 Eitan Shefi wrote this message on Wed, Oct 29, 2008 at 11:34 +0200: > This is indeed the problem, thanks. > > Is this a known issue with FreeBSD-7.0 ? > I do not want to hide a potential bug in the NIC driver. This is a known issue since I fixed the transmit code not to munge the route's MTU so that the route's mtu field would have meaning and allow you to have hosts w/ different MTU's on the network (I've done this in production)... This is definately not a bug in the NIC driver... > -----Original Message----- > From: John-Mark Gurney [mailto:jmg@funkthat.com] > Sent: Tuesday, October 28, 2008 11:02 PM > To: Eitan Shefi > Cc: freebsd-net@freebsd.org > Subject: Re: It seems that FreeBSD-7.0 does not use the available MTU > > Eitan Shefi wrote this message on Mon, Oct 27, 2008 at 23:53 +0200: > > I am using 2 hosts with FreeBSD-7.0 connected directly. > > When I change the MTU to a value greater then 1500, for example 3000, > > and then send "ping" with message size 2500, from one host to the > > other, the other host gets more then one ICMP packet, even thaw the > > message that was send is match smaller then the MTU. > > > > I tried to run this test using a different NIC, but I got the same > > behavior. > > > > I run: > > 1. On both hosts: > > ifconfig mtnic0 mtu 3000 > > 2. Than on one host I run: > > tcpdump -i mtnic0 icmp > > 3. And on the other host I run: > > ping -s 2500 -c 1 OTHER_HOST_IP (ping to "mtnic0" on the other > > host) > > run netstat -rnW to see what the route's MTU is. Most likely you need > to set the mtu before you configure an ip address on the interface so > that the network's route is created w/ the correct MTU... > > either readd the network route, or change the mtu of the route for the > host: > route change -mtu 3000 OTHER_HOST_IP > > also change it on the network route so that when the host route gets > flushed and recreated it will be created w/ the correct MTU... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 23:56:28 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 972CC106567F for ; Wed, 29 Oct 2008 23:56:28 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 671978FC0A for ; Wed, 29 Oct 2008 23:56:28 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id E07BA11A2CAB; Wed, 29 Oct 2008 20:56:27 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 37792-02; Wed, 29 Oct 2008 20:56:25 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id D51E811A2874; Wed, 29 Oct 2008 20:56:24 -0300 (ADT) Date: Wed, 29 Oct 2008 20:56:22 -0300 From: "Marc G. Fournier" To: Bakul Shah , "Marc G. Fournier" Message-ID: <10559F9E70D606BEE694D258@ganymede.hub.org> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-net@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 23:56:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You nailed it ... I was missing the 'tap.up_on_open=1' ... once I put that in place, it works like a charm ... Thanks ... - --On Tuesday, October 28, 2008 22:37:58 -0700 Bakul Shah wrote: > On Wed, 29 Oct 2008 01:38:38 -0300 "Marc G. Fournier" > wrote: >> >> I only have one VM running on one server ... > > Ok. > > Here are some debugging suggestions. > - /etc/sysctl.conf should have the following; > net.link.tap.user_open=1 > net.link.tap.up_on_open=1 > run sysctl manually to set these. > > - if you are running qemu as user foo (and not root) you will need > own tap0 foo:foo > in /etc/devfs.conf and do /etc/rc.d/devfs restart. > > - start qemu with -monitor stdio as this will give you a > command line interface to qemu. Now you can type > info network > to see what qemu sees. You should see something like > VLAN 0 devices: > tap: ifname=tap0 setup_script=/usr/local/etc/qemu-ifup > rtl8139 pci macaddr=52:54:00:d2:56:03 > > - I no longer remember if qemu-ifup is needed but without it > you may need to manually bring up tap0. > > - tcpdump on tap0 to see if ping packets (sent from the VM) > get through. Next tcpdump on bridge0. Next tcpdump on bge0. > > I'd still like to see the topology and ip addresses on > various interfaces. - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkI+CYACgkQ4QvfyHIvDvNuawCfQbUzADaZHkqvVRt9fwZ7H1Gm MGIAoJCUFsfUoCh2ty41nmjDGsSq0ec4 =n/85 -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 08:39:49 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 411751065677 for ; Thu, 30 Oct 2008 08:39:49 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id B12698FC20 for ; Thu, 30 Oct 2008 08:39:48 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from wind.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 30 Oct 2008 09:29:30 +0100 id 0002E00F.4909706A.0000BACC From: Milan Obuch To: freebsd-net@freebsd.org Date: Thu, 30 Oct 2008 08:29:35 +0100 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200810300829.35980.freebsd-net@dino.sk> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: re weird bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 08:39:49 -0000 Hi, yesterday I csup'ped my 8-current sources on my MSI Wind netbook (again) and tried to build new kernel. There is again a problem with re interface. It just does not work, with following re0: port 0xc000-0xc0ff mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on pci1 re0: Chip rev. 0x34800000 re0: MAC rev. 0x00200000 re0: PHY write failed re0: PHY write failed re0: MII without any phy! device_attach: re0 attach returned 6 in dmesg. This happened already some time ago, but I did not investigate it, just reverted to older kernel and later it disappeared. Today I found there is some timing issue or racing condition - when I boot with verbose message logging, it works with expected re0: port 0xc000-0xc0ff mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on pci1 re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xffd10000 re0: MSI count : 1 re0: Chip rev. 0x34800000 re0: MAC rev. 0x00200000 miibus0: on re0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re0: bpf attached re0: Ethernet address: 00:1d:92:59:f5:8b re0: [MPSAFE] re0: [FILTER] So I think some issue could be in miibus or rlphy code. I am using stripped down kernel with no interfaces, I kldload if_re (and miibus as dependency), if that matters. Has anybody an idea or patch to test? Something similar appeared recently on list, but I would like to get issue commented first (maybe with a pointer to patch). Regards, Milan From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 10:29:01 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12D211065670 for ; Thu, 30 Oct 2008 10:29:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id CD1008FC22 for ; Thu, 30 Oct 2008 10:29:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so482473rvf.43 for ; Thu, 30 Oct 2008 03:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=6t0+csCpAHvqFF9surUhZih/Y6zcsZnjjeo2xVKErjo=; b=qNKoxOmI5VEKrvgwyceddaN0XSp31cxwRJfNdnlkeJbpgzeRlZwUvaxgxl5Cj8uyLM wqa4vJY+5wilqDZytdYyDx6mwvn7uqPZ5gMStMTJHtz/C4SR/k+BPCGcSRPGdliiJ5eX gbkR8hcdC7z3LwLyJYBYizbxhkkjfjN4tC8Z0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Dkr/lcdA/pZRraxW4JmuiScLv4+14XUzXXauIItj4rvOssIAMkzeqKmawuDOCivuLe 9C0ev5hVKTBQB5AfAunAuxdxIDI8OXXnf6N5dRa5Q/HaPIhEsZxplSb3x10tNLQqgE73 Wyzwtj9Y6TSz5kaQe+F8ayxgNOqXHm8k0QGTo= Received: by 10.140.127.20 with SMTP id z20mr5553300rvc.77.1225362540181; Thu, 30 Oct 2008 03:29:00 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id f21sm3147055rvb.5.2008.10.30.03.28.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 03:28:58 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m9UAQwK3080513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Oct 2008 19:26:58 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m9UAQuWO080512; Thu, 30 Oct 2008 19:26:56 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 30 Oct 2008 19:26:56 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20081030102656.GD78796@cdnetworks.co.kr> References: <200810300829.35980.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200810300829.35980.freebsd-net@dino.sk> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: re weird bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 10:29:01 -0000 On Thu, Oct 30, 2008 at 08:29:35AM +0100, Milan Obuch wrote: > Hi, > yesterday I csup'ped my 8-current sources on my MSI Wind netbook (again) and > tried to build new kernel. There is again a problem with re interface. It > just does not work, with following > > re0: port 0xc000-0xc0ff mem > 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on pci1 > re0: Chip rev. 0x34800000 > re0: MAC rev. 0x00200000 > re0: PHY write failed > re0: PHY write failed > re0: MII without any phy! > device_attach: re0 attach returned 6 > > in dmesg. This happened already some time ago, but I did not investigate it, > just reverted to older kernel and later it disappeared. Today I found there > is some timing issue or racing condition - when I boot with verbose message > logging, it works with expected > > re0: port 0xc000-0xc0ff mem > 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on pci1 > re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xffd10000 > re0: MSI count : 1 > re0: Chip rev. 0x34800000 > re0: MAC rev. 0x00200000 > miibus0: on re0 > rlphy0: PHY 1 on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > re0: bpf attached > re0: Ethernet address: 00:1d:92:59:f5:8b > re0: [MPSAFE] > re0: [FILTER] > > So I think some issue could be in miibus or rlphy code. > I am using stripped down kernel with no interfaces, I kldload if_re (and > miibus as dependency), if that matters. > Has anybody an idea or patch to test? Something similar appeared recently on > list, but I would like to get issue commented first (maybe with a pointer to > patch). > That's known issue for newer RealTek PCIe controllers. Would you please try the patch at the following URL? http://people.freebsd.org/~yongari/re/re.ephy.patch.20081021 Since it's not easy to reproduce this issue please make sure to (cold and warm) reboot several times until you can put confidence in the patch. -- Regards, Pyun YongHyeon From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 12:51:23 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D671106567C; Thu, 30 Oct 2008 12:51:23 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 2B5EA8FC20; Thu, 30 Oct 2008 12:51:23 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id 89102116FE; Thu, 30 Oct 2008 13:51:21 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: freebsd-net@freebsd.org Date: Thu, 30 Oct 2008 13:51:20 +0100 User-Agent: KMail/1.9.7 References: <1225203780.00029971.1225190402@10.7.7.3> <200810291337.44899.gizmen@blurp.pl> <4908664D.4090900@FreeBSD.org> In-Reply-To: <4908664D.4090900@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810301351.20288.gizmen@blurp.pl> Cc: Alexander Motin Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 12:51:23 -0000 Wednesday 29 of October 2008 14:34:05 Alexander Motin napisa=C5=82(a): > Bartosz Giza wrote: > > So now i am lost again. If packet filtering on bge card is counted to > > irq17: bge0 process so i think it should use more cpu. > > From what you wrote there should be no difference for me if card use > > tasq or irq. Those processes do exactly the same thing? If that is true > > so why there is so much difference in cpu usage: > > > > 20 root 1 -68 - 0K 8K - 0 161:01 18.75% em0 > > taskq 21 root 1 -68 - 0K 8K WAIT 1 100:10 5.47% > > irq17: bge0 23 root 1 -68 - 0K 8K WAIT 0 75:31=20 > > 2.98% irq16: fxp1 > > > > If what you wrote is true that overhead of incomming packet on bge0 > > should be counted to irq17: bge0 > > So don't understand why there is so big cpu usage on em0. From what you > > are saying irq17 and em0 taskq should have similar usage. Even more > > bge0 passes about two times more traffic than em0. I simply don't > > understand this. > > > > So don't understand why there is so big cpu usage on em0. > > Have no idea, there are too much possibilities to answer without > profiling. Different incoming packet rates, different firewall match > patterns in opposite directions, different card's hardware at least. I > have noticed that even different types of em cards may have twice as > different CPU usage due to using different interrupt moderation > techniques. THanks for all hints that you gave me. I have found what cause this high cp= u=20 usage.... ipfw :) I have a lot of rules in ipfw and actually i have tune=20 them up and after that em0 taskq process sterted to use less cpu(similar to= =20 bge0). It was bad firewall design Could you tell me which chipset from intel would you recommend or you know= =20 that is best from all that you tested. Once again thanks for answers :) From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 13:58:40 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CB5A106567B for ; Thu, 30 Oct 2008 13:58:40 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 01FDD8FC1A for ; Thu, 30 Oct 2008 13:58:39 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 226527048; Thu, 30 Oct 2008 15:58:39 +0200 Message-ID: <4909BD8E.8080402@FreeBSD.org> Date: Thu, 30 Oct 2008 15:58:38 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Bartosz Giza References: <1225203780.00029971.1225190402@10.7.7.3> <200810291337.44899.gizmen@blurp.pl> <4908664D.4090900@FreeBSD.org> <200810301351.20288.gizmen@blurp.pl> In-Reply-To: <200810301351.20288.gizmen@blurp.pl> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 13:58:40 -0000 Bartosz Giza wrote: > Could you tell me which chipset from intel would you recommend or you know > that is best from all that you tested. I haven't investigated that specially to recommend something as most of my cards are integrated, but now I have newer systems with: em0@pci13:0:0: class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82573E Intel Corporation 82573E Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet cap 01[c8] = powerspec 2 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[e0] = PCI-Express 1 endpoint and older systems with: em0@pci2:10:0: class=0x020000 card=0x12138086 chip=0x10138086 rev=0x00 hdr=0x00 vendor = 'Intel Corporation' device = '82541EI Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet cap 01[dc] = powerspec 2 supports D0 D3 current D0 cap 07[e4] = PCI-X supports 2048 burst read, 1 split transaction I can't compare load directly now as load is different, but I have noticed benefits after replacing old systems with new ones. General recommendation is usual: newer is usually better. :) -- Alexander Motin From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 19:21:17 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CE9B106567F; Thu, 30 Oct 2008 19:21:17 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id BC6178FC1E; Thu, 30 Oct 2008 19:21:16 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id m9UJLEOx098456; Thu, 30 Oct 2008 20:21:15 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id m9UJLEZC098455; Thu, 30 Oct 2008 20:21:14 +0100 (CET) (envelope-from olli) Date: Thu, 30 Oct 2008 20:21:14 +0100 (CET) Message-Id: <200810301921.m9UJLEZC098455@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, freebsd-net@FreeBSD.ORG X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 30 Oct 2008 20:21:15 +0100 (CET) Cc: Subject: LevelOne WPC-0301 11g Wireless CardBus X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 19:21:17 -0000 Hello, I bought a LevelOne WPC-0301 11g Wireless CardBus Adapter today. According to the box it is "v6". The ral(4) man- page mentions only v2, but that one is ancient and can't be bought anymore. So, enabling the debug sysctl gives this in dmesg: cardbus0: Expecting link target, got 0x0 cardbus0: at device 0.0 (no driver attached) cardbus0: CIS pointer is 0x102 cardbus0: CIS in BAR 0x14 cardbus0: Expecting link target, got 0x0 cardbus0: Warning: Bogus CIS ignored cardbus0: at device 0.0 (no driver attached) I tried the card in a different notebook, same thing. Anything I can do, except drop the new card in the dustbin? :-( Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd We're sysadmins. To us, data is a protocol-overhead. From owner-freebsd-net@FreeBSD.ORG Thu Oct 30 21:41:52 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1948B106567E for ; Thu, 30 Oct 2008 21:41:52 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE6F8FC12 for ; Thu, 30 Oct 2008 21:41:51 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 30 Oct 2008 22:41:46 +0100 id 0002E032.490A2A1A.0000D3DD From: Milan Obuch To: freebsd-net@freebsd.org, pyunyh@gmail.com Date: Thu, 30 Oct 2008 22:41:01 +0100 User-Agent: KMail/1.9.10 References: <200810300829.35980.freebsd-net@dino.sk> <20081030102656.GD78796@cdnetworks.co.kr> In-Reply-To: <20081030102656.GD78796@cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810302241.01863.freebsd-net@dino.sk> Cc: Subject: Re: re weird bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 21:41:52 -0000 On Thursday 30 October 2008 11:26:56 Pyun YongHyeon wrote: > On Thu, Oct 30, 2008 at 08:29:35AM +0100, Milan Obuch wrote: > > Hi, > > yesterday I csup'ped my 8-current sources on my MSI Wind netbook (again) > > and tried to build new kernel. There is again a problem with re > > interface. It just does not work, with following > > > > re0: port 0xc000-0xc0ff > > mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on > > pci1 re0: Chip rev. 0x34800000 > > re0: MAC rev. 0x00200000 > > re0: PHY write failed > > re0: PHY write failed > > re0: MII without any phy! > > device_attach: re0 attach returned 6 > > > > in dmesg. This happened already some time ago, but I did not investigate > > it, just reverted to older kernel and later it disappeared. Today I > > found there is some timing issue or racing condition - when I boot with > > verbose message logging, it works with expected > > > > re0: port 0xc000-0xc0ff > > mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on > > pci1 re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xffd10000 > > re0: MSI count : 1 > > re0: Chip rev. 0x34800000 > > re0: MAC rev. 0x00200000 > > miibus0: on re0 > > rlphy0: PHY 1 on miibus0 > > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > re0: bpf attached > > re0: Ethernet address: 00:1d:92:59:f5:8b > > re0: [MPSAFE] > > re0: [FILTER] > > > > So I think some issue could be in miibus or rlphy code. > > I am using stripped down kernel with no interfaces, I kldload if_re (and > > miibus as dependency), if that matters. > > Has anybody an idea or patch to test? Something similar appeared > > recently on list, but I would like to get issue commented first (maybe > > with a pointer to patch). > > That's known issue for newer RealTek PCIe controllers. Would you > please try the patch at the following URL? > http://people.freebsd.org/~yongari/re/re.ephy.patch.20081021 > > Since it's not easy to reproduce this issue please make sure to > (cold and warm) reboot several times until you can put confidence > in the patch. I tried, but no change - with patch applied re still does not work unless I boot with verbose logging, no matter whether I boot cold or warm. Regards, Milan From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 01:13:28 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 798441065674 for ; Fri, 31 Oct 2008 01:13:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id 408518FC08 for ; Fri, 31 Oct 2008 01:13:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so878312rvf.43 for ; Thu, 30 Oct 2008 18:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=mgQW47bhkQE7ot/t4mt8xT6gHMdV6uq9DQKUflMULgo=; b=NUXMqMxPG0Aq0R9tRQvMEM1raXysqwHsNLGb+0TEAdD7y2ri0EvV4mIAypeU4crbr7 NQLdnfqU5X4i7PuwMQZi7CkTE/4vCiyKeLngivPkIZXqGNvy0o34CvhvlMsGDEERsavX ZR5ue7SS4vait5D6IyXvhN+Ps/euHJ6jk8kFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=X7QoPJhrMMdSpnJe/7B5+rKQRHWsIGFGAZX/qwtLtQP73IahP6vWPXoxdPaVNRWXft nROqlg0sTQ8JizzfFlUyEZG+IkyyenSOv1C4bJk4N9943o/8H7zdAk2oZdRRmEwGI9bR n9r60GzjojWzS74UvEsBLQW4SPRr4FB0isMnI= Received: by 10.140.163.12 with SMTP id l12mr6253749rve.137.1225415608051; Thu, 30 Oct 2008 18:13:28 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id b39sm3501636rvf.0.2008.10.30.18.13.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 18:13:26 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m9V1BQuJ083095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 31 Oct 2008 10:11:26 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m9V1BPVG083094; Fri, 31 Oct 2008 10:11:25 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 31 Oct 2008 10:11:25 +0900 From: Pyun YongHyeon To: Milan Obuch Message-ID: <20081031011125.GC82781@cdnetworks.co.kr> References: <200810300829.35980.freebsd-net@dino.sk> <20081030102656.GD78796@cdnetworks.co.kr> <200810302241.01863.freebsd-net@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200810302241.01863.freebsd-net@dino.sk> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: re weird bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 01:13:28 -0000 On Thu, Oct 30, 2008 at 10:41:01PM +0100, Milan Obuch wrote: > On Thursday 30 October 2008 11:26:56 Pyun YongHyeon wrote: > > On Thu, Oct 30, 2008 at 08:29:35AM +0100, Milan Obuch wrote: > > > Hi, > > > yesterday I csup'ped my 8-current sources on my MSI Wind netbook (again) > > > and tried to build new kernel. There is again a problem with re > > > interface. It just does not work, with following > > > > > > re0: port 0xc000-0xc0ff > > > mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on > > > pci1 re0: Chip rev. 0x34800000 > > > re0: MAC rev. 0x00200000 > > > re0: PHY write failed > > > re0: PHY write failed > > > re0: MII without any phy! > > > device_attach: re0 attach returned 6 > > > > > > in dmesg. This happened already some time ago, but I did not investigate > > > it, just reverted to older kernel and later it disappeared. Today I > > > found there is some timing issue or racing condition - when I boot with > > > verbose message logging, it works with expected > > > > > > re0: port 0xc000-0xc0ff > > > mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq 16 at device 0.0 on > > > pci1 re0: Reserved 0x1000 bytes for rid 0x18 type 3 at 0xffd10000 > > > re0: MSI count : 1 > > > re0: Chip rev. 0x34800000 > > > re0: MAC rev. 0x00200000 > > > miibus0: on re0 > > > rlphy0: PHY 1 on miibus0 > > > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > > re0: bpf attached > > > re0: Ethernet address: 00:1d:92:59:f5:8b > > > re0: [MPSAFE] > > > re0: [FILTER] > > > > > > So I think some issue could be in miibus or rlphy code. > > > I am using stripped down kernel with no interfaces, I kldload if_re (and > > > miibus as dependency), if that matters. > > > Has anybody an idea or patch to test? Something similar appeared > > > recently on list, but I would like to get issue commented first (maybe > > > with a pointer to patch). > > > > That's known issue for newer RealTek PCIe controllers. Would you > > please try the patch at the following URL? > > http://people.freebsd.org/~yongari/re/re.ephy.patch.20081021 > > > > Since it's not easy to reproduce this issue please make sure to > > (cold and warm) reboot several times until you can put confidence > > in the patch. > > I tried, but no change - with patch applied re still does not work unless I > boot with verbose logging, no matter whether I boot cold or warm. > Thanks for testing. If you look into patched if_re.c you can see a "#if 1" in function re_ephy_config(). How about changing it to "#if 0" to enable more aggresive reprogramming for EPHY register? -- Regards, Pyun YongHyeon From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 03:22:22 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FAB1106567B for ; Fri, 31 Oct 2008 03:22:22 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from infoweapons.com (mail0.infoweapons.net [204.2.248.50]) by mx1.freebsd.org (Postfix) with ESMTP id C70DF8FC22 for ; Fri, 31 Oct 2008 03:22:21 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from ([58.71.34.146]) by mail0.infoweapons.com with ESMTP id 4321444.1241783; Thu, 30 Oct 2008 23:06:50 -0400 Received: from [10.3.1.41] ([10.3.1.41]) by cebexch01.cebu.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 31 Oct 2008 11:06:49 +0800 Message-ID: <490A7593.9010209@infoweapons.com> Date: Fri, 31 Oct 2008 11:03:47 +0800 From: "Ronnel P. Maglasang" User-Agent: Thunderbird 1.5 (X11/20060613) MIME-Version: 1.0 To: freebsd-net@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 31 Oct 2008 03:06:49.0992 (UTC) FILETIME=[B7B7C880:01C93B05] Cc: Subject: rate limiting icmp behavior X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 03:22:22 -0000 Hi All, Pardon if this has been posted. What is really the behavior of the system when it rate limit icmp (e.g. ICMP response)? Does it drop the excess of the outbound ICMP responses? If so, is their a way to see dropped responses from logs or other mechanism? Can this be turned-on at the inbound? Rate limit incoming ICMP request? Did someone experienced system reboots/hangup from this? I've search gnats but I coudn't find bugs related to this. Thanks, sho From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 03:32:05 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3893C106568A; Fri, 31 Oct 2008 03:32:05 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [66.246.138.153]) by mx1.freebsd.org (Postfix) with ESMTP id 0A58C8FC1C; Fri, 31 Oct 2008 03:32:04 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id C9CB2195FD; Thu, 30 Oct 2008 23:14:19 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,RDNS_NONE autolearn=no version=3.2.5 Received: from tau.draftnet (unknown [66.45.161.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Thu, 30 Oct 2008 23:14:19 -0400 (EDT) Date: Fri, 31 Oct 2008 04:13:50 +0000 From: Bruce Cran To: Ivan Voras Message-ID: <20081031041350.4e25edc7@tau.draftnet> In-Reply-To: References: <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> <4906EE31.3080400@samoylyk.sumy.ua> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 03:32:05 -0000 On Tue, 28 Oct 2008 12:21:32 +0100 Ivan Voras wrote: > Oleksandr Samoylyk wrote: > > Ivan Voras wrote: > >> Bartosz Giza wrote: > >> > >>> Another question is why em0 taskq is eating so much cpu ? BGE > >>> interface is actually one that pushes 2 times more packets than > >>> em0 and it uses about half cpu comparing to em0. Is that not > >>> strange ? Could someone tell my why is this happening ? BGE is > >>> faster ? or maybe i can tune some > >> > >> I have the same problem - em0 taskq eating incredible amounts of > >> CPU. If you find a solution, contact me! > >> > >> > >=20 > > It could be not just a problem with em driver. > > Firstly, it's good to make profiling and find out what exactly eats > > CPU >=20 > Can you give any pointers on how to profile the driver and/or the > network stack? >=20 =46rom what I remember from a couple of years ago you can use hwpmc in system mode to profile the kernel if you have a supported CPU - I certainly remember seeing the output of gprof tell me the UDP checksum function was taking most of the time in a test I ran. To get started you need options HWPMC_HOOKS and device hwpmc in your kernel config (hwpmc can also be a module) - then you run pmcstat to run the test. There's lots more information at http://wiki.freebsd.org/PmcTools --=20 Bruce Cran From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 09:30:49 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEB3E106568C for ; Fri, 31 Oct 2008 09:30:49 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 638F38FC25 for ; Fri, 31 Oct 2008 09:30:49 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Fri, 31 Oct 2008 10:30:41 +0100 id 0002E00F.490AD041.0000E3A4 From: Milan Obuch To: freebsd-net@freebsd.org, pyunyh@gmail.com Date: Fri, 31 Oct 2008 10:29:55 +0100 User-Agent: KMail/1.9.10 References: <200810300829.35980.freebsd-net@dino.sk> <200810302241.01863.freebsd-net@dino.sk> <20081031011125.GC82781@cdnetworks.co.kr> In-Reply-To: <20081031011125.GC82781@cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810311029.56471.freebsd-net@dino.sk> Cc: Subject: Re: re weird bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 09:30:49 -0000 On Friday 31 October 2008 02:11:25 Pyun YongHyeon wrote: > On Thu, Oct 30, 2008 at 10:41:01PM +0100, Milan Obuch wrote: > > On Thursday 30 October 2008 11:26:56 Pyun YongHyeon wrote: > > > On Thu, Oct 30, 2008 at 08:29:35AM +0100, Milan Obuch wrote: > > > > Hi, > > > > yesterday I csup'ped my 8-current sources on my MSI Wind netbook > > > > (again) and tried to build new kernel. There is again a problem > > > > with re interface. It just does not work, with following > > > > > > > > re0: port > > > > 0xc000-0xc0ff mem 0xffd10000-0xffd10fff,0xffd00000-0xffd0ffff irq > > > > 16 at device 0.0 on pci1 re0: Chip rev. 0x34800000 > > > > re0: MAC rev. 0x00200000 > > > > re0: PHY write failed > > > > re0: PHY write failed > > > > re0: MII without any phy! > > > > device_attach: re0 attach returned 6 > > > > [ snip ] > > > > > > That's known issue for newer RealTek PCIe controllers. Would you > > > please try the patch at the following URL? > > > http://people.freebsd.org/~yongari/re/re.ephy.patch.20081021 > > > > > > Since it's not easy to reproduce this issue please make sure to > > > (cold and warm) reboot several times until you can put confidence > > > in the patch. > > > > I tried, but no change - with patch applied re still does not work > > unless I boot with verbose logging, no matter whether I boot cold or > > warm. > > Thanks for testing. If you look into patched if_re.c you can see a > "#if 1" in function re_ephy_config(). How about changing it to > "#if 0" to enable more aggresive reprogramming for EPHY register? I tried. Again, no change - rlphy not working normally, but everything works when booting with verbose logging. If there is anything else I could test, let me know. Booting with verbose logging is acceptable for me for now, so do not feel any pressure from my side. I just like to test when something will be available for test. Regards, Milan From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 12:54:38 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BE65106567E; Fri, 31 Oct 2008 12:54:38 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EE38B8FC0A; Fri, 31 Oct 2008 12:54:37 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from freefall.freebsd.org (rwatson@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9VCsbEb064279; Fri, 31 Oct 2008 12:54:37 GMT (envelope-from rwatson@freefall.freebsd.org) Received: (from rwatson@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9VCsbPq064275; Fri, 31 Oct 2008 12:54:37 GMT (envelope-from rwatson) Date: Fri, 31 Oct 2008 12:54:37 GMT Message-Id: <200810311254.m9VCsbPq064275@freefall.freebsd.org> To: kirma@cs.hut.fi, rwatson@FreeBSD.org, freebsd-net@FreeBSD.org, rwatson@FreeBSD.org From: rwatson@FreeBSD.org Cc: Subject: Re: kern/122082: [in_pcb] NULL pointer dereference in in_pcbdrop X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 12:54:38 -0000 Synopsis: [in_pcb] NULL pointer dereference in in_pcbdrop State-Changed-From-To: open->feedback State-Changed-By: rwatson State-Changed-When: Fri Oct 31 12:52:03 UTC 2008 State-Changed-Why: Could I ask you to confirm whether this still occurs with the most recent 7-STABLE? If so, could I then ask you to print *tw and *inp in the tcp_twclose frame, which might shed a bit more light on things. Thanks! Responsible-Changed-From-To: freebsd-net->rwatson Responsible-Changed-By: rwatson Responsible-Changed-When: Fri Oct 31 12:52:03 UTC 2008 Responsible-Changed-Why: Could I ask you to confirm whether this still occurs with the most recent 7-STABLE? If so, could I then ask you to print *tw and *inp in the tcp_twclose frame, which might shed a bit more light on things. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=122082 From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 13:34:11 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 470171065674; Fri, 31 Oct 2008 13:34:11 +0000 (UTC) (envelope-from kirma@cs.hut.fi) Received: from hutcs.cs.hut.fi (hutcs.cs.hut.fi [130.233.192.7]) by mx1.freebsd.org (Postfix) with ESMTP id 024AB8FC19; Fri, 31 Oct 2008 13:34:10 +0000 (UTC) (envelope-from kirma@cs.hut.fi) Received: from kirma (helo=localhost) by hutcs.cs.hut.fi with local-esmtp (Exim 4.54) id 1Kvtt2-0005q4-3s; Fri, 31 Oct 2008 15:18:00 +0200 Date: Fri, 31 Oct 2008 15:17:59 +0200 (EET) From: Jari Kirma To: rwatson@FreeBSD.org In-Reply-To: <200810311254.m9VCsbPq064275@freefall.freebsd.org> Message-ID: References: <200810311254.m9VCsbPq064275@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Checker: TKK/TKO/hutcs/SpamAssassin X-Spam-Level: X-Spam-Score: -999 X-Spam-Status: No, score=-100.0, required=5.0, version=3.2.4-tko20080701, tests=NO_RELAYS,RCVD_PATH_INSIDE_HUT Cc: freebsd-net@FreeBSD.org Subject: Re: kern/122082: [in_pcb] NULL pointer dereference in in_pcbdrop X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 13:34:11 -0000 On Fri, 31 Oct 2008, rwatson@FreeBSD.org wrote: > Synopsis: [in_pcb] NULL pointer dereference in in_pcbdrop > > State-Changed-From-To: open->feedback > State-Changed-By: rwatson > State-Changed-When: Fri Oct 31 12:52:03 UTC 2008 > State-Changed-Why: > Could I ask you to confirm whether this still occurs with the most recent > 7-STABLE? If so, could I then ask you to print *tw and *inp in the > tcp_twclose frame, which might shed a bit more light on things. > > Thanks! Unfortunately I don't have this kind of spare machine to risk crashing, although I try to look at it again. Still, if I remember correctly, the system was agitated to crash very often (like over 25% of time after bootup in some 15 first minutes): linux-opera (or even linux-firefox) being used actively on a quad-core machine running relatively regular xfce desktop. When the system survived first fifteen minutes or so, it seemed to get less and less likely it would crash similarly, although it could have happened weeks after that with very similar signs: crashing a moment after browsing around, as if remote teardown of a persistent HTTP TCP socket from the remote end would trigger it. I think the Linux emulation part in this context is somehow significant. When I moved to native Firefox instead, at least similar crashes ceased to occur. Might there be some locks not being held on Linux call path in comparison to native versions? > Responsible-Changed-From-To: freebsd-net->rwatson > Responsible-Changed-By: rwatson > Responsible-Changed-When: Fri Oct 31 12:52:03 UTC 2008 > Responsible-Changed-Why: > Could I ask you to confirm whether this still occurs with the most recent > 7-STABLE? If so, could I then ask you to print *tw and *inp in the > tcp_twclose frame, which might shed a bit more light on things. > > Thanks! > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=122082 > From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 17:40:38 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58E1E1065674 for ; Fri, 31 Oct 2008 17:40:38 +0000 (UTC) (envelope-from jay@jcornwall.me.uk) Received: from vps1.jcornwall.me.uk (vps1.jcornwall.me.uk [193.227.111.74]) by mx1.freebsd.org (Postfix) with ESMTP id EEB8E8FC21 for ; Fri, 31 Oct 2008 17:40:37 +0000 (UTC) (envelope-from jay@jcornwall.me.uk) Received: from [82.70.152.17] (deimos.home.jcornwall.me.uk [82.70.152.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vps1.jcornwall.me.uk (Postfix) with ESMTP id A11BE2C4554 for ; Fri, 31 Oct 2008 17:24:24 +0000 (GMT) Message-ID: <490B3F05.1030106@jcornwall.me.uk> Date: Fri, 31 Oct 2008 17:23:17 +0000 From: "Jay L. T. Cornwall" User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: gif(4) periodically fails to route packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 17:40:39 -0000 Hi, I'm running FreeBSD 7.0-RELEASE with an IPv6 tunnel through gif(4): gif0: flags=8151 metric 0 mtu 1280 tunnel inet 82.70.152.20 --> 77.75.104.126 inet6 fe80::20d:b9ff:fe14:1d18%gif0 prefixlen 64 scopeid 0x6 inet6 2a01:348:6:13a::2 --> 2a01:348:6:13a::1 prefixlen 128 The tunnel works correctly for much of the time. Periodically, however, it appears to stop routing inbound packets (outbound remains fine) for hours at a time before beginning to work again with no intervention. I initially suspected a problem with the tunnel endpoint but I now have a packet capture providing evidence to the contrary. For a ping6 to an IP routed through the tunnel these are the packets passing over the external (IPv4) interface: 17:10:51.640317 IP 82.70.152.20 > 77.75.104.126: IP6 2a01:348:6:13a::2 > 2001:4860:0:1001::68: ICMP6, echo request, seq 0, length 16 17:10:51.691653 IP 77.75.104.126 > 82.70.152.20: IP6 2001:4860:0:1001::68 > 2a01:348:6:13a::2: ICMP6, echo reply, seq 0, length 16 17:10:52.640631 IP 82.70.152.20 > 77.75.104.126: IP6 2a01:348:6:13a::2 > 2001:4860:0:1001::68: ICMP6, echo request, seq 1, length 16 17:10:52.683821 IP 77.75.104.126 > 82.70.152.20: IP6 2001:4860:0:1001::68 > 2a01:348:6:13a::2: ICMP6, echo reply, seq 1, length 16 Looks correct. Now the same packet capture on the gif0 interface: 17:10:51.640267 IP6 2a01:348:6:13a::2 > 2001:4860:0:1001::68: ICMP6, echo request, seq 0, length 16 17:10:52.640587 IP6 2a01:348:6:13a::2 > 2001:4860:0:1001::68: ICMP6, echo request, seq 1, length 16 It appears, for reasons beyond my understanding, that the tunnel is not aware of the return packets. No firewall is enabled that could be filtering the missing packets. Shortly after the ping6 is sent my endpoint appears to be trying to find the remote endpoint: 17:10:56.639517 IP6 2a01:348:6:13a::2 > 2a01:348:6:13a::1: ICMP6, neighbor solicitation, who has 2a01:348:6:13a::1, length 24 17:10:57.639513 IP6 2a01:348:6:13a::2 > 2a01:348:6:13a::1: ICMP6, neighbor solicitation, who has 2a01:348:6:13a::1, length 24 17:10:58.639499 IP6 2a01:348:6:13a::2 > 2a01:348:6:13a::1: ICMP6, neighbor solicitation, who has 2a01:348:6:13a::1, length 24 But I am not sure if this is related as it successfully sends the ping6 outbound regardless. radvd is running on the host if that makes a difference. To my knowledge its routing table is correct: default 2a01:348:6:13a::1 UGS gif0 2a01:348:6:13a::1 link#6 UHL gif0 2a01:348:6:13a::2 link#6 UHL lo0 Am I missing something? -- Jay L. T. Cornwall http://www.jcornwall.me.uk/ From owner-freebsd-net@FreeBSD.ORG Sat Nov 1 22:15:36 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99EF51065670 for ; Sat, 1 Nov 2008 22:15:36 +0000 (UTC) (envelope-from jdp@elvis.rowan.edu) Received: from elvis.rowan.edu (elvis.rowan.edu [150.250.64.69]) by mx1.freebsd.org (Postfix) with ESMTP id 5F8308FC19 for ; Sat, 1 Nov 2008 22:15:36 +0000 (UTC) (envelope-from jdp@elvis.rowan.edu) Received: from elvis.rowan.edu (localhost [127.0.0.1]) by elvis.rowan.edu (8.13.8+Sun/8.13.8) with ESMTP id mA1Lxd0T004692 for ; Sat, 1 Nov 2008 17:59:39 -0400 (EDT) Received: from localhost (jdp@localhost) by elvis.rowan.edu (8.13.8+Sun/8.13.8/Submit) with ESMTP id mA1LxdY5004686 for ; Sat, 1 Nov 2008 17:59:39 -0400 (EDT) Date: Sat, 1 Nov 2008 17:59:39 -0400 (EDT) From: Joe Pellegrino To: freebsd-net@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: A netgraph question. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2008 22:15:36 -0000 OK so here it goes. I actually have two seperate questions involving netgraph, I am new to this subject so please bare with me. If there is a better way to achieve these goals too, please suggest them but I think netgraph is the way to go. The first part involves allowing a userland program to communicate with a kernel module, similar to how netlink works in Linux. The second part involves intercepting network packets and possibly manipulating them before they are allowed to proceed, similar to how netfilter works. I believe I can do both of these with the netgraph (ng_socket and possibly ng_ether). I haven't looked closely at ng_ether yet so I'll focus on ng_socket. I have been able to create a ng_socket (Control and Data) using the socket call as described in "All About NetGraphs" and the man page. I've also been able to 'name' the node using bind. I was able to verify this using ngctl. I know (from the man page) I should eventually be able to send/receive using the sendto/recvfrom functions once the connection is established. But beyond this I don't know how to proceed. So the question is what are the next steps. For example: Although I see a named netgraph node there are no hooks. ng_socket says it supports an arbitrary number of hooks so how do I create the hooks? Then of course how do I connect them. Of course I realize that I proabably need to create a node on the kernel side so which type of netgraph node would be suggested? How is it created and then hooked to the ng_socket? Again I am looking to allow some IPC between a userland program and a kernel module similar to the Linux netlink. I've been through most man pages and can't seem to find a lot of good documentation or example code so I am hoping to get some pointers here. BTW If this is the wrong list please directly to the right place to ask. Thanks in advance. ---jdp