Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62577 - [PATCH] sys-apps/baselayout /etc/conf.d/net help text for aliases is wrong
Summary: [PATCH] sys-apps/baselayout /etc/conf.d/net help text for aliases is wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2004-09-01 19:42 UTC by Jani Averbach
Modified: 2004-10-24 21:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jani Averbach 2004-09-01 19:42:45 UTC
Currently installed /etc/conf.d/net contains bogus information regarding 
aliases. If you try configure your aliases as it suggests, nothing will happen. This patch fix help text. Please verify that it is correct. =)
However, this config worked for me.

diff -ru rc-scripts-1.4.16-/etc/conf.d/net rc-scripts-1.4.16/etc/conf.d/net
--- rc-scripts-1.4.16-/etc/conf.d/net   2002-11-18 12:39:22.000000000 -0700
+++ rc-scripts-1.4.16/etc/conf.d/net    2004-09-01 20:34:30.392947410 -0600
@@ -8,25 +8,19 @@
 iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
 #iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

+# if you like to use network aliases, then you should configure your interfaces
+# following way:
+#iface_eth0[0]="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
+#iface_eth0[1]="192.168.0.3 broadcast 192.168.0.255 netmask 255.255.255.0"
+#iface_eth0[2]="192.168.0.4 broadcast 192.168.0.255 netmask 255.255.255.0"
+# etc..
+
 # For DHCP set iface_eth? to "dhcp"
 # For passing options to dhcpcd use dhcpcd_eth?
 #
 #iface_eth0="dhcp"
 #dhcpcd_eth0="..."

-# For adding aliases to a interface
-#
-#alias_eth0="192.168.0.3 192.168.0.4"
-
-# NB:  The next is only used for aliases.
-#
-# To add a custom netmask/broadcast address to created aliases,
-# uncomment and change accordingly.  Leave commented to assign
-# defaults for that interface.
-#
-#broadcast_eth0="192.168.0.255 192.168.0.255"
-#netmask_eth0="255.255.255.0 255.255.255.0"
-

 # For setting the default gateway
 #



Reproducible: Always
Steps to Reproduce:
configure a alias, run
/etc/init.d/net.eth0 stop
/etc/init.d/net.eth0 start



Actual Results:
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-10-24 21:45:56 UTC
look in baselayout-1.11.x and /etc/conf.d/net.example ... all fixed