Forums

Resolved
0 votes
A few strange issues after moving to different machine

Move hd to different machine

It booted and everything worked

However it kept loosing its gateway after sometime

nic was set to external static mode was stand alone

I ran into this on the google cloud host and I had to set nic to external and dhcp and it kept IP

Now on this box it will not

So I also set it to external and DHCP and reserved the ip on my router

As part of the troubleshooting process I deleted the adaptor then readded it

I hope with these changes it will keep the gateway.


Now I have a strange issue

If I am at the console of the computer and do a graphical login it jumps strait to the network config screen and there is no top menu where I can get back to the main menu.

If I connect remotely to the 81 port it acts like it is supposed to I get the main menu.

Also both nics are added only one is connected with cable both are external DHCP at this point
Sunday, October 04 2020, 02:30 PM
Share this post:

Accepted Answer

Sunday, October 04 2020, 05:00 PM - #Permalink
Resolved
0 votes
Generally when changing servers, the NIC configuration changes and it can leave behind hidden entries which make a mess of one ot two things. Can you check the ???IF parameters in /etc/clearos/network.conf and remove any non-existent interfaces. In /etc/clearos/firewall .conf remove an line referring to non-existent interfaces. The same goes for /etc/clearos/qos.conf, if you have it. Also remove non-existent interfaces from /etc/clearos/multiwan.conf and /etc/clearos/dynamicvpn.conf, if you have them.
The reply is currently minimized Show
Responses (15)
  • Accepted Answer

    Tuesday, October 06 2020, 12:10 PM - #Permalink
    Resolved
    0 votes
    There is a difference between the DHCP server and DHCP client. The DHCP server should have no play in this. What does is the DHCP client. In the messages log this is all the dhclient messages.

    One or two people have had issues like this and we have have not been able to fathom them out. You may be the second or third person. I am not sure. If you can switch to static, it should sidestep the issue but it is perplexing.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 06 2020, 11:41 AM - #Permalink
    Resolved
    0 votes
    I got it to keep the gateway overnight

    Here is what I noticed DHCP server was running but no interface was enabled on it so I uninstalled it. Not sure if that had any impact

    Enabled all interfaces set both to static

    Set the one for internet access to external and the other that was not connected to lan

    Gave both an ip address on different subnets (local ones) even the one that was not connected.

    I had both set to static before and one set to external and one set to lan. However this time I gave both of them an IP and other info. instead of just one.

    Keeping my fingers crossed
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 06 2020, 07:27 AM - #Permalink
    Resolved
    0 votes
    Please also check that syswatch is running.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 06 2020, 01:03 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    There is no harm setting it.

    Can you look in /var/log/syswatch and /var/log/messages to see if there are any lease renewal issues.


    I went back to static

    Removed the network device I was not using to see if that helps

    If it looses gateway again, I have no clue what is going on
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 06:03 PM - #Permalink
    Resolved
    0 votes
    There is no harm setting it.

    Can you look in /var/log/syswatch and /var/log/messages to see if there are any lease renewal issues.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 05:14 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    I'm confused. You should not be running network manager at all. The standard ClearOS installation does not use it and I believe it is incompatible with syswatch. Normally that parameter does not appear in any of the ifcfg-* files.


    Well I guess that will not fix it...

    I found two articles talking about that setting thought it might help.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 03:52 PM - #Permalink
    Resolved
    0 votes
    I'm confused. You should not be running network manager at all. The standard ClearOS installation does not use it and I believe it is incompatible with syswatch. Normally that parameter does not appear in any of the ifcfg-* files.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 03:24 PM - #Permalink
    Resolved
    0 votes
    HP ProLiant DL360e Gen8 Server - No Network Connectivity After Installing CentOS 6.3
    Issue
    CentOS 6.3 installed on HP ProLiant DL360e Gen8. After installing there was no network connectivity. No LEDs on the network interface. Attempted to load the network driver and restart the server with no success.

    By default CentOS 6 will not configure network interfaces on a new installation which means the host will not have network connnectivity.

    File configurations for each network device are located in the /etc/sysconfig/network-scripts/ifcfg-{eth0,eth1,bond,etc} directory. To modify the network address manually, edit the file ifcfg-ethN.

    Solution
    Check the contents of the ifcfg-eth0 file:

    #cat /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE="eth0"
    HWADDR="MAC Address"
    NM_CONTROLLED="yes"
    ONBOOT="no"

    The above indicates that eth0 is disabled. With a text editor of ones choice, open the /etc/sysconfig/network-scripts/ifcfg-eth0 and edit as indicated below:

    #vi /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE="eth0"
    HWADDR=MAC Address*System MAC*
    NM_CONTROLLED="no"
    ONBOOT="yes"
    BOOTPROTO="dhcp"

    DHCP Configuration

    DEVICE="eth0" – Name of Network Interface.

    HWADDR=MAC Address*System MAC* – MAC address of Network Interface.

    NM_CONTROLLED="no" – Network Manager should disable since it is unnecessary in this configuration.

    ONBOOT="yes" – Means the NIC will be started during boot.

    BOOTPROTO="dhcp" – Instruct the OS to find a DHCP server from which to obtain an IP address. The DHCP server will assign all necessary network information including IP address, Netmask, Gateway and DNS server.

    Restart the network service

    #service network restart
    For static IP Configuration just changed the bootproto to static (BOOTPROTO="static"), specifify the IP, Netmask and restart the service as well.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 03:23 PM - #Permalink
    Resolved
    0 votes
    Found this on the interwebs

    to /etc/sysconfig/network-scripts/ifcfg-eth0, and either do service network restart, or reboot. And make really sure NetworkManager's disabled by changing NM_CONTROLLED="yes" to NM_CONTROLLED="no" in the same file, that thing's a vile horror for servers.

    so ifcfg-eno1 added NM_CONTROLLED="no" HPs website also mentioned to turn this off

    Crossing fingers
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 02:22 PM - #Permalink
    Resolved
    0 votes
    I have two interfaces on this machine

    en0
    en1

    I have removed en1 to see if that helps

    en0 is dhcp external

    After making changes I rebooted

    thankfully I can use the google cloud host as a backup as I get this one sorted out
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 02:05 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    If you do not have a dedault route, it generally means you do not have an external interface configured. Can you check that eno1 is set to External and not LAN?


    Yes it is set to external dhcp

    I had this same issue with google cloud at one point. Setting it to external worked

    However on this host it does not seem to resolve it.

    If I go to the network screen in centos and do update

    The default gateway reappears and ever thing starts working.

    However overnight it seems to loose it.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 01:20 PM - #Permalink
    Resolved
    0 votes
    If you do not have a dedault route, it generally means you do not have an external interface configured. Can you check that eno1 is set to External and not LAN?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 11:58 AM - #Permalink
    Resolved
    0 votes
    Well I woke up this morning and this

    I can not connect to the internet

    [root@vonwallace ~]# route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.86.0 0.0.0.0 255.255.255.0 U 0 0 0 eno1
    [root@vonwallace ~]#

    Why does it keep doing this?

    No clue...

    [root@vonwallace ~]# ifconfig
    eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.86.43 netmask 255.255.255.0 broadcast 192.168.86.255
    inet6 fe80::c634:6bff:fe93:6ccc prefixlen 64 scopeid 0x20<link>
    ether c4:34:6b:93:6c:cc txqueuelen 1000 (Ethernet)
    RX packets 168601 bytes 150315576 (143.3 MiB)
    RX errors 0 dropped 1 overruns 0 frame 0
    TX packets 55040 bytes 13022886 (12.4 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 16

    eno2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether c4:34:6b:93:6c:cd txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 17

    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 15518 bytes 2636932 (2.5 MiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 15518 bytes 2636932 (2.5 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    [root@vonwallace ~]#
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 07:16 AM - #Permalink
    Resolved
    0 votes
    Yes, the graphical screen only gets the Network screen.
    I don't understand it, but some systems go straight to the graphical screen when logging on at the console and others don't and you have to select it from the small menu.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 05 2020, 04:11 AM - #Permalink
    Resolved
    0 votes
    /etc/clearos/network.conf

    Did find some left overs in there

    Cleaned them up everything else looked good

    Now that both en interface are setup as External and DHCP the gateway is not lost. one nic is not attached to a cable

    Not sure why static external had an issue with loosing gateway.

    Another question when at the console on the server its self logging in via the graphical menu not the text one. Should I only get the network config screen of the graphical menu?
    The reply is currently minimized Show
Your Reply