Re: [SlimDevices: Unix] Network configuration question: better asking here?
In the pic attached above: "use router as DNS server". So it does do DNS caching, and I guess the form allows to map MAC-IP-name in one go. Cool. To catch-up on what snarlydwarf said, I concur about dnsmasq. It is a great package, tiny and featureful. It does have a dns-dhcp dynamic mapping, so machines that declare a name when requesting an IP from the DHCP server are added to the DNS cache. No need for static IPs and name mappings. Very nice, and deploying the same feature with ISCs server (dhcpd, bind) is vastly more complex. dnsmasq is really a good choice when looking to run a dns and/or a DHCP server on a linux machine. On top of it, a few years ago I had a chat with the developer, and found him very friendly and supportive. -- epoch1970 epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze wrote: > Got to say, Network Manager's been my single biggest gripe about > Ubuntu. It's been unreliable in a number of releases. One or two > releases ago I could not get 2x static IPs going no matter what I tried > and how many websites I consulted discussing the same problem. It's > been stable and predictable in Karmic thus far, but the UI could do with > further improvement. You are right, its a mess. They are trying to do something userfriendly like Windoze has, but networking is not easy, and Linux/Unix have always had many way to set things up. Sometimes its like juggling running chainsaws, but that is the cost of freedom. -- Pat Farrell http://www.pfarrell.com/ ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
Before I forget, I'd like to express my gratitude to everyone that's responded to this thread. I've learned quite a bit from it, so thanks. -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
epoch1970;504587 Wrote: > To simplify further, perhaps you can disable one of the 2 NICs in the > NAS ? > There is no use (I guess) in having an unplugged card on 192.168.2.0/24 > as you've shown earlier. And some software may get confused as to which > address they should be listening to, making them irresponsive if > listening to the unplugged card. > As it is a gigabit chip, perhaps disabling would save you 1 Watt or so, > as well. The NAS' interface doesn't provide an option to turn it off, but I > have root access via SSH and am all ears. It's eth1 that you'd turn off. epoch1970;504587 Wrote: > In your router's DHCP server, surely you can specify MAC addresses, to > which the DHCP server will deliver, always, the address you specify > there. Pick an address outside the pool of floating addresses (="DHCP > range") to make sure it is always available. > Then the DHCP server will send to these devices a fixed address as you > prefer (I use that too) along with all the current info needed to get > the device up and running (gateway, DNS, etc.) Thx, this confirms that my > ADSL router will take care of the lot if I use MAC/IP binding. epoch1970;504587 Wrote: > If you're lucky your router has a caching DNS server built-in. If so you > can further add static correspondences between one of those fixed > addresses and a name. (My SB players are set like this: player > "Georgetown" (the SBS name) is mapped to "georgetown.lan". That's nice > for logs and scripts) > If you're out of luck then you can add the same mapping local to > clients, like in the /etc/hosts file of a PC. > *Beware: ubuntu 9-or-something may be using other configuration means > than the /etc/hosts file*Not sure if the attached screenshot is what you're > referring to, but it seems I can provide some sort or hostname for each of the devices I choose to bind. epoch1970;504587 Wrote: > With fixed addresses, you can clamp down the firewall of the router to > accept/reject traffic coming to or out of a specific address when > reaching the border to the internet. That should protect your NAS as > well as before (maybe better in fact, considering a router configuration > is more stable and secure than a PC's.) > Don't do that until all is working. Stray firewall rules are one of the > surest way to bring havoc to a network.To enable scrobbling (which is working > now -- seems there was a bit of lag on Last.FM yesterday) I presume the NAS needs to be able to accept incoming traffic of sorts eg for the plugin to communicate to the LFM server. It works at present but if using the firewall to clamp down beyond what the router offers by default I would need to know what ports scrobbling requires. epoch1970;504587 Wrote: > Is SBS running on the NAS or one PC (why do I have the impression you'll > reply "both ;) )? I ordinarily have it running on the NAS, and both PCs. > The NAS serves as the main playback device and i experiment with plugins etc. on the other two (depending which is booted and what I'm doing), e.g. I'm experimenting with Erland's Customscan and Custombrowse - not something I'd want to do on the NAS because it lacks the grunt. The NAS becomes the implementation point for successful experiments :-) epoch1970;504587 Wrote: > Did you look at the logs in the router ? Normally you should see > something related to the fact SBS is "not scrobbling" if the problem is > network related. It's working now, seems the LFM server was lagging > displaying what was being scrobbled. epoch1970;504587 Wrote: > PS. Now it is clear we're talking linux, and for others who may come > accross the thread, I'd like to add a word about using the "iproute2" > package when playing with dual nics. With iproute2 you can set link > priorities. For example you can have a machine fire up its wireless and > wired connections at all times, use only the wire when it is active, and > relatively gracefully fallback to using wifi otherwise. IMO, Iproute2 > works in real life (contrary to that confounded Network Manager Ubuntu > likes to use these days.) > > "Bridging" and "bonding" are other NIC teaming modes you may come > across as well, and probably won't do you any good. > > PPS. Now, everybody together say: "zeroconf/bonjour is useless". > Thanks.My laptop at work does what you describe. It's quite happy being wired and wireless to the LAN and "activates" wireless only when I unplug. It's not always seamless though, sometimes takes about a minute to figure out it's been unplugged. Got to say, Network Manager's been my single biggest gripe about Ubuntu. It's been unreliable in a number of releases. One or two releases ago I could not get 2x static IPs going no matter what I tried and how many websites I consulted discussing the same problem. It's been stable and predictable in Karmic thus far, but the UI could do with further improvement. +---+ |Filename: Screenshot-ADSL Fi
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze wrote: > If I'm not mistaken, using DHCP makes me reliant on having a DHCP > server up at all times, whereas currently I can just turn on those > devices I want to work with and my switch and I know they'll see one > another. Yes, you really need two DHCP servers for a robust network. I run two, one on my SqueezeBoxServer computer, and another on my firewall/DMZ to the internet. Since I leave both of those computers on 24x7, it suits me well. > I learned yesterday that my ADSL router supports binding MACs to IPs, > which would I guess give me one place to manage the lot, and presumably > automatically provides gateway and DNS info, so this may be an option. Which really says that your router implements a DHCP server. It is still technically a single point of failure, but most homes have that, one cable/fiber/DSL link to the 'net -- Pat Farrell http://www.pfarrell.com/ ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze;504899 Wrote: > I learned yesterday that my ADSL router supports binding MACs to IPs, > which would I guess give me one place to manage the lot, and presumably > automatically provides gateway and DNS info, so this may be an option. That would be a very good option. But even using reservations like this for common devices like Squeezeboxes is a lot more trouble than most people need to make for themselves. -- JJZolx Jim JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
erland;504586 Wrote: > > I'm personally using static IP's on my internal network for this reason > and run a central dnsmasq server so I can have the static IP<->Hostname > mapping in one place. The Debian package named 'dnsmasq' provides hostname-ip mapping... with dhcp. Code: Dnsmasq is a lightweight, easy to configure, DNS forwarder and DHCP server. It is designed to provide DNS and optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP/TFTP for network booting of diskless machines. My SBS server has a static IP.. but since it's also the router, that is expected. Everyhing else on my home network is dhcp. -- snarlydwarf snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
JJZolx;504581 Wrote: > I would seriously reexamine your need to use static IP addresses. For > some odd reason, people seem to believe using static IPs solves some > unknown networking issues. Using DHCP allows you to reconfigure your > entire network in a matter of minutes, in one central location. The > only thing using static IP addresses can really overcome is the failure > of the DHCP server itself. For historical reasons I've developed many scripts and configurations that now rely on the static IPs and reworking them would be a pain <-- this in itself is probably the primary reason not to use static IP, but my network's not overly complex even when I bring into the picture additional devices. If I'm not mistaken, using DHCP makes me reliant on having a DHCP server up at all times, whereas currently I can just turn on those devices I want to work with and my switch and I know they'll see one another. Erland also makes a good point, I have a Windows machine on the network also, and my experience is that using IPs in favour of hostnames is more reliable. I learned yesterday that my ADSL router supports binding MACs to IPs, which would I guess give me one place to manage the lot, and presumably automatically provides gateway and DNS info, so this may be an option. -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
To simplify further, perhaps you can disable one of the 2 NICs in the NAS ? There is no use (I guess) in having an unplugged card on 192.168.2.0/24 as you've shown earlier. And some software may get confused as to which address they should be listening to, making them irresponsive if listening to the unplugged card. As it is a gigabit chip, perhaps disabling would save you 1 Watt or so, as well. In your router's DHCP server, surely you can specify MAC addresses, to which the DHCP server will deliver, always, the address you specify there. Pick an address outside the pool of floating addresses (="DHCP range") to make sure it is always available. Then the DHCP server will send to these devices a fixed address as you prefer (I use that too) along with all the current info needed to get the device up and running (gateway, DNS, etc.) If you're lucky your router has a caching DNS server built-in. If so you can further add static correspondences between one of those fixed addresses and a name. (My SB players are set like this: player "Georgetown" (the SBS name) is mapped to "georgetown.local". That's nice for logs and scripts) With fixed addresses, you can clamp down the firewall of the router to accept/reject traffic coming to or out of a specific address when reaching the border to the internet. That should protect your NAS as well as before (maybe better in fact, considering a router configuration is more stable and secure than a PC's.) Don't do that until all is working. Stray firewall rules are one of the surest way to bring havoc to a network. Is SBS running on the NAS ? Did you look at the logs in the router ? Normally you should see something related to the fact SBS is "not scrobbling" if the problem is network related. -- epoch1970 epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
JJZolx;504581 Wrote: > I would seriously reexamine your need to use static IP addresses. For > some odd reason, people seem to believe using static IPs solves some > unknown networking issues. Using DHCP allows you to reconfigure your > entire network in a matter of minutes, in one central location. The > only thing using static IP addresses can really overcome is the failure > of the DHCP server itself. > I think most people uses static IP addresses because they use IP-address when accessing the machine or have a local hosts file on each machine with IP<->Hostname mapping. None of the home routers I've used has been able to reliably handle DNS requests on the internal network so it's possible to find a machine with hostname. It usually works if you only have Windows machines but in a mixed network with Windows, OSX and Linux you need something outside the cheap home router, at least that's my experience. I'm personally using static IP's on my internal network for this reason and run a central dnsmasq server so I can have the static IP<->Hostname mapping in one place. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze;504531 Wrote: > Ok, having now fully(?) explored the depths of my networking > incompetence the problem is solved. Everything's back in static IP and > able to access the Internet, both via domain name and IP. Problem was > simple in retrospect: all devices connecting to Internet via router > require the gateway and access to a DNS. > > Of course, after all that, SBS isn't scrobbling! I would seriously reexamine your need to use static IP addresses. For some odd reason, people seem to believe using static IPs solves some unknown networking issues. Using DHCP allows you to reconfigure your entire network in a matter of minutes, in one central location. The only thing using static IP addresses can really overcome is the failure of the DHCP server itself. -- JJZolx Jim JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze;504494 Wrote: > So if I've understood correctly the fact that I've used static IP's on > the PC's means I manually need to check they've the gateway set > correctly also. If not, they can see the router, but not access the net, > right? That's correct. If you've set up static IP addresses on any device, then you must set the gateway address yourself. This is on of the benefits of using DHCP - you set things like the gateway and DNS servers in just one place. -- JJZolx Jim JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
Ok, having now fully(?) explored the depths of my networking incompetence the problem is solved. Everything's back in static IP and able to access the Internet, both via domain name and IP. Problem was simple in retrospect: all devices connecting to Internet via router require the gateway and access to a DNS. Of course, after all that, SBS isn't scrobbling! -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
erland;504512 Wrote: > If I remember correctly I think I once had a router that didn't allow > unknown static IP's to pass through if DHCP was enabled. There could be > some setting in the router that controls this. > > Is there any way you setup static IP addresses in the router, some > routers has support for this. This way you can configure the devices for > DHCP but they will always get the same IP address because the router > keeps track of which IP-addresses it should assign to devices with > different MAC-addresses. I'll check whether the router allows IP reservation based on MAC, but I don't recall seeing this. In the meantime I've reset the NAS to static IP, left the gateway exactly as previously set, rebooted it and voila, it's up and can see the Internet, but whilst it can ping an IP it cannot resolve domain names. Adding the router DNS to it now and rebooting to see if that changes matters. Once I've got the NAS configured I'll deal with the PC, which I'm guessing should be easy because I'll have the same issues as with the NAS. -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze;504510 Wrote: > > All looks fine using dynamic IP. Will try static and revert. > If I remember correctly I think I once had a router that didn't allow unknown static IP's to pass through if DHCP was enabled. There could be some setting in the router that controls this. Is there any way you setup static IP addresses in the router, some routers has support for this. This way you can configure the devices for DHCP but they will always get the same IP address because the router keeps track of which IP-addresses it should assign to devices with different MAC-addresses. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
erland;504506 Wrote: > How are the DNS server attributes configured on the NAS ? > > You want them to point to either 192.168.168.254 if the router is able > to proxy DNS request or to the real DNS servers which the router uses. it was > set to 192.168.168.254, same as PC when PC access worked. It stopped working only after firing up the NAS with this setting. Out of frustration I set the NAS and my Ubuntu PC to dynamic IPs and low and behold they work...but the really bizarre thing is they end up with the same damned gateway address (shown by route -n) as I provided for static IP config: _*PC*_ Code: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 192.168.168.0 0.0.0.0 255.255.255.0 U 1 00 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 00 eth0 0.0.0.0 192.168.168.254 0.0.0.0 UG0 00 eth0 _*NAS*_ Code: s...@192.168.168.252's password: r...@127.0.0.1:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 00 eth1 192.168.168.0 0.0.0.0 255.255.255.0 U 0 00 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 00 lo 0.0.0.0 192.168.168.254 0.0.0.0 UG0 00 eth0 erland;504506 Wrote: > Does it work to ping a internet address from the NAS using IP instead of > hostname ? > Does the same thing work from the PC ?Just tried it from the PC and NAS > configured with Dynamic IP and it works. Will try static and revert. erland;504506 Wrote: > What does "ipconfig /all" (Windows) or "ifconfig" (Linux) output on the > PC ? > Does the DNS, Gateway, netmask look correct in the output from these > commands ? All looks fine using dynamic IP. Will try static and revert. Try to reboot the PC if you haven't done so already, if you are using Windows a reboot usually tends to fix things. Running Ubuntu only. I'd really like to keep things static as there are many scripts etc. I've written that rely on the IPs to identify the relevant PCs, NAS etc. -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
How are the DNS server attributes configured on the NAS ? You want them to point to either 192.168.168.254 if the router is able to proxy DNS request or to the real DNS servers which the router uses. Does it work to ping a internet address from the NAS using IP instead of hostname ? Does the same thing work from the PC ? What does "ipconfig /all" (Windows) or "ifconfig" (Linux) output on the PC ? Does the DNS, Gateway, netmask look correct in the output from these commands ? Try to reboot the PC if you haven't done so already, if you are using Windows a reboot usually tends to fix things. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
erland;504498 Wrote: > Correct Ok, rather than reconfigure all my players I reconfigured my router to the 192.168.168.168 subnet, reconfigured its DHCP to issue IPs in a range I know won't clash with the hardcoded IPs and disconnected eth1 on both machines. My router now reports its LAN IP as 192.168.168.254, which I also set as the default gateway for eth0 on my Ubuntu PC. Prior to setting this gateway the PC would see the router, but not connect to the net. All good! Then I booted up my NAS and changed its gateway also to 192.168.168.254 and reboooted it (its static IP is in the same subnet). It still couldn't access the net, and my damned PC also wouldn't. I'm online here by changing the eth0 config on my box to DHCP. What am I missing? -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze;504494 Wrote: > So if I've understood correctly the fact that I've used static IP's on > the PC's means I manually need to check they've the gateway set > correctly also. If not, they can see the router, but not access the net, > right? > Correct -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
erland;504483 Wrote: > Make sure the default gateway is set correctly on the NAS, if it isn't > it will only find machines on the local network. I'm guessing it's > something like 192.168.0.1, it should be the internal IP of the ADSL > router. > Also make sure the NAS is configured with the correct DNS servers. > > If you have DHCP enabled on the router and the NAS, all this should > happen automatically, if you don't you will need to configure them > manually.So I I've understood correctly the fact that I've used static IP's on the PC's means I manually need to check they've the gateway set correctly also. If not, they can see the router, but not access the net, right? -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
audiomuze;504479 Wrote: > I'd tried what you and Erland described above yesterday and the NAS > consistently couldn't see the Internet. I'll specifically disable eth1 > on both machines and double check that the PCs are cabled to the switch > only. > Make sure the default gateway is set correctly on the NAS, if it isn't it will only find machines on the local network. I'm guessing it's something like 192.168.0.1, it should be the internal IP of the ADSL router. Also make sure the NAS is configured with the correct DNS servers. If you have DHCP enabled on the router and the NAS, all this should happen automatically, if you don't you will need to configure them manually. audiomuze;504479 Wrote: > > Agreed, there's nothing in it in performance terms, but it was a simple > way of keeping my music network from being Internet facing. > I assume there is some kind of firewall in the ADSL router that will handle this protection. The router will make sure no one can access your music server unless you have explicitly configured the router to open ports towards the music server. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
I'd tried what you and Erland described above yesterday and the NAS consistently couldn't see the Internet. I'll specifically disable eth1 on both machines and double check that the PCs are cabled to the switch only. > You're gaining virtually nothing by using both NICs on those PCs Agreed, > there's nothing in it in performance terms, but it was a simple way of keeping my music network from being Internet facing. -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
What erland said. You're gaining virtually nothing by using both NICs on those PCs. Use one NIC, place everything on the same subnet, and use the router as your gateway. Attach the PCs and NAS to the gigabit switch. Link the switch to the router. Static IP addresses, DHCP with dynamic addresses or reservations makes no difference - all are easily handled in this configuration. -- JJZolx Jim JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
I'm guessing the ADSL router is one of those with several LAN ports ? If that's the case I'd do as follows: - Connect a cable between the ADSL router and the gigabit switch - Connect a cable between the gigabit switch and PC1 - Connect a cable between the gigabit switch and PC2 - Connect a cable between the gigabit switch and the NAS If it's a problem having the NAS connected to the gigabit switch (due to Jumbo frame problems) it should also work to connect it directly to the ADSL router instead. In this setup only one of the NICS in the PC's would be used. You would only have one local network and every unit on that network would have both access to internet and access to the other units on the local network. If you for some reason want to limit internet access for some devices, I'd just get another cheap router that has a built-in firewall where you can restrict the internet access from some MAC/IP adressses. In this case that router would be placed between the gigabit switch and the ADSL router. -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
epoch1970;504343 Wrote: > Mhh. > Why don't you drop the jumbo frames, buy a $50 gigabit switch and make > yourself a nice giga/fast star-shaped network ? Then the only devices > that need to be on all the time are the router and the switch.Could you > elaborate on how this would look from a subnet and physical connectivity perspective. At present the layout is as follows: 192.168.168.X: 2 x PCs (via etho 0) NAS Connected via 5 port gigabit switch 192.168.168.1.X: ADSL Router 2 x PCs (via eth1) So in effect I have two networks running. I want to throw the ADSL router into the mix so all devices are Internet facing, but at the same time ensure that traffic between all devices bypasses the router (unless of course it's intended for the Internet). I have another gigabit switch lying around in a cupboard somewhere. FWIW, all my NICS and switches support 9k jumbo frames - this was a criterion when selecting switches, mobos and NICs. In any event, jumbo frames is turned off because the NAS doesn't handle it well. -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Network configuration question: better asking here?
Mhh. Why don't you drop the jumbo frames, buy a $50 gigabit switch and make yourself a nice giga/fast star-shaped network ? Then the only devices that need to be on all the time are the router and the switch. Otherwise you can try a lot a crazy networking stints, using bridging (with different MTUs, urgh.), route priorities, NATing... but you should definitely state the OS you're using. Jumbo frames are not seen by devices which are not designed or configured to receive them. 99.9% of the regular fast ethernet cards will only support a standard max MTU of 1500 (bytes). SBs must be in this case, but maybe the payload is always < 1500, hence SBs would work on a jumbo-enabled network? Jumbo frames are non-standard, a real pain. IMO, any machine with a bit of CPU -which NASes do usually lack, unfortunately- will not show significant differences in throughput, between giga MTU 1500 and giga MTU 9000. I would advise timing data transfers (small files, big files..) in both configurations and see if the difference in real-world performance warrants segregating a network. -- epoch1970 epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
[SlimDevices: Unix] Network configuration question: better asking here?
Asked in general forum, but in hindsight the more technically inclined at probably right here...so apologies for the repeat/crosspost. I've got a (probably dumb) question but as I'm no networking guru, I'll ask it anyway. I have 2 x PCs and a NAS. Both PCs have 2x NICS. Connectivity to Internet is via an ADSL router. SBS is running on the NAS. Thus far (by choice) I've used static IPs in the 192.168.168.x range for my internal network, connecting all PCs via a jumbo frame enabled gigabit switch. This has facilitated moving data between the PCs and the NAS at high-speed. As both PCs also required Internet access from time to time, both are also connected to the ADSL router using the 2nd NIC and using subnet 192.168.1.x. I'm sure some of you are shaking your heads by now, but it works well and has been entirely hassle free. However, as I'm keen to further explore Last.FM's scrobbling and resulting playlists, recommendations etc. I've decided I want to make the NAS internet facing also. My initial gameplan: As my existing network (SB3's etc. included) are not using DHCP I figured the simplest method would be to change my ADSL router configuration such that it is in the same 192.168.168.x subnet, change its DHCP server settings to serve IPs in the same subnet (but in a restricted range I know won't cause any conflicts with the static IPs) and problem solved. On changing the ADSL router confiruration with all machines already booted up and configured as described above, everything worked. All devices could see one another, and access the Internet. On later rebooting the system this no longer works - Internet access is fine but PCs don't see one another or the NAS. If I disconnect the ADSL Router from the PCs then all devices see one another again. So, a few questions: - Does having 2x NICS on a single device each assigned unique IPs in the same subnet create an issue and can it be overcome? I'd like to overcome it because making one of my PCs the gateway forces me to have it on anytime another device needs access. - If I'm forced to use Internet connection sharing with one PC on the network connected to the router, how do I best configure this? Thx -- audiomuze *If you want continued support for Customscan and Custombrowse plugins, vote for 'Bug #6023 - New plugin hooks to implement scanning functions' (https://bugs.slimdevices.com/show_bug.cgi?id=6023) and let Plugin developers do what Logitech won't.* audiomuze's Profile: http://forums.slimdevices.com/member.php?userid=33613 View this thread: http://forums.slimdevices.com/showthread.php?t=73714 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix