Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtual interfaces in /etc/conf.d/net?
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
afabbro
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2003
Posts: 92
Location: Portland, OR

PostPosted: Thu Mar 04, 2004 12:32 am    Post subject: Virtual interfaces in /etc/conf.d/net? Reply with quote

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
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Thu Mar 04, 2004 4:03 am    Post subject: Reply with quote

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
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