How to set ESP GW (gateway) via commands

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dampa
Normal user
Posts: 87
Joined: 19 Jul 2018, 01:48

How to set ESP GW (gateway) via commands

#1 Post by dampa » 04 Jan 2019, 14:37

While it IS possible to set the IP address via rules, there doesn't seem to be a way to set the gateway. I have two locations I want to use a device AND I want the device to have a particular last section of the IP. For example, for the primary SSID I want the address to be 10.0.0.19 on the fallback SSID I want it to be 192.168.1.19 - I have tried adding a rule that looks at the SSID and then assigns the IP I want, but if I reboot, I get the IP that the router deside to hand to me. Same thing if I use a serial monitor and set the IP then disconnect the wifi, I still end up with the IP assigned by the router.

Bottom line if if I connect to the primary SSID I want one IP address, if I connect to the fallback SSID I want another IP, both ending it an assigned octal (?I think that is the term)

Anyone have nay ideas?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: How to set ESP GW (gateway) via commands

#2 Post by grovkillen » 04 Jan 2019, 15:36

Gateway,<ip>
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 49 guests