Profile Details

Toggle Sidebar
Recent updates
  • Web config deleted itself. I'm not sure what to say.

    So.

    I c-popups for forum post titles, oh come on.

    I created a macvlan interface using

    ip link add link eth1 address MACADDRESS eth1.1 type macvlan
    ip link set eth1.1 up
    touch ifcfg-eth1.1

    Then I went into the web interface, refreshed, added a new vlan, noticed my eth1.1 had shown up in the interface manager, deleted the new vlan, edited eth1.1, saved changes after making no changes whatsoever, and went over to my Multi-WAN page to try to configure it to route traffic through eth1.1 using a second public IP address that I had.

    Now the web interface has blown up.

    I saw another thread where someone replaced a zeroed file with a real file from a known good installation, but I have other files disappearing, so I'm getting


    Severity: Warning

    Message: require_once(/usr/clearos/framework/shared/globals.php): failed to open stream: No such device or address

    Filename: shared/bootstrap.php

    Line Number: 107


    The globals.php was missing last time. I replaced it from a different installation. Now bootstrap.php is fritzing out. I'm copying over everything from the other installation underneath /usr/clearos/ and doing the same with my current broken installation. I'm going to undo the changes I made and reboot, but I'm starting to lose confidence that I can fix this.

    What I'd prefer to do is to reinstall my web interface through Yum.

    Any pointers/advice what-so-ever?

  • Finals are finally over!

    I've reinstalled my ClearOS because it burnt through another thumb drive, so I'm officially on a cheap SSD. Eth0 is LAN, eth1 is external.

    Here's the config and MAC address in various stages:

    Working:


    root@myhostname network-scripts]# cat ifcfg-eth*
    DEVICE=eth0
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="static"
    IPADDR="192.168.100.1"
    NETMASK="255.255.255.0"
    DEVICE=eth1
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="dhcp"
    PEERDNS="yes"


    [root@myhostname network-scripts]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr eth0mac
    inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:15579 errors:0 dropped:0 overruns:0 frame:0
    TX packets:11819 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:4064654 (3.8 MiB) TX bytes:4338978 (4.1 MiB)
    Interrupt:16 Memory:f6080000-f60a0000

    eth1 Link encap:Ethernet HWaddr eth1mac
    inet addr:MyIP Bcast:BCASTIP Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4462 errors:3320 dropped:0 overruns:3320 frame:0
    TX packets:3081 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2841901 (2.7 MiB) TX bytes:504736 (492.9 KiB)
    Interrupt:23 Base address:0x8000

    eth1.1 Link encap:Ethernet HWaddr eth1mac
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:2076 (2.0 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:1781 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1781 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:173237 (169.1 KiB) TX bytes:173237 (169.1 KiB)


    If I add a vlan through the web interface after deleting eth1, it never gets an IP address and I can see the link turning on and off.


    [root@myhostname network-scripts]# cat ifcfg-eth*
    DEVICE=eth0
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="static"
    IPADDR="192.168.100.1"
    NETMASK="255.255.255.0"
    DEVICE=eth1.1
    TYPE="VLAN"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="dhcp"
    PEERDNS="yes"
    VLAN="yes"
    DHCP_HOSTNAME="spoofhostname"
    [root@myhostname network-scripts]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr eth0mac
    inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:21718 errors:0 dropped:0 overruns:0 frame:0
    TX packets:15681 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:5614108 (5.3 MiB) TX bytes:5046469 (4.8 MiB)
    Interrupt:16 Memory:f6080000-f60a0000

    eth1 Link encap:Ethernet HWaddr eth1mac
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:5729 errors:5246 dropped:0 overruns:5245 frame:1
    TX packets:3800 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:3025977 (2.8 MiB) TX bytes:605277 (591.0 KiB)
    Interrupt:23 Base address:0x8000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:2399 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2399 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:225650 (220.3 KiB) TX bytes:225650 (220.3 KiB)



    If I re-add eth1, this is where I get, with eth1.1 never acquiring an IP


    [root@myhostname network-scripts]# cat ifcfg-eth*
    DEVICE=eth0
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="static"
    IPADDR="192.168.100.1"
    NETMASK="255.255.255.0"
    DEVICE=eth1
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="dhcp"
    PEERDNS="yes"
    DHCP_HOSTNAME="myhostname"
    DEVICE=eth1.1
    TYPE="VLAN"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="dhcp"
    PEERDNS="yes"
    VLAN="yes"
    DHCP_HOSTNAME="spoofhostname"
    [root@myhostname network-scripts]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr eth0mac
    inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:24990 errors:0 dropped:0 overruns:0 frame:0
    TX packets:18128 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:6331457 (6.0 MiB) TX bytes:5703686 (5.4 MiB)
    Interrupt:16 Memory:f6080000-f60a0000

    eth1 Link encap:Ethernet HWaddr eth1mac
    inet addr:MyIP Bcast:BCASTIP Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:7174 errors:5996 dropped:0 overruns:5995 frame:1
    TX packets:5491 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:3485333 (3.3 MiB) TX bytes:864086 (843.8 KiB)
    Interrupt:23 Base address:0x8000

    eth1.1 Link encap:Ethernet HWaddr eth1mac
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:1730 (1.6 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:2696 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2696 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:250340 (244.4 KiB) TX bytes:250340 (244.4 KiB)




    With fake MAC addresses after a reboot

    [root@myhostname network-scripts]# cat ifcfg-eth*
    DEVICE=eth0
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="static"
    IPADDR="192.168.100.1"
    NETMASK="255.255.255.0"
    DEVICE=eth1
    TYPE="Ethernet"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="dhcp"
    PEERDNS="yes"
    DHCP_HOSTNAME="myhostname"
    DEVICE=eth1.1
    MACADDR="spoofmac"
    TYPE="VLAN"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="dhcp"
    PEERDNS="yes"
    VLAN="yes"
    DHCP_HOSTNAME="spoofhostname"


    [root@myhostname network-scripts]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr eth0mac
    inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:6775 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4814 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1299680 (1.2 MiB) TX bytes:1145329 (1.0 MiB)
    Interrupt:16 Memory:f6080000-f60a0000

    eth1 Link encap:Ethernet HWaddr eth1mac
    inet addr:MyIP Bcast:BCASTIP Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:3546 errors:1078 dropped:0 overruns:1077 frame:1
    TX packets:2862 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:933846 (911.9 KiB) TX bytes:474303 (463.1 KiB)
    Interrupt:23 Base address:0x8000

    eth1.1 Link encap:Ethernet HWaddr spoofmac
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:692 (692.0 b)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:1359 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1359 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:484194 (472.8 KiB) TX bytes:484194 (472.8 KiB)





    [root@myhostname network-scripts]# dhclient -v eth1.1
    Internet Systems Consortium DHCP Client 4.1.1-P1
    Copyright 2004-2010 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/

    Listening on LPF/eth1.1/spoofmac
    Sending on LPF/eth1.1/spoofmac
    Sending on Socket/fallback
    DHCPDISCOVER on eth1.1 to 255.255.255.255 port 67 interval 7 (xid=0xc9b5e81)
    receive_packet failed on eth1.1: Network is down
    DHCPDISCOVER on eth1.1 to 255.255.255.255 port 67 interval 9 (xid=0xc9b5e81)
    send_packet: No such device or address
    DHCPDISCOVER on eth1.1 to 255.255.255.255 port 67 interval 13 (xid=0xc9b5e81)
    send_packet: No such device or address
    DHCPDISCOVER on eth1.1 to 255.255.255.255 port 67 interval 10 (xid=0xc9b5e81)
    send_packet: No such device or address
    DHCPDISCOVER on eth1.1 to 255.255.255.255 port 67 interval 11 (xid=0xc9b5e81)
    send_packet: No such device or address


    [root@myhostname network-scripts]# dhclient -v eth1
    Internet Systems Consortium DHCP Client 4.1.1-P1
    Copyright 2004-2010 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/

    Listening on LPF/eth1/eth1mac
    Sending on LPF/eth1/eth1mac
    Sending on Socket/fallback
    DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6 (xid=0x44810a50)
    DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x44810a50)
    DHCPOFFER from 129.244.142.2
    DHCPREQUEST on eth1 to 255.255.255.255 port 67 (xid=0x44810a50)
    DHCPACK from 129.244.142.2 (xid=0x44810a50)
    bound to 129.244.142.189 -- renewal in 121663 seconds.




    Any thoughts as to what to try next?