LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Failed to bring up eth1 - Debian Wheezy (https://www.linuxquestions.org/questions/linux-newbie-8/failed-to-bring-up-eth1-debian-wheezy-4175541698/)

Pierrick 05-05-2015 11:53 AM

Failed to bring up eth1 - Debian Wheezy
 
Hi,

I tried to configure my ethernet interface on a Debian Wheezy VM, but I've a problem. When I try to restart /etc/init.d/networking, I've no error message.
But my eth1 interface isn't up and when I try to up it with : ifup eth1, it return me :

Code:

root@debian-main:/# ifup eth1
RTNETLINK answers: File exists
Failed to bring up eth1

My /etc/network/interface file is :

Code:

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp


iface eth1 inet static
        address 192.168.10.1
        netmask 255.255.255.0
        gateway 192.168.10.254

Eth0 is my internet interface and eth1 is a local interface. I want to install a DNS and a DHCP server on eth1 to be able to connect client with this VM and give them an ip adress.

Thanks guys

michaelk 05-05-2015 12:44 PM

How did you configure networking for your VM?
Did you add a second network adapter? How is it configured?

Pierrick 05-05-2015 01:18 PM

I've 2 network adapter, eth0 on bridge for internet and eth1 on NAT.

I show you a ifconfig:

Code:

root@debian-main:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:04:19:02 
          inet adr:192.168.0.19  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::20c:29ff:fe04:1902/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:157141 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35326 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:203240884 (193.8 MiB)  TX bytes:4025939 (3.8 MiB)

eth1      Link encap:Ethernet  HWaddr 00:0c:29:04:19:0c 
          inet adr:192.168.10.1  Bcast:192.168.10.255  Masque:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Boucle locale 
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3571 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:277114 (270.6 KiB)  TX bytes:277114 (270.6 KiB)


Thanks you.

michaelk 05-05-2015 01:40 PM

Looks like eth1 is up and working. Is network manager running?

Pierrick 05-06-2015 07:08 AM

We don't have install network manager.

michaelk 05-06-2015 07:18 AM

What happens when you remove gateway 192.168.10.254 from your interface file.

Pierrick 05-06-2015 07:26 AM

It works!

Thank you !


All times are GMT -5. The time now is 10:06 PM.