Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: apache webserver networksetings disappearance on reboot

  1. #11
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    Quote Originally Posted by steeldriver View Post
    It's hard to understand what you're asking - have you fixed ALL the obvious typos in your /etc/network/interfaces file?

    Aside from the original incorrect capitalization:

    Code:
    netmask 255,255,255,0
    gateweay 192.168.1.255
    Why are you even trying to specify address / netmask / gateway after declaring the interface to use dhcp? AFAIK it needs to be type static if you wat to do that.
    the network is running how I want flawlessly but the config file changes on reboot manually system up all day no downtime connecting inside and out network on reboot back to no network connection and that config file changed again

  2. #12
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    this happens on reboot to that file

    sudo nano /etc/network/interfaces# This file describes the network interfaces a$
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    auto eth1
    iface eth1 inet dhcp
    address 192.168.1.35
    netmask 255.255.255.0
    gateway 192.168.1.255

  3. #13
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    I never typed any of it

    could it be loading that file from a saved temp file or something like that
    Last edited by burge38; April 6th, 2014 at 11:54 AM. Reason: information

  4. #14
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    Last login: Sun Apr 6 09:58:31 2014 from 192.168.1.107
    coolvibes@linuxserver:~$ sudo ip link set dev eth1 down
    [sudo] password for coolvibes:
    coolvibes@linuxserver:~$ sudo dhclient eth1
    coolvibes@linuxserver:~$ sudo ip addr add 192.168.1.14/24 dev eth1
    coolvibes@linuxserver:~$ sudo ip link set dev eth1 up
    coolvibes@linuxserver:~$ sudo ip route add default via 192.168.1.1
    RTNETLINK answers: File exists

    this is pasted from putty what I use to get the eth0 and eth1 up and runnig

  5. #15
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    Last login: Sun Apr 6 12:15:44 2014 from 192.168.1.107
    coolvibes@linuxserver:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 00:04:23:b0:da:f1
    inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::204:23ff:feb0:daf1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:17483 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2558 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1856915 (1.8 MB) TX bytes:733828 (733.8 KB)
    eth1 Link encap:Ethernet HWaddr 00:04:23:b0:da:f0
    inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::204:23ff:feb0:daf0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:445 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:43003 (43.0 KB) TX bytes:1012 (1.0 KB)
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:354 errors:0 dropped:0 overruns:0 frame:0
    TX packets:354 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:31328 (31.3 KB) TX bytes:31328 (31.3 KB)

    what network saying now

  6. #16
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    changed file /etc/network/interfaces

    sudo nano /etc/network/interfaces# This file describes the network interfaces a$
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    auto eth1
    iface eth1 inet dhcp
    address 192.168.1.35
    netmask 255.255.255.0
    gateway 192.168.1.255


    to

    sudo nano /etc/network/interfaces# This file describes the network interfaces a$
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface eth0
    auto eth0
    iface eth0 inet dhcp
    # The secondary network interface eth1
    auto eth1
    iface eth1 inet dhcp


    ctrl o save wrote 16 lines

  7. #17
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    now want to press enter on this command

    sudo /etc/init.d/networking restart

    but I have to d it all over again any suggestions

  8. #18
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    sudo /etc/init.d/networking restart

    results

    Last login: Sun Apr 6 12:29:53 2014 from 192.168.1.107
    coolvibes@linuxserver:~$ sudo /etc/init.d/networking restart
    [sudo] password for coolvibes:
    * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
    * Reconfiguring network interfaces... /etc/network/interfaces:1: misplaced option
    ifdown: couldn't read interfaces file "/etc/network/interfaces"
    /etc/network/interfaces:1: misplaced option
    ifup: couldn't read interfaces file "/etc/network/interfaces"
    [fail]

  9. #19
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    coolvibes@linuxserver:~$ sudo invoke-rc.d networking stop
    [sudo] password for coolvibes:
    * Deconfiguring network interfaces... /etc/network/interfaces:1: misplaced option
    ifdown: couldn't read interfaces file "/etc/network/interfaces"

  10. #20
    Join Date
    Apr 2013
    Beans
    53

    Re: apache webserver networksetings disappearance on reboot

    coolvibes@linuxserver:~$ ls -l /etc/network/interfaces
    -rw-r--r-- 1 root root 379 Apr 6 12:29 /etc/network/interfaces
    coolvibes@linuxserver:~$ cat -e /etc/network/interfaces
    sudo nano /etc/network/interfaces# This file describes the network interfaces available on your system$
    # and how to activate them. For more information, see interfaces(5).$
    $
    # The loopback network interface$
    auto lo$
    iface lo inet loopback$
    $
    # The primary network interface eth0$
    auto eth0$
    iface eth0 inet dhcp$
    $
    # The secondary network interface eth1$
    auto eth1$
    iface eth1 inet dhcp$
    $
    $

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •