[olug] getting an ip alias at boot on gentoo
dthacker9 at cox.net
dthacker9 at cox.net
Thu Oct 14 21:02:40 UTC 2004
Here's an excerpt from /etc/cond.d/net
ifconfig_eth0=(
"10.0.37.5 broadcast 10.0.37.255 netmask 255.255.255.0"
# "192.168.0.175 broadcast 192.168.0.255 netmask 255.255.255.0"
# "192.168.0.3 broadcast 192.168.0.255 netmask 255.255.255.0"
# "192.168.0.4 broadcast 192.168.0.255 netmask 255.255.255.0"
)
ifconfig_eth1=(
"10.0.33.124 broadcast 10.0.33.255 netmask 255.255.255.0"
)
alias_eth0=(
"10.0.37.4 netmask 255.255.255.0"
)
# This is just like setting the gateway config option in the old-style iface
# config, but allows one to add custom routes. This should not be needed if you
# are obtaining an address via DHCP since the default route should be set
# automatically.
routes_eth0=(
"default gw 10.0.33.250"
)
What I think should be happening.
up eth0 on the 37 network
up eth1 on the 33 network
set default route
What's happening instead
up eth0 on the 37 network
default route creation fails 33 network not reachable
up eth1 on the 33 network
The alias is not getting created at all. How can I re-order these events to allow the default route to be set properly.
DT
>
> From: David Walker <olug at grax.com>
> Date: 2004/10/14 Thu PM 04:44:06 EDT
> To: Omaha Linux User Group <olug at olug.org>
> Subject: Re: [olug] getting an ip alias at boot on gentoo
>
> gentoo is not picky about the placement of the line. only about the syntax.
> alias_eth0="10.0.99.99"
>
> On Thursday 14 October 2004 03:21 pm, dthacker9 at cox.net wrote:
> > I'm editing the /etc/conf.d/net file to set a default route, an additional
> > static route, and a aliased ip for a gentoo machine. The addresses are set
> > in the ifconfig_eth0 section, The default gateway and routes are set in the
> > routes_eth0 section. I believe the proper syntax for setting a second ip
> > address on eth0 would simply be "alias_eth0=10.0.99.99" What section of
> > the net file would this entry be placed?
> >
> > DT
> >
> >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
More information about the OLUG
mailing list