![]() |
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? |
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. |
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 |
Thanks, guys! I can do it using pico or nano. But I'm very yung linuxoid.:confused: Wait for more questions from me, OK?
|
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?
|
Quote:
|
And as gateway for eth1 sould I set the IP of eth0? (i will use this mashine as gateway LAN - Internet)
|
Quote:
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. :) |
Sorry, last question was incorrect. I found solution alrady ;)
|
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? |
| All times are GMT +2. The time now is 04:44. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.