Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

Forum breadcrumbs - You are here:ForumGeneral: edgeLinux/antManReconfigure NANO IP
Please or Register to create posts and topics.

Reconfigure NANO IP

Hi.

So my NANO seems to have lost it's eth0 config and is not picking up an IP from DHCP. How can I reconfigure it via console?

 

Thanks!

Uploaded files:
  • 20210512_111405.jpg

Let's look at your network configuration.

From the SSH Console, use these commands:

cd /etc/sysconfig/network-scripts
more ifcfg-br0
more ifcfg-eth0

Let us know the contents of these files.

---
Here's what mine looks like.

ifcfg-br0:

DEVICE="br0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSBridge"
HOTPLUG="no"
MACADDRESS="dc:a6:32:67:bf:cf"
BOOTPROTO="dhcp"
OVSDHCPINTERFACES="eth0"

ifcfg-eth0:

DEVICE="eth0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSPort"
OVS_BRIDGE="br0"
BOOTPROTO="none"
HOTPLUG="no"
HWADDRESS="dc:a6:32:67:bf:cf"

You can copy and paste the contents but you'll need to change the MACADDRESS for ifg-br0 and HWADDRESS for ifcfg-eth0 so that they match.

You can find your MAC Address by typing this command:

ip addr show br0


You can also send an e-mail to support@antsle.com to open support ticket.

Please let us know how it goes.

Thanks.

I can see that the br0 is configured with the static IP I assigned but it is not responding to ping and cannot ping the gateway. I verified the ethernet and switch and checked that my firewall is not blocking it in any way.

Thanks

Uploaded files:
  • 20210513_091922.jpg

Let's configure ifcfg-br0 with DHCP.

Edit the /etc/sysconfig/network-scripts/ifcfg-br0 with this:

DEVICE="br0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSBridge"
HOTPLUG="no"
MACADDRESS="dc:a6:32:72:e6:c5"
BOOTPROTO="dhcp"
OVSDHCPINTERFACES="eth0"

(For other looking at this post, you'll put your own MAC Address for MACADDRESS=).

Save the file.

Reboot your nano with this command:

reboot

 

I appear unable to edit the file.

Getting the error:

E514: write error (file system full?)

Check the root '/' partition from the antsle's command line with

df -h /

check the 'Use%' column. If the root '/' partition is full we can check for large files with

for f in `find / -xdev -type f -size +300M` ; do ls -lh $f ; done

Check the zpools with

zpool list

The CAP column show the percent full and the FREE column the free space.

lancem has reacted to this post.
lancem

That did it. I found an 11gb log file. once I deleted it I was able to get it back on the network.

 

Thanks

 

Hi nwhouse:

Thanks for letting us know.  Glad to hear that worked.

I'm curious to see what version of antMan that you have on the nano.  Go to Settings in antMan to view which version.

 

Quote from daniel.luck on May 13, 2021, 5:09 pm

Let's configure ifcfg-br0 with DHCP.

Edit the /etc/sysconfig/network-scripts/ifcfg-br0 with this:

DEVICE="br0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSBridge"
HOTPLUG="no"
MACADDRESS="dc:a6:32:72:e6:c5"
BOOTPROTO="dhcp"
OVSDHCPINTERFACES="eth0"

(For other looking at this post, you'll put your own MAC Address for MACADDRESS=).

Save the file.

Reboot your nano with this command:

reboot

 

Hello! I need mine to be on Static and I changed it to DHCP so I cannot access my server now. How do you edit this to change it back to static IP?

Hi Macey:

Now that you've got back to DHCP, you should be able to access your nano with antMan.

You can change your network by going to Network in antMan.

Here are some instructions on how to change to static using antMan:
https://docs.antsle.com/networking/configure-ip-addresses

For reference, here's what my ifcfg-br0 file looks like for one of my antsle's with static ip address:

DEVICE="br0"
ONBOOT="yes"
DEVICETYPE="ovs"
TYPE="OVSBridge"
HOTPLUG="no"
MACADDR="00:0c:29:e8:79:c9"
IPADDR=192.168.1.7
NETMASK=255.255.255.0
GATEWAY=192.168.1.1