Re: do we support non contiguous netmasks ?
Anders Lowinger <[EMAIL PROTECTED]> wrote: >Luigi Rizzo wrote: >> >> i was wondering if anyone knows what kind of support we have >> in FreeBSD networking code, for non contiguous netmasks. >> While it is trivial to support them for interface addresses, >> managing them in the routing table is probably far from trivial >> and I believe also mostly useless... and anyways, i have no >> idea how our kernel code deals with them > >Not sure why you wonder? Do you need it? I played around with non-contiguous netmasks when working on Demon's NETALIAS patch (see http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/12071). I didn't actually put it into production that way, though -- I stuck with standard netmasks to reduce confusion. At that time we had IIRC two /18s and a /16 assigned to a web vhosting service (because it dated from before widespread support for HTTP Host: headers). These addresses were allocated sequentially, so the simple approach of splitting the /16s into /18s and routing them to the various servers gave an uneven distribution of load. Splitting the /16s by the mask 0x0003 did a better job. (Each server could serve any site, but was more efficient if it served a subset of the sites, and it was easiest to configure this distribution on the (NetBSD) last hop router.) Tony. -- f.a.n.finch <[EMAIL PROTECTED]> http://dotat.at/ LYME REGIS TO LANDS END INCLUDING THE ISLES OF SCILLY: NORTHWEST 4 OR 5 GRADUALLY VEERING NORTH 4 OR 5. SOME SHOWERS. MAINLY GOOD. SLIGHT IN EAST, MODERATE IN WEST. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sk ethernet driver: watchdog timeout
Hi, Palle Girgensohn wrote: --On onsdag, mars 17, 2004 00.21.44 +0100 "Arno J. Klaassen" <[EMAIL PROTECTED]> wrote: Hello, I have an ASUS motherboard A7V8X-E Deluxe with onboard 10/100/1000 Mbit/s NIC from Marvell Semiconductor. My problem is that it sometimes lock up with the error message sk0: watchdog timeout I have a similar problem with 3Com cards on an ASUS A7N266; I just post in case this might be related (and in hope for a hint for a solution ) Hi again, I've since this thread started tried this on more different systems, with exactly the same results. Anyone else experiencing this? Anything I can do to help fixing it? I have had the same error message yesterday with the 3Com adapters built into a Thunder K7. The interface was dead. I have had no other choice then to reboot the machine. I used the xl driver on a FreeBSD 5.2 RELEASE machine. Erich ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
here is the src
ok here is the src for the driver from netbsd. I gatered it all up ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sk ethernet driver: watchdog timeout
On Wed, 7 Apr 2004, Palle Girgensohn wrote: > --On onsdag, mars 17, 2004 00.21.44 +0100 "Arno J. Klaassen" > <[EMAIL PROTECTED]> wrote: > > > Hello, > > > >> I have an ASUS motherboard A7V8X-E Deluxe with onboard 10/100/1000 > >> Mbit/s NIC from Marvell Semiconductor. > >> > >> My problem is that it sometimes lock up with the error message > >> > >> sk0: watchdog timeout > > > > I have a similar problem with 3Com cards on an ASUS A7N266; > > I just post in case this might be related (and in hope for > > a hint for a solution ) > > Hi again, > > I've since this thread started tried this on more different systems, with > exactly the same results. Anyone else experiencing this? Anything I can do > to help fixing it? The following patch reduces the problem on A7V8X-E a little. It limits the tx queue to 1 packet and fixes handling of the timeout on txeof. The first part probably makes the second part a no-op. Without this, my A7V8X-E hangs on even light nfs activity (e.g., copying a 1MB file to nfs). With it, it takes heavier nfs activity to hang (makeworld never completes, and a flood ping always hangs). I first suspected an interrupt-related bug, but the bug seems to be more hardware-specific. Examination of the output queues shows that the tx sometimes just stops before processing all packets. Resetting in sk_watchdog() doesn't always fix the problem, and the timeout usually stops firing after a couple of unsuccessful resets, giving a completely hung device. But the problem may be related to interrupt timing, since it is much smaller under RELENG_4. RELENG_4 hangs about as often without this hack as -current does with it. nv0 hangs similarly. fxp0 just works. %%% Index: if_sk.c === RCS file: /home/ncvs/src/sys/pci/if_sk.c,v retrieving revision 1.78 diff -u -2 -r1.78 if_sk.c --- if_sk.c 31 Mar 2004 12:35:51 - 1.78 +++ if_sk.c 1 Apr 2004 07:33:58 - @@ -1830,4 +1830,9 @@ SK_IF_LOCK(sc_if); + if (sc_if->sk_cdata.sk_tx_cnt > 0) { + SK_IF_UNLOCK(sc_if); + return; + } + idx = sc_if->sk_cdata.sk_tx_prod; @@ -1853,4 +1858,5 @@ */ BPF_MTAP(ifp, m_head); + break; } @@ -2000,5 +2031,4 @@ sc_if->sk_cdata.sk_tx_cnt--; SK_INC(idx, SK_TX_RING_CNT); - ifp->if_timer = 0; } @@ -2007,4 +2037,6 @@ if (cur_tx != NULL) ifp->if_flags &= ~IFF_OACTIVE; + + ifp->if_timer = (sc_if->sk_cdata.sk_tx_cnt == 0) ? 0 : 5; return; %%% Bruce ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
arp entries for local interfaces disappearing ?
Can someone explain why, in my arp table, i don't have an entry for my local machine ? I just noticed this by chance, on my 4.9 box at the office, and now again at home: > ifconfig rl0: flags=8843 mtu 1500 inet 10.0.1.55 netmask 0xff00 broadcast 10.0.1.255 inet 10.1.1.236 netmask 0xff00 broadcast 10.1.1.255 ether 00:40:f4:34:b1:4b media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff00 > arp -na ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] > the interface is actually up and moving traffic -- the box is talking to 10.0.1.52. The route magically reappears if i try to open a session to the local box using the interface's address: > ssh 10.0.1.55 ... bla bla bla ... > arp -na ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] ? (10.0.1.55) at 00:40:f4:34:b1:4b on rl0 permanent [ethernet] ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] and it's marked permanent, so it should not expire! Yet it looks like they do anyways... cheers luigi ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: arp entries for local interfaces disappearing ?
On Wed, Apr 07, 2004 at 10:57:48AM -0700, Luigi Rizzo wrote: > Can someone explain why, in my arp table, i don't have an > entry for my local machine ? I just noticed this by chance, > on my 4.9 box at the office, and now again at home: > > > ifconfig > rl0: flags=8843 mtu 1500 > inet 10.0.1.55 netmask 0xff00 broadcast 10.0.1.255 > inet 10.1.1.236 netmask 0xff00 broadcast 10.1.1.255 > ether 00:40:f4:34:b1:4b > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff00 > > arp -na > ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] > ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] > > > > the interface is actually up and moving traffic -- the box is talking > to 10.0.1.52. > The route magically reappears if i try to open a session to the > local box using the interface's address: > > > ssh 10.0.1.55 > ... bla bla bla ... > > arp -na > ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] > ? (10.0.1.55) at 00:40:f4:34:b1:4b on rl0 permanent [ethernet] > ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] > > and it's marked permanent, so it should not expire! Yet it > looks like they do anyways... > Here it doesn't disappear. Perhaps, you have some routing daemons running? Or when it's parent route gets removed, it's deleted too, for example, if you re-run ifconfig(8) on the interface. Please also note that if net.link.ether.inet.useloopback=1, the route is actually through lo0 (route -vn get -host 10.0.1.55). Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature
Re: arp entries for local interfaces disappearing ?
On Wed, Apr 07, 2004 at 09:38:43PM +0300, Ruslan Ermilov wrote: ... > > ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] > > ? (10.0.1.55) at 00:40:f4:34:b1:4b on rl0 permanent [ethernet] > > ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] > > > > and it's marked permanent, so it should not expire! Yet it > > looks like they do anyways... > > > Here it doesn't disappear. Perhaps, you have some routing daemons i suspect you are not supposed to make statements before net.link.ether.inet.max_age seconds :) seriously though, i see this consistently on all 4.9 boxes around here... the parent route entries are still there, no routing daemons running, no ifconfig's issued... cheers luigi ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: arp entries for local interfaces disappearing ?
On Wed, Apr 07, 2004 at 11:50:53AM -0700, Luigi Rizzo wrote: > On Wed, Apr 07, 2004 at 09:38:43PM +0300, Ruslan Ermilov wrote: > ... > > > ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] > > > ? (10.0.1.55) at 00:40:f4:34:b1:4b on rl0 permanent [ethernet] > > > ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] > > > > > > and it's marked permanent, so it should not expire! Yet it > > > looks like they do anyways... > > > > > Here it doesn't disappear. Perhaps, you have some routing daemons > > i suspect you are not supposed to make statements before > net.link.ether.inet.max_age seconds :) > :-) > seriously though, i see this consistently on all 4.9 boxes > around here... the parent route entries are still there, no > routing daemons running, no ifconfig's issued... > $ ifconfig rl0 rl0: flags=8843 mtu 1500 inet 10.71.1.80 netmask 0xff00 broadcast 10.71.1.255 ether 00:50:fc:79:da:85 media: Ethernet autoselect (100baseTX ) status: active $ arp -n 10.71.1.80 ? (10.71.1.80) at 00:50:fc:79:da:85 on rl0 permanent [ethernet] I will see if I still have it tomorrow... Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature
Re: arp entries for local interfaces disappearing ?
On Wed, 7 Apr 2004 10:57:48 -0700 Luigi Rizzo <[EMAIL PROTECTED]> wrote: > Can someone explain why, in my arp table, i don't have an > entry for my local machine ? I just noticed this by chance, > on my 4.9 box at the office, and now again at home: > > > ifconfig > rl0: flags=8843 mtu 1500 > inet 10.0.1.55 netmask 0xff00 broadcast 10.0.1.255 > inet 10.1.1.236 netmask 0xff00 broadcast 10.1.1.255 > ether 00:40:f4:34:b1:4b > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff00 > > arp -na > ? (10.0.1.52) at 00:02:2d:08:a3:3b on rl0 [ethernet] > ? (10.0.1.64) at 52:54:05:de:99:7c on rl0 [ethernet] > > Same here, on a -current. # arp -n 192.168.0.10 192.168.0.10 (192.168.0.10) -- no entry # arp -an ? (192.168.0.1) at 00:e0:4c:55:c3:13 on rl0 [ethernet] ? (192.168.0.255) at ff:ff:ff:ff:ff:ff on rl0 permanent [ethernet] # ping 192.168.0.10 PING 192.168.0.10 (192.168.0.10): 56 data bytes 64 bytes from 192.168.0.10: icmp_seq=0 ttl=64 time=4.307 ms 64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=0.113 ms ^C --- 192.168.0.10 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.113/2.210/4.307/2.097 ms # arp -an ? (192.168.0.1) at 00:e0:4c:55:c3:13 on rl0 [ethernet] ? (192.168.0.10) at 00:0d:61:b3:6f:9d on rl0 permanent [ethernet] ? (192.168.0.255) at ff:ff:ff:ff:ff:ff on rl0 permanent [ethernet] # sysctl net.link.ether.inet net.link.ether.inet.prune_intvl: 300 net.link.ether.inet.max_age: 1200 net.link.ether.inet.host_down_time: 20 net.link.ether.inet.maxtries: 5 net.link.ether.inet.useloopback: 1 net.link.ether.inet.proxyall: 0 net.link.ether.inet.log_arp_wrong_iface: 1 net.link.ether.inet.log_arp_movements: 1 -- IOnut Unregistered ;) FreeBSD "user" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: arp entries for local interfaces disappearing ?
On Wed, 7 Apr 2004 10:57:48 -0700, in sentex.lists.freebsd.net you wrote: >Can someone explain why, in my arp table, i don't have an >entry for my local machine ? I just noticed this by chance, >on my 4.9 box at the office, and now again at home: I think this is a fairly old thing as I noticed this at least a year and a half ago on RELENG_4 box back then. My memory is a bit foggy, but it was causing problems for some reason so I ended up adding a ping -c 1 to the startup script so the entry would be there. ---Mike ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Stupid question about managed switches
Please excuse this, but my experience with them is zilch ... am going with the HP Procurve 2826(?) Layer2/Layer3 switch, as was suggested, but I'm curious as to how they work ... For instance, I know when I setup a router, I have an IN IP and an OUT IP configured ... but, with a managed switch, what do I have? For instance, right now, I have a default gateway on the providers switch of 200.46.204.1 ... and my servers are .2, .3, .4 and .5 ... if I put a managed switch, vs the unmanaged we have now, between the providers switch and the servers, does my default route then change to be the switch itself? Or is the 'login part' of the switch thought of the same way as adding just another server to the network, for connectivity purposes? As I said, stupid question, but for someone whose never played with a managed switch before ... :( Thanks .. Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: [EMAIL PROTECTED] Yahoo!: yscrappy ICQ: 7615664 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Stupid question about managed switches
"Marc G. Fournier" <[EMAIL PROTECTED]> writes: | |Please excuse this, but my experience with them is zilch ... am going |with the HP Procurve 2826(?) Layer2/Layer3 switch, as was suggested, |but I'm curious as to how they work ... | |For instance, I know when I setup a router, I have an IN IP and an OUT |IP configured ... but, with a managed switch, what do I have? Depends on whether you assign an address to a port or not. Imagine a layer3 switch as a router with many interfaces that can do switching as well as routing. You can use it as a router and as a switch at the same time. But you can't mix them in functionality (eg. to have a port set in both routing and switching mode). As for the layer2 configuration, you then have VLANs, VTP domains/servers/clients, MAC address tables and so on. Don't mistake one functionality for the other. They're meant to be kept separately :) One special case though is MPLS (Multi Protocol Label Switching). This new technology lets an equipment (a switch) take switching decisions based on factors other than layer2. For example, you can shape the _IP_ traffic coming from certain switch ports, or send ethernet frames to a port or another based on their _IP_ source address. It's being used more and more for providing metropolitan VPN services and DiffServ. | |For instance, right now, I have a default gateway on the providers |switch of 200.46.204.1 ... and my servers are .2, .3, .4 and .5 ... if |I put a managed switch, vs the unmanaged we have now, between the |providers switch and the servers, does my default route then change to |be the switch itself? Or is the 'login part' of the switch thought of |the same way as adding just another server to the network, for |connectivity purposes? | As I said, you have to set an IP on your switch only if you want to. Otherwise you can use it as a layer2 separator for the two connections. |As I said, stupid question, but for someone whose never played with a |managed switch before ... :( | |Thanks .. | | |Marc G. Fournier Hub.Org Networking Services |(http://www.hub.org) Email: [EMAIL PROTECTED] Yahoo!: yscrappy |ICQ: 7615664 |___ |[EMAIL PROTECTED] mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-net |To unsubscribe, send any mail to "[EMAIL PROTECTED]" If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. pgp0.pgp Description: PGP signature
RE: Stupid question about managed switches
From: Marc G. Fournier [mailto:[EMAIL PROTECTED] > > Please excuse this, but my experience with them is zilch ... > am going with > the HP Procurve 2826(?) Layer2/Layer3 switch, as was > suggested, but I'm > curious as to how they work ... > > For instance, I know when I setup a router, I have an IN IP > and an OUT IP > configured ... but, with a managed switch, what do I have? > > For instance, right now, I have a default gateway on the > providers switch > of 200.46.204.1 ... and my servers are .2, .3, .4 and .5 ... > if I put a > managed switch, vs the unmanaged we have now, between the > providers switch > and the servers, does my default route then change to be the switch > itself? Or is the 'login part' of the switch thought of the > same way as > adding just another server to the network, for connectivity purposes? > > As I said, stupid question, but for someone whose never played with a > managed switch before ... :( > > Thanks .. In layer-2 mode, its nothing but a hub. It doesn't change your default route or anything. Pretend its not there. you will need a router connected to this switch, and its IP will remain your default route (likely). ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"