LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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 03:27 PM.
 
Old 02-27-2009, 03:15 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Did you try eth1?
 
Old 02-27-2009, 03: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, 03: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 03:54 PM.
 
Old 02-27-2009, 03: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, 04: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 04:09 PM.
 
Old 02-27-2009, 04: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, 04: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, 09: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 10:05 PM.
 
Old 02-28-2009, 12: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, 12:57 AM   #11
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 03: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, 04:42 AM   #13
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
any ideas??
 
Old 02-28-2009, 12: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, 12: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 12:57 PM.
 
  


Reply



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 9 08-09-2017 04:24 PM
eth0 :error fetching interface information sai_tejas Linux - Networking 2 06-05-2008 01:52 AM
eth0: ERROR while getting interface flags: No such device ncsuapex Linux - Networking 19 03-17-2008 11:47 AM
: error fetching interface information: Device not found Beauford-2 Slackware 5 02-13-2008 09:28 AM
error fetching interface information jw.pi Linux - Networking 2 06-22-2001 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:38 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
Open Source Consulting | Domain Registration