You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question about the eth-ap-nat, which may or may not be my actual problem. I am using your code to implement an ethernet port at L3. But, the ethernet port is being assigned the same ip address that the esp32 is being assigned when connecting. Is that related to this _g_esp_netif_soft_ap_ip in the code. It seems this is potentially where I would set the ip address statically if I wanted to for the ethernet. So I am curious how that plays into the code below and what changes I can make to keep from having conflicting IP's.
Console Output from esp_netif_lwip.c file (giving the same ip as my esp32 sta has):
I (27919) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
For reference, it is hit or miss and I have had moments where the ethernet is assigned an IP that is not the same as the esp32 and it works great, but when it restarts it will get the same ip and the ethernet loses connectivity.
The text was updated successfully, but these errors were encountered:
Awesome response time, and thank you for helping! Trying to teach myself alot of this stuff, and it really helps to have transparent answers!!!!! I will give this a try!
I have a question about the eth-ap-nat, which may or may not be my actual problem. I am using your code to implement an ethernet port at L3. But, the ethernet port is being assigned the same ip address that the esp32 is being assigned when connecting. Is that related to this _g_esp_netif_soft_ap_ip in the code. It seems this is potentially where I would set the ip address statically if I wanted to for the ethernet. So I am curious how that plays into the code below and what changes I can make to keep from having conflicting IP's.
Console Output from esp_netif_lwip.c file (giving the same ip as my esp32 sta has):
I (27919) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
const esp_netif_inherent_config_t eth_behav_cfg = {
.get_ip_event = IP_EVENT_ETH_GOT_IP,
.lost_ip_event = 0,
.flags = ESP_NETIF_DHCP_SERVER | ESP_NETIF_FLAG_AUTOUP,
.ip_info = (esp_netif_ip_info_t*)& _g_esp_netif_soft_ap_ip,
.if_key = "ETH_DHCPS",
.if_desc = "eth",
.route_prio = 50
};
For reference, it is hit or miss and I have had moments where the ethernet is assigned an IP that is not the same as the esp32 and it works great, but when it restarts it will get the same ip and the ethernet loses connectivity.
The text was updated successfully, but these errors were encountered: