Re: [gentoo-user] netcard interface with alias

2009-03-09 Thread Joshua Schmidlkofer

On 3/2/09 4:10 AM, Zhu Sha Zang wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have 7 networks behind a machine with 5 network's device. Now, this
machine running debian, but i'll upgrade too gentoo. How i can create
a eth0:1, for example, using /etc/conf.d/net?

Thanks

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrzNAACgkQ35zeJy7JhCijFwCfaIgUYnNX3og3zQ/RMRyEb8vY
SmoAmgPshApqi3hLGxbuz/mXhOc6GVgK
=J1Fx
-END PGP SIGNATURE-



   
Is there are reason you haven't considered something like pfSense for 
this machine?


Sincerely,
  Joshua



[gentoo-user] netcard interface with alias

2009-03-02 Thread Zhu Sha Zang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have 7 networks behind a machine with 5 network's device. Now, this
machine running debian, but i'll upgrade too gentoo. How i can create
a eth0:1, for example, using /etc/conf.d/net?

Thanks

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrzNAACgkQ35zeJy7JhCijFwCfaIgUYnNX3og3zQ/RMRyEb8vY
SmoAmgPshApqi3hLGxbuz/mXhOc6GVgK
=J1Fx
-END PGP SIGNATURE-




Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Tomáš Krasničan

Hi,

the guide to networking in Gentoo (with examples) is avaible here:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4

Regards
krasko


Zhu Sha Zang wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have 7 networks behind a machine with 5 network's device. Now, this
machine running debian, but i'll upgrade too gentoo. How i can create
a eth0:1, for example, using /etc/conf.d/net?

Thanks

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrzNAACgkQ35zeJy7JhCijFwCfaIgUYnNX3og3zQ/RMRyEb8vY
SmoAmgPshApqi3hLGxbuz/mXhOc6GVgK
=J1Fx
-END PGP SIGNATURE-


begin:vcard
fn;quoted-printable:Tom=C3=A1=C5=A1 Krasni=C4=8Dan
n;quoted-printable;quoted-printable:Krasni=C4=8Dan;Tom=C3=A1=C5=A1
email;internet:kra...@krasko.sk
tel;cell:+420 605 520 368
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Alan McKinnon
On Monday 02 March 2009 14:10:57 Zhu Sha Zang wrote:
 I have 7 networks behind a machine with 5 network's device. Now, this
 machine running debian, but i'll upgrade too gentoo. How i can create
 a eth0:1, for example, using /etc/conf.d/net?

The top section in the default /etc/conf.d/net says that more info is in 
/etc/conf.d/net.example

If you look there, around about line 70, you'll find something about aliases.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Zhu Sha Zang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alan McKinnon escreveu:
 On Monday 02 March 2009 14:10:57 Zhu Sha Zang wrote:
 I have 7 networks behind a machine with 5 network's device. Now,
 this machine running debian, but i'll upgrade too gentoo. How i
 can create a eth0:1, for example, using /etc/conf.d/net?

 The top section in the default /etc/conf.d/net says that more info
 is in /etc/conf.d/net.example

 If you look there, around about line 70, you'll find something
 about aliases.



Yeah Yeah, i've already seen this net.example. But before change to
appropriate setting, don't appear any interface with alias, anda
occour some errors when try to initialize devices. And the routes used
by alias don't worked.

Someone had this working succesfully?




-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmr0fwACgkQ35zeJy7JhCiCXwCgn24dcLSj/fAfSYwKGM+44AXz
ODUAn3gkAUPUadS3bEjs6ZvbnV77kUmV
=vldQ
-END PGP SIGNATURE-




Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Graham Murray
Zhu Sha Zang zhushaz...@yahoo.com.br writes:

 Yeah Yeah, i've already seen this net.example. But before change to
 appropriate setting, don't appear any interface with alias, anda
 occour some errors when try to initialize devices. And the routes used
 by alias don't worked.

 Someone had this working succesfully?

You do not need to use aliases. Using iproute2, you can have as many
(within reason) IP addresses as you want on each interface. You
configure it as 

conf_eth0=( 1.2.3.4/24 10.11.12.13/24 20.21.22.23/24 )

For routing via the different networks use iproute2 rules, see the
postup() function (towards the end of /etc/conf.d/net.example) for an
example of how to set this up.