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
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
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
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
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
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
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]
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"
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$
$
$
Bookmarks