Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/conf.d/net issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
RasmusT
n00b
n00b


Joined: 23 Jun 2008
Posts: 8

PostPosted: Wed Jul 02, 2008 12:07 pm    Post subject: /etc/conf.d/net issue Reply with quote

Hi

I need to change the ip address in /etc/conf.d/net with another user then root.

i have made a script i run thrue sudo, the script work find, and change the ip address.

But when i restart eth0 i get the following error: "Configuration not set for eth0 - assuming DHCP"

My /etc/conf.d/net look like this:

# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "10.199.198.1/24" )
#routes_eth0=( "default via 10.199.198.1" )
config_eth1=( "10.199.199.29/24" )
routes_eth1=( "default via 10.199.199.254" )

Do i have to chroot / chown the file to get gentoo to read the file?
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Wed Jul 02, 2008 12:12 pm    Post subject: Re: /etc/conf.d/net issue Reply with quote

RasmusT wrote:
Do i have to chroot / chown the file to get gentoo to read the file?


You'll need to make sure that the script has correct permissions for it to be read and also make sure that its formatting is correct.

can you post both the /etc/conf.d/net that the script creates and the output from "ls -al /etc/conf.d/net"
Back to top
View user's profile Send private message
RasmusT
n00b
n00b


Joined: 23 Jun 2008
Posts: 8

PostPosted: Wed Jul 02, 2008 12:23 pm    Post subject: Re: /etc/conf.d/net issue Reply with quote

My /etc/conf.d/net look like the output i have posted after my script have run


output from ls -al /etc/conf.d/net
-rw-r--r-- 1 root root 401 Jul 2 14:15 /etc/conf.d/net


richard.scott wrote:
RasmusT wrote:
Do i have to chroot / chown the file to get gentoo to read the file?


You'll need to make sure that the script has correct permissions for it to be read and also make sure that its formatting is correct.

can you post both the /etc/conf.d/net that the script creates and the output from "ls -al /etc/conf.d/net"
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Wed Jul 02, 2008 1:19 pm    Post subject: Re: /etc/conf.d/net issue Reply with quote

RasmusT wrote:
My /etc/conf.d/net look like the output i have posted after my script have run


posting the actual /etc/conf.d/net file or the script that changes it would really help.

the /etc/conf.d/net file doesn't currently have any valid settings for eth0.

This is why it falls back to DHCP as there are not static details it can find for eth0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum