Author

Topic: LK BTC Miner SubNet Mask Mistake 255.255.255.255 (Read 958 times)

newbie
Activity: 7
Merit: 0
Hello - Yes, thanks... I actually had to use a slightly better way to correct the mis-configuration. The vendor stated that there was no link to their machine's image file.

I connected the composite video output of the Raspberry Pi to my monitor, and also connected a RPi-compatible USB keyboard (GearHead KB1700U) to the USB on the RPi. I had to learn a little Linux to get to a subdirectory for editing the file named interfaces. Commands like ls (list contents), cd .. (like DOS move up a directory), cd (like DOS change to directory), etc. The file is usually located in a directory at a similar location like these examples:

/etc/media/network/interfaces
/etc/network/interfaces

Using the built-in editor nano, this command opened the file with the editor:
sudo nano interfaces

If passwords are required at any time, User is: pi and password is: raspberry

The interfaces text file was edited for my configuration to this:
iface eth0 inet static
address 192.168.0.23
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1

Systems may vary so these lines could be different, and it is probably safer to only change~add~delete what is necessary.

To save the edited file:
x

Then confirm the save y/n with:
y

I was advised that there can be another file named resolv.conf located:
/etc/resolv.conf

And that can be edited to the Google public DNS server IP like this:
nameserver 8.8.8.8
name server 8.8.4.4

But, I did not look for that file.

I was told that the RPi IP settings can be set temporarily with a command like:
ifconfig eth0 192.168.0.23 netmask 255.255.255.0

Which would then allow access from a browser on the network to change the IP through the standard interface software. This would have to be done before the system is restarted as the temporary settings would not be retained and used. I did not try this though.

Rick450
hero member
Activity: 539
Merit: 500
Hello, can anyone help... I goofed-up and reset an IP on a LKetc 1th machine from 192.168.1.x (255.255.255.0) to 192.168.0.23 (255.255.255.255) and I now realize that the subnet mask of 255.255.255.255 should have been left as is.

I cannot communicate with the machine now.

How can I reset the subnet mask?

Thanks if anyone could advise,
Rick450

Best way would be to rewrite the image to the sdcard.  You've specified a broadcast address for the subnet mask.  That address is basically out of bounds for other nics to talk to it.
newbie
Activity: 7
Merit: 0
Hello, can anyone help... I goofed-up and reset an IP on a LKetc 1th machine from 192.168.1.x (255.255.255.0) to 192.168.0.23 (255.255.255.255) and I now realize that the subnet mask of 255.255.255.255 should have been left as is.

I cannot communicate with the machine now.

How can I reset the subnet mask?

Thanks if anyone could advise,
Rick450
Jump to: