Debugging CIFS / samba on Windows

From: ANT_THOMAS19 Jun 2016 19:27
To: Peter (BOUGHTONP) 25 of 52
Do you still not have a phone line?
From: graphitone19 Jun 2016 19:43
To: patch 26 of 52
Aye, s'what I was thinking.
From: koswix19 Jun 2016 19:43
To: Peter (BOUGHTONP) 27 of 52
Can you connect to anything else on the Ethernet adapter? Config looks a bit... nonstandard.
From: ANT_THOMAS19 Jun 2016 19:46
To: koswix 28 of 52
Don't be shocked.
From: patch19 Jun 2016 19:54
To: graphitone 29 of 52
The network engineer in me thinks that 169.254 should never be used so that it's obvious when they crop up that something is wrong. But then there's at least one example of paid work that I've done which uses them for the wireless access points VLAN. Such a cowboy.
From: Chris (CHRISSS)19 Jun 2016 19:55
To: Peter (BOUGHTONP) 30 of 52
Give it a proper IP address and see if that helps.
From: ANT_THOMAS19 Jun 2016 20:05
To: patch 31 of 52
Definitely some totally unconventional setup going on here, which is no surprise.
From: Peter (BOUGHTONP)19 Jun 2016 21:18
To: koswix 32 of 52
I can SSH to the Pi via it - at present only the three devices are connected.
From: Peter (BOUGHTONP)19 Jun 2016 21:18
To: ANT_THOMAS 33 of 52
Hey, I'm still celebrating finally having a device that does 4G. :C
From: Peter (BOUGHTONP)19 Jun 2016 21:19
To: Chris (CHRISSS) 34 of 52
Yep, gonna have a go at setting up the Pi as a DHCP server, but probably tomorrow when I'm (hopefully) less tired.
From: Peter (BOUGHTONP)19 Jun 2016 21:19
To: ANT_THOMAS 35 of 52
There's nothing deliberately unconventional - it really was just get the NAS connected enough to shunt files around and make space on the main machine and I'll set things up properly later, then it's always just been oh it's working good enough for now.

I fecking hate "good enough for now". :@

From: graphitone19 Jun 2016 21:22
To: Peter (BOUGHTONP) 36 of 52
Doesn't whatever router you're using to connect to the internet have a DHCP client on it?
From: graphitone19 Jun 2016 21:29
To: patch Peter (BOUGHTONP) 37 of 52
Yeah, as I said somewhere above, the 169.254.X.X range is the automatic private IP addressing, usually only used by default when a client machine can't connect anywhere and gives itself an address.

I can imagine PB using it for his network address though. :C

Making sure everything's on the same subnet should be the first thing to check, unless PB's got a huge amount of hosts or some weird routing somewhere, it should only need a /24 range, looking at the ipconfig, he's got a /16 on the windows box.

PB - what're the IP settings on the NAS?


 
From: ANT_THOMAS19 Jun 2016 21:37
To: Peter (BOUGHTONP) 38 of 52
Get a proper router and use that as your DHCP server. Don't arse about with other devices.

Do it a more conventional way and it'll no doubt work properly.
EDITED: 19 Jun 2016 21:37 by ANT_THOMAS
From: Peter (BOUGHTONP)19 Jun 2016 21:39
To: graphitone 39 of 52
The router is my mobile, using wifi tethering.

The NAS and Pi are on ethernet only, connected via a dumb switch.

From: Peter (BOUGHTONP)19 Jun 2016 21:40
To: graphitone 40 of 52
The NAS is 169.254.184.206 and matching 255.255.0.0 subnet (again, this was working fine for six months).

You'll be delighted to know that when I setup DHCP I'm gonna use class A. :>

From: ANT_THOMAS19 Jun 2016 21:43
To: Peter (BOUGHTONP) 41 of 52
I've actually done what you're doing years ago and I was able to use a more conventional network setup.

Probably easier using static IPs.

I had a small access point in client mode attached to the network via a cable and then wireless to the phone. This meant whenever the tethering was enabled the network got Internet access. Meant only a single wifi connection to the phone to get everything online.
From: graphitone19 Jun 2016 22:32
To: Peter (BOUGHTONP) 42 of 52
 :-O

 :-O~~~
From: patch20 Jun 2016 06:36
To: graphitone 43 of 52
APIPA uses a /16 mask by default, so that's no biggy. If you can ping and ssh, then you know the connectivity is there, so it's either something in the PCs network adapter, or the NAS itself. Perhaps try deleting the NIC from the PC and then adding it again after a reboot. That might (might!) set it up with the default settings.
From: graphitone20 Jun 2016 10:35
To: patch Peter (BOUGHTONP) 44 of 52
Aye, it's usable o' course, just unusual to see it - it always makes me think that the host has lost connectivity, but if PB's NAS is on the same range then all's ok.

Does the PC just have the one NIC?
EDITED: 20 Jun 2016 10:40 by GRAPHITONE