LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-27-2009, 03:49 PM   #1
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Rep: Reputation: 15
Question eth0: error fetching interface information: Device not found


I want Allowing VPN clients to access VPN server local network with debian

Quote:
ifconfig eth0 | grep inet | \
sed -e 's/.*:\([0-9\.]*\)[0-9]\{1,3\} .*:\([0-9\.]*\) .*:\([0-9\.]*\).*/push "route \10 \3"/g' \
>> /etc/openvpn/server.conf
eth0: error fetching interface information: Device not found

What's this error?

Last edited by sungirl; 02-27-2009 at 04:27 PM.
 
Old 02-27-2009, 04:15 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Cleveland Ohio
Distribution: CentOS
Posts: 235

Rep: Reputation: 36
Did you try eth1?
 
Old 02-27-2009, 04:22 PM   #3
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by kentyler View Post
Did you try eth1?
Thanks for replay.

Yes but same problem!

ifconfig eth1
Quote:
eth1: error fetching interface information: Device not found
 
Old 02-27-2009, 04:41 PM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Did you removed or add any network device recently?
MAC address needs to be entered in the **_persistent-net.rules file for your interface which is in the /etc/udev/rules.d/ directory or similar,depends on the distro.
(** are random numbers.)

Last edited by alan_ri; 02-27-2009 at 04:54 PM.
 
Old 02-27-2009, 04:53 PM   #5
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
cd /etc/udev/rules.d/
-bash: cd: /etc/udev/rules.d/: No such file or directory
How i should add it?
 
Old 02-27-2009, 05:06 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Search for udev,it should be in /etc then find the rules.You're using Debian right?

Last edited by alan_ri; 02-27-2009 at 05:09 PM.
 
Old 02-27-2009, 05:36 PM   #7
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
Search for udev,it should be in /etc then find the rules.You're using Debian right?
i searched for udev but i can't find it!
yes i using debian!!
 
Old 02-27-2009, 05:38 PM   #8
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
Search for udev,it should be in /etc then find the rules.You're using Debian right?
i searched for udev but i can't find it!
yes i using debian!!
 
Old 02-27-2009, 10:12 PM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Go here.You'll see that they say that there should be /etc/udev/rules.d/ in Debian.Try
Code:
whereis udev
or
Code:
find / -name'70_persistent-net.rules' 2>errors.txt
or try
Code:
find /rules.d 2>errors.txt
Code:
find /udev 2>errors.txt
Post errors from errors.txt files if any.
Anyway if you follow instructions on the link above you should be able to set things (if you find udev directory),if not,post back.

Last edited by alan_ri; 02-27-2009 at 11:05 PM.
 
Old 02-28-2009, 01:43 AM   #10
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
Go here.You'll see that they say that there should be /etc/udev/rules.d/ in Debian.Try
Code:
whereis udev
or
Code:
find / -name'70_persistent-net.rules' 2>errors.txt
or try
Code:
find /rules.d 2>errors.txt
Code:
find /udev 2>errors.txt
Post errors from errors.txt files if any.
Anyway if you follow instructions on the link above you should be able to set things (if you find udev directory),if not,post back.
# whereis udev
udev:

errors.txt:
find: /udev: No such file or directory
 
Old 02-28-2009, 01:57 AM   #11
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
Its not /udev.
Use this command

find / -name udev

You will find it in /etc.

Also just paste output of "ifconfig"
 
Old 02-28-2009, 04:49 AM   #12
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
output ifconfig:

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:188 errors:0 dropped:0 overruns:0 frame:0
TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42026 (41.0 KiB) TX bytes:42026 (41.0 KiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:10.23.213.1 P-t-P:10.23.213.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP 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 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255. 255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:87164 errors:0 dropped:0 overruns:0 frame:0
TX packets:102640 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9226555 (8.7 MiB) TX bytes:16398951 (15.6 MiB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:87.118.56.171 P-t-P:87.118.56.171 Bcast:0.0.0.0 Mask:255. 255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:87.118.56.171 P-t-P:87.118.56.171 Bcast:0.0.0.0 Mask:255. 255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
 
Old 02-28-2009, 05:42 AM   #13
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
any ideas??
 
Old 02-28-2009, 01:23 PM   #14
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
I Install the udev package
# apt-get install udev

now i have /etc/udev/rules.d/

What's next step?
 
Old 02-28-2009, 01:25 PM   #15
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
As I said there shouldn't be
Quote:
HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
There should be your MAC address.You didn't post the output from all commands that I've suggested.Did you try to follow the guide that I suggested?You can create a new file,for example
Code:
/etc/udev/rules.d/010_netinterfaces.rules
then add to it;
Code:
KERNEL="oldnameprefix*", SYSFS{address}=="MACaddress",NAME="newname"
with correct values.It's all in the guide.
EDIT:Look at my post no.4.

Last edited by alan_ri; 02-28-2009 at 01:57 PM.
 
  


Reply


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
error fetching interface information: device not found jhelzunn Linux - Networking 8 02-15-2011 09:32 AM
eth0 :error fetching interface information sai_tejas Linux - Networking 2 06-05-2008 02:52 AM
eth0: ERROR while getting interface flags: No such device ncsuapex Linux - Networking 19 03-17-2008 12:47 PM
: error fetching interface information: Device not found Beauford-2 Slackware 5 02-13-2008 10:28 AM
error fetching interface information jw.pi Linux - Networking 2 06-22-2001 07:37 PM


All times are GMT -5. The time now is 02:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration