LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2015, 12:53 PM   #1
Pierrick
LQ Newbie
 
Registered: May 2015
Posts: 9

Rep: Reputation: Disabled
Question 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
 
Old 05-05-2015, 01:44 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,950

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
How did you configure networking for your VM?
Did you add a second network adapter? How is it configured?
 
Old 05-05-2015, 02:18 PM   #3
Pierrick
LQ Newbie
 
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-05-2015, 02:40 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,950

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Looks like eth1 is up and working. Is network manager running?
 
Old 05-06-2015, 08:08 AM   #5
Pierrick
LQ Newbie
 
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
We don't have install network manager.
 
Old 05-06-2015, 08:18 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,950

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
What happens when you remove gateway 192.168.10.254 from your interface file.
 
Old 05-06-2015, 08:26 AM   #7
Pierrick
LQ Newbie
 
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
It works!

Thank you !
 
  


Reply

Tags
debian, network interface


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't bring up eth0 or eth1 after replacing main harddrive (centos) abefroman Linux - Networking 8 08-28-2013 02:27 PM
Failed to bring up eth1. bangbang Linux - Networking 1 10-20-2008 06:55 AM
kernel failed to bring eth1 up ekdya Debian 1 09-18-2006 04:00 AM
unable to bring eth1 up PennyroyalFrog Linux - Newbie 2 11-18-2004 04:41 AM
bring up eth1 alaios Red Hat 1 06-06-2004 01:33 AM


All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration