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!
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!
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 [email protected] 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
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.
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
Log in to reply. New here? It takes a minute.