ip conflict on boot
Malcolm Hussain-Gambles (1596) 811 posts |
At first I thought about putting this into Wish list, but I thought a more general discussion would be appropriate. Ideas and thoughts around the networking setup in RISC OS? |
Dave Higton (1515) 3526 posts |
I decided long ago that the easiest way to do things is to set up all the machines on my LAN with fixed IP addresses. I also allow a small pool of DHCP addresses on the router and each of the wifi access points so that anyone can connect (wired or wireless) and get an address that doesn’t conflict with the fixed addresses. Since the addresses are fixed, they can go in the Hosts file of each machine, which allows every host to be pinged, connected to, etc. by name. The Hosts file can be copied between machines whenever it is updated. I think it’s much easier than using DHCP. |
Steve Pampling (1551) 8170 posts |
It’s a view. But then I use some machines at/from home and at work. At work I have 4500+ wired devices, 600+ wireless AP’s feeding numerous wireless devices and we long since binned the idea of doing things with hosts files. Decent routers (and even the ones supplied by BT) allow a setting of “always use this address” which means the machines have a “fixed” address offered by DHCP. Since DHCP and DNS are working nicely together all machines have the correct settings – always. To answer Malcolm’s query: Leave the client machines as DHCP, work on the router and set one configuration correctly – done. All comments apply equally to home or work, although at work the hosts file idea is insane. |
Dave Higton (1515) 3526 posts |
Yes, but that isn’t a relevant context here. One difficulty we still have with RISC OS, and you don’t have at work, is that host IP addresses should be automatically put into DNS, so you can connect and ping by name without needing a Hosts file. I’d be interested to know the protocols involved. |
Chris Hall (132) 3554 posts |
I have my router set up to allocate DHCP addresses but to allocate a fixed Ip address to certain (specified) MAC addresses. That means that my printer has a predictable static IP address although as far as it is concerned it just uses DHCP. |
Grahame Parish (436) 481 posts |
That’s definitely the best way to do it if your router supports it. You can change the DNS server (for example) in the router and all clients get updated when they next renew their lease, rather than going to each one and editing the settings individually. |
Rick Murray (539) 13840 posts |
That’s exactly how my Livebox is set up. Easiest way. |
Steve Pampling (1551) 8170 posts |
The BT supplied router, at home, takes the host name information sent by the client and inserts it into its local DNS cache as hostname.home so RISCPC1 can be pinged as RISCPC1.home (but not RISCPC1 with no suffix) A number of people actually have the feature working in their home router but because they don’t ping the FQDN they erroneously believe their router doesn’t have the facility. Don’t get me wrong the network side of RO needs work and the Resolver module is high on the list for needing a good sort out. However, even the current implementation does a good enough to get by job for a home network provided the router is half decent and configured properly. As Rick put it:
|
Malcolm Hussain-Gambles (1596) 811 posts |
I did used to have it set as dhcp, but I noticed it was quite slow at doing dhcp so I moved it to static. |
Steve Pampling (1551) 8170 posts |
That is the main point in recommending people use DHCP and do the config in one single location with the advantage that users can ask for advice on things like adding a reservation out on the net if their router documentation doesn’t specifically list it.
Which is where a single stepping boot option would be handy, especially if it also logs every stage to a system log which makes describing the fault to someone else a lot easier. |