View previous topic :: View next topic |
Author |
Message |
afabbro Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/456923714402eacaf6b6cb.jpg)
Joined: 12 Jan 2003 Posts: 92 Location: Portland, OR
|
Posted: Thu Mar 04, 2004 12:32 am Post subject: Virtual interfaces in /etc/conf.d/net? |
|
|
Is it possible to specify virtual interfaces (e.g., eth0:1, eth0:2, etc.) in /etc/conf.d/net? If not, what is "the Gentoo way" to specify virtual IPs?
I have a cluster that will pass and virtual IP back and forth in the event of a failure...I can hack up the ifconfig in /etc/conf.g/local or whatever, but I'd like to do it "the Gentoo way" if possible |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
scout Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12983883544208161274b34.png)
Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
Posted: Thu Mar 04, 2004 4:03 am Post subject: |
|
|
yes ts is possible and it is explained in the comments of /etc/conf.d/net
Quote: | # /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="129.104.205.149 broadcast 129.104.205.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# 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
#
gateway="eth0/129.104.205.13" |
_________________ http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|