
10th October 2005, 14:44
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Moscow
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
After setup...
I have install Sarge using instructions from http://www.howtoforge.com/perfect_setup_debian_sarge, everything was great! And when I try to edit file /etc/network/interfaces/, I've get the magic answer: Permission denied! When I try call other files, I haven't other answer. What's this problem? Root have full permissions default, but system say me "get out!" Why?
Serriously, how can I to continue my work?
|

10th October 2005, 15:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,181 Times in 3,200 Posts
|
|
Please try first the command "su" to go to root (and to make shure your really root).
Then use an editor like "vi" to edit the config file. It was reported taht some other editors (mostly KDE or Gnome GUI Editors) are giving permission denied errors on files even for the root user.
|

10th October 2005, 16:17
|
|
Junior Member
|
|
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You could also just use pico.
It's much easier than vi but die-hard vi-ers will most probably argue with me.
Cheers
Hilton
|

11th October 2005, 08:16
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Moscow
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks, guys! I can do it using pico or nano. But I'm very yung linuxoid.  Wait for more questions from me, OK?
|

11th October 2005, 14:13
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Moscow
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If I use 2 network adaptors (eth0 for Internet, eth1 for LAN), should I type all IP-addresses etc. in file /etc/network/interfaces or create different files?
Last edited by Paul; 11th October 2005 at 14:17.
|

11th October 2005, 14:57
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,590 Times in 2,442 Posts
|
|
Quote:
|
Originally Posted by Paul
If I use 2 network adaptors (eth0 for Internet, eth1 for LAN), should I type all IP-addresses etc. in file /etc/network/interfaces or create different files?
|
No, it's still /etc/network/interfaces. You have sections in it for lo and eth0, so simply create a new section for eth1.
|

11th October 2005, 15:35
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Moscow
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
And as gateway for eth1 sould I set the IP of eth0? (i will use this mashine as gateway LAN - Internet)
|

11th October 2005, 18:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,590 Times in 2,442 Posts
|
|
Quote:
|
Originally Posted by Paul
And as gateway for eth1 sould I set the IP of eth0? (i will use this mashine as gateway LAN - Internet)
|
Hm, I think you have to do that with iptables rules. Maybe you should google for something like "Debian router howto" or so...
If you only need that box as a router, then I'd recommend that you install IPCop on it. http://www.ipcop.org/
Easy to install, and very secure.
|

12th October 2005, 07:36
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Moscow
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry, last question was incorrect. I found solution alrady
|

12th October 2005, 17:37
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Moscow
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have edit /etc/network/interfaces so:
#The loopback network interface
auto lo
iface lo inet loopback
#The orimary network interface
auto eth0
iface eth0 inet static
address <external IP of my box>
netmask 255.255.255.240
network <IP of external network>
broadcast <broadcast IP of external network>
gateway <IP of provider's router>
# dns-* options are implemented by The resolconf package, if installed
dns-nameservers 127.0.0.1
dns-search <mydomain>
#The secondary network interface
auto eth1
iface eth1 inet static
address 192.1668.5.5
netmask 255.255.255.0
network 192.168.5.0
And where I restart networking, I get:
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...ifup: interface lo already configured
eth0: link down
SIOCSIFADDR: no such device
eth1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth1: ERROR while getting interface flags: No such device
Failed to bring up eth1.
done.
Device is good, physical installed, by setup and lspci detected.
Maybe file is incorrect?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:26.
|
Recent comments
12 hours 9 min ago
15 hours 4 min ago
16 hours 18 min ago
17 hours 42 min ago
19 hours 19 min ago
20 hours 48 min ago
22 hours 2 min ago
1 day 14 hours ago
1 day 14 hours ago
1 day 18 hours ago