Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/init.d/net.* scripts for iproute2
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
Taoub
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 173

PostPosted: Tue Oct 05, 2004 9:55 am    Post subject: /etc/init.d/net.* scripts for iproute2 Reply with quote

Does subj exist? where can i find it?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Oct 05, 2004 1:09 pm    Post subject: Reply with quote

Look at /etc/conf.d/net - it supports iproute2 style initialization and it's got a ton of comments explaining things in it.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Taoub
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 173

PostPosted: Wed Oct 06, 2004 9:41 am    Post subject: Reply with quote

hm, i didn't find any comments about iproute2 in /etc/conf.d/net
and noting in /etc/init.d/eth0 about it
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Wed Oct 06, 2004 12:11 pm    Post subject: Reply with quote

Then you probably have an outdated baselayout package.
Relevant sample from my conf.d/net (baselayout-1.10.4):
Code:
##############################################################################
#   IPROUTE2-STYLE CONFIGURATION
#   ----------------------------
#   This makes use of the /sbin/ip command to set routes and ip
#   addresses.  This style is very useful if you are building an
#   advanced linux router or using VRRP For more information on how to
#   use the iproute2 command have a look at the ip(8) man page.
#
#   NOTE: You must emerge sys-apps/iproute2 to use this configuration
##############################################################################

# To use DHCP on eth0, simply uncomment the following line:
#ipaddr_eth0=( "dhcp" )

# For passing custom options to dhcpcd use something like the following.  This
# example reduces the timeout for retrieving an address from 60 seconds (the
# default) to 10 seconds.  Note that this might be too short for some servers,
# so the default is encouraged unless you know what you're doing.
#dhcpcd_eth0="-t 10"

# For a static configuration, use something like this.  This sets the primary
# eth0 address to 192.168.0.2 and adds two aliases, eth0:1 and eth0:2.
# You may also pass advanced ip addr commands via this option.
#ipaddr_eth0=(
#       "192.168.0.2/24 brd 192.168.0.255"
#       "192.168.0.3/24 brd 192.168.0.255"
#       "192.168.0.4/24 brd 192.168.0.255"
#)

# The following will set up the default gateway. You can also pass advanced
# route configs via this option.
#iproute_eth0=(
#       "default via 192.168.0.1"
#)

_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Taoub
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 173

PostPosted: Wed Oct 06, 2004 12:35 pm    Post subject: Reply with quote

i guess this is latest unstable baselaout because:
Code:
*  sys-apps/baselayout
      Latest version available: 1.9.4-r3
      Latest version installed: 1.9.4-r3

DO you recommend me to install 1.10.x?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Wed Oct 06, 2004 9:07 pm    Post subject: Reply with quote

Yes, it's in unstable. I don't recommend it - it's your choice, like with any other unstable package... Do it if you need it, don't do it if you don't need it.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Taoub
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 173

PostPosted: Thu Oct 07, 2004 5:13 am    Post subject: Reply with quote

kk tnx :)
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