Setting Up A Static IP Address

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
Stupid Dufus
Posts: 152
Joined: Sun Aug 30, 2020 12:04 am
Has thanked: 89 times
Been thanked: 46 times

Re: Setting Up A Static IP Address

Unread post by Stupid Dufus »

Not really familiar with WinSCP, but what if you try this?

Code: Select all

./network_ip_static_wlan0.sh
akeley
Top Contributor
Posts: 1314
Joined: Mon May 25, 2020 7:54 pm
Has thanked: 425 times
Been thanked: 415 times

Re: Setting Up A Static IP Address

Unread post by akeley »

I tried it, but get the same "not understood" error.

akeley
Top Contributor
Posts: 1314
Joined: Mon May 25, 2020 7:54 pm
Has thanked: 425 times
Been thanked: 415 times

Re: Setting Up A Static IP Address

Unread post by akeley »

Ok, I managed to run the script from the Linux terminal on the mister itself (F9). But, I didn't change the default values in the script first, so now I can't log in via WinSCP at all.

I suppose I should try and modify the script directly on the SD card and then run it again. Question is, what values should I use? My PC is connected to the router via ethernet and MiSTer uses wifi dongle. The script (I use the wlan0 one) requires to: "set ip address, subnet mask, standard gateway and dns server". Are these the values found in Win Settings>>Network Connections >>Ethernet>>Status>>Details?

yoshi41
Posts: 10
Joined: Sun May 24, 2020 9:12 pm
Has thanked: 2 times
Been thanked: 6 times

Re: Setting Up A Static IP Address

Unread post by yoshi41 »

Yes, you can use the values from the ethernet status details page.

Or from this command in the Windows cmd window...

Code: Select all

ipconfig /all

Regarding the script variables...

Code: Select all

SIA_IP=192.168.1.41
SIA_SM=255.255.255.0
SIA_GW=192.168.1.1
SIA_NS=8.8.8.8

Make sure the IP address (SIA_IP) is not in the router DHCP address pool. For the DNS server (SIA_NS) you can use 8.8.8.8 (Google DNS server).

Also make sure the script remains in "Unix (LF)" format or edit the file with Linux vi (only if you know how to use it).

network_ip_static_wlan0.png
network_ip_static_wlan0.png (48.22 KiB) Viewed 858 times
akeley
Top Contributor
Posts: 1314
Joined: Mon May 25, 2020 7:54 pm
Has thanked: 425 times
Been thanked: 415 times

Re: Setting Up A Static IP Address

Unread post by akeley »

Thank you for the detailed reply, yoshi41. It did help me to sort it out (even though phrases such as "DHCP address pool" still make my mind go blank and using vi was a bit scary ;) - after a few reboots the MiSTer's IP remains stable and WinSCP logs in instantly now every time.

Post Reply