View previous topic :: View next topic |
Author |
Message |
Taoub Apprentice
Joined: 12 Jan 2004 Posts: 173
|
Posted: Tue Oct 05, 2004 9:55 am Post subject: /etc/init.d/net.* scripts for iproute2 |
|
|
Does subj exist? where can i find it? |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Oct 05, 2004 1:09 pm Post subject: |
|
|
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 |
|
|
Taoub Apprentice
Joined: 12 Jan 2004 Posts: 173
|
Posted: Wed Oct 06, 2004 9:41 am Post subject: |
|
|
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 |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Wed Oct 06, 2004 12:11 pm Post subject: |
|
|
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 |
|
|
Taoub Apprentice
Joined: 12 Jan 2004 Posts: 173
|
Posted: Wed Oct 06, 2004 12:35 pm Post subject: |
|
|
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 |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Wed Oct 06, 2004 9:07 pm Post subject: |
|
|
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 |
|
|
Taoub Apprentice
Joined: 12 Jan 2004 Posts: 173
|
Posted: Thu Oct 07, 2004 5:13 am Post subject: |
|
|
kk tnx |
|
Back to top |
|
|
|