Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. Rob H
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 17 December 2020

I'm trying to upgrade the FW of an AXC F 2152 from 2020.6.1 to 2021.0. The same DHCP configuration that worked before no longer works. Eth0 gets the IP address and subnet mask successfully, but does not get the gateway IP address. If I execute the following commands to refresh the DHCP lease after boot, it gets the gateway address successfully. 

dhclient eth0 -r

dhclient eth0

The /etc/network/interfaces file is configured as follows:

# The loopback interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

# Wired or wireless interfaces
#auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

auto enp1s0
iface enp1s0 inet static
address 192.168.10.10
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 8.8.8.8 8.8.4.4

 

Any ideas on how to make this work?

Thanks, 

Rob H

Automation Engineer - Grand Rapids, MI, USA

jan.mueller@phoenixcontact.de Accepted Answer Pending Moderation
0
Votes
Undo

Hi, 

Is it intentional that this part is not commented out? i just read it as a double declaration.

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

 

Greetings, 

Jan 

Rob H Accepted Answer Pending Moderation
0
Votes
Undo

Is it intentional that this part is not commented out? i just read it as a double declaration.

Yes, because if there is a double declaration of auto eth0 it fails to boot.

I did get it to work for now by defining a static IP address that is in the same subnet of IP addresses that it will obtain via DHCP. That's a temporary solution, though, because if the machine moves to a different location in the plant I will need to define a new static IP address definition. That's not ideal. 

Automation Engineer - Grand Rapids, MI, USA

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Rob,

Unfortunately the DHCP Gateway problem is a known issue with firmware 2021.0.0.

The fix for AXC F 2152 will be included in a firmware hotfix, due at the end of this month.

Sorry for the trouble.

~ Martin.

(ref: 204599)

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.