LinuxQuestions.org
Review your favorite Linux distribution.
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-28-2009, 12:34 PM   #16
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15

Quote:
KERNEL="oldnameprefix*", SYSFS{address}=="MACaddress",NAME="newname"
How do it with correct value? I have VPS!!
 
Old 02-28-2009, 12:47 PM   #17
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
This is the output from my /etc/udev/rules.d/70-persistent-net.rules file;

Quote:
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it,as long as you keep each rule on a single line.
# PCI device 0x8086:0x1092 (e100)
# PCI device 0x168c:0x001c (ath5k_pci)
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it,as long as you keep each rule on a single line.
# PCI device 0x8086:0x1092 (e100)
# PCI device 0x168c:0x001c (ath5k_pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:e3:bc:6d:7c", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:a0:d1:68:00:d4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x168c:0x001c (ath_pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:e3:bc:6d:7c", ATTR{type}=="1", KERNEL=="ath*", NAME="ath0"
So,add a line/s for any interface that you want,just be careful with that,for example,you need NAME="venet0" or similar,it's in the output from ifconfig -a.

Last edited by alan_ri; 02-28-2009 at 12:53 PM.
 
Old 02-28-2009, 12:59 PM   #18
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
/# ifconfig -a
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:644 (644.0 b) TX bytes:644 (644.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:395 errors:0 dropped:0 overruns:0 frame:0
TX packets:381 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35558 (34.7 KiB) TX bytes:37159 (36.2 KiB)

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

I need Allowing VPN clients to access VPN server local network.. Where interface is apposite for my work??
 
Old 02-28-2009, 01:15 PM   #19
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by sungirl View Post
Where interface is apposite for my work??
No,I don't get that.
 
Old 02-28-2009, 01:34 PM   #20
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
so.. i haven't this file: **_persistent-net.rules

this is ls for this folder:

Quote:
**_netinterfaces.rules **_persistent-input.rules **_run.rules
**_permissions.rules **_persistent.rules **_hotplug.rules
udev.rules **_persistent-net-generator.rules **_cd-aliases-generator.rules
 
Old 02-28-2009, 01:35 PM   #21
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Can i make this file manually? 70-persistent-net.rules and enter info which you get me?

Last edited by sungirl; 02-28-2009 at 01:37 PM.
 
Old 02-28-2009, 01:46 PM   #22
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Before you had this;
Code:
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)
but in the second output from ifconfig -a it isn't there and I've found this so it's maybe that you need to counfigure that interface.
About the output from ls command,well you need to read them and figure which one you need to configure.You can add manually new file if you like but it shouldn't conflict with other files.You can check this site too.

Last edited by alan_ri; 02-28-2009 at 01:58 PM.
 
Old 02-28-2009, 02:22 PM   #23
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
i do install vpn server from this

just problem is Allowing VPN clients to access VPN server local network which i get error...
 
Old 02-28-2009, 02:32 PM   #24
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
What is the exact problem,error/s?
EDIT: Well I went back to the beginning and in this;
Code:
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
shouldn't be eth0 based on ifconfig -a.So try to change that to tun0 and run the command again.

Last edited by alan_ri; 02-28-2009 at 02:45 PM.
 
Old 02-28-2009, 02:44 PM   #25
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
How tun0 enable again?? maybe for install udev??
 
Old 02-28-2009, 02:53 PM   #26
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Read post 24,it was edited.Maybe it's best if you reinstall some packages like this(I based this on the guide that you've followed to install vpn)
Code:
# apt-get --reinstall install openvpn liblzol
then run
Code:
/etc/init.d/openvpn restart
If you've done something else during installation before,do it again then run the command in post 24 but change eth0 to tun0.
 
Old 02-28-2009, 02:57 PM   #27
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
so... tun0: error fetching interface information: Device not found
 
Old 02-28-2009, 02:59 PM   #28
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
i need install this package tun/tap
apt-get --reinstall install openvpn liblzol

Quote:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package liblzol
 
Old 02-28-2009, 03:11 PM   #29
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Then run
Code:
apt-get install liblzol
But I wonder if it was there,how come that it isn't now.
Also try to replace eth0 with venet0 in
Code:
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

Last edited by alan_ri; 02-28-2009 at 03:17 PM.
 
Old 02-28-2009, 03:49 PM   #30
sungirl
Member
 
Registered: Feb 2009
Posts: 39

Original Poster
Rep: Reputation: 15
same problem
so...before apt-get update
apt-get install liblzol

Quote:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package liblzol

Last edited by sungirl; 02-28-2009 at 03:52 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 10:19 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