From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to configure eth1:1 ?
Date: Mon, 17 Oct 2011 23:42:04 +0200 [thread overview]
Message-ID: <4E9CA12C.5070801@binarywings.net> (raw)
In-Reply-To: <j7i6h3$8ur$1@dough.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
Am 17.10.2011 23:25, schrieb Grant Edwards:
> I'm trying to configure a second IP address for eth1 using the syntax
> I found at
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
>
> But, it doesn't work.
>
> Here's my /etc/init.d/net file:
>
> config_eth0="192.168.8.4/16"
> routes_eth0="default via 192.168.0.254"
> config_eth1=10.0.0.1/8"
> 192.168.250.1/24"
>
> But, starting eth1 says:
>
> # /etc/init.d/net.eth1 start
> * Bringing up interface eth1
> * Starting netplug on eth1 ... [ ok ]
> * Backgrounding ...
> * ERROR: net.eth1 failed to start
>
> Only eth1 is configured. eth1:1 isn't configured.
>
>
eth1 is the second physical interface (which you don't have). From
/usr/share/doc/openrc-0.8.3-r1/net.example.bz2
# If you need more than one address, you can use something like this
# NOTE: ifconfig creates an aliased device for each extra IPv4 address
# (eth0:1, eth0:2, etc)
# iproute2 does not do this as there is no need to
config_eth0="192.168.0.2/24 192.168.0.3/24 192.168.0.4/24"
# However, that only works with CIDR addresses, so you can't use
# netmask.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2011-10-17 21:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-17 21:25 [gentoo-user] How to configure eth1:1 ? Grant Edwards
2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
2011-10-17 22:04 ` Grant Edwards
2011-10-17 21:42 ` Florian Philipp [this message]
2011-10-17 21:47 ` [gentoo-user] " Florian Philipp
2011-10-17 22:19 ` [gentoo-user] " Grant Edwards
2011-10-18 15:09 ` YoYo Siska
2011-10-18 16:18 ` Grant Edwards
2011-10-19 15:19 ` james
2011-10-19 15:45 ` Grant Edwards
2011-10-18 16:23 ` Grant Edwards
2011-10-20 2:56 ` Walter Dnes
2011-10-20 14:12 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E9CA12C.5070801@binarywings.net \
--to=lists@binarywings.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox