public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] mysterious Problem
@ 2002-06-11  0:31 MadCoder
  2002-06-11 15:52 ` Adam Voigt
  0 siblings, 1 reply; 6+ messages in thread
From: MadCoder @ 2002-06-11  0:31 UTC (permalink / raw
  To: gentoo-dev

I want my eht0 card to accept two ip.

so, I use this config :

face_eth0="129.104.221.165 broadcast 129.104.221.255 netmask 255.255.255.0"
iface_eth1="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
alias_eth0="129.104.221.100"

but there is a big problem : the alias_eht0 has netmask 255.255.0.0 by default 
!!!

how can I specify, that I want netmask=255.255.255.0 ?
and why isn't it the default choice, since i'ts the netmask of face_eth0 ?
-- 
Don't be afraid ... I'm going to give you the choice I've never had

(°>
/ )  MadCoder (53 53)
^^




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] mysterious Problem
  2002-06-11  0:31 [gentoo-dev] mysterious Problem MadCoder
@ 2002-06-11 15:52 ` Adam Voigt
  2002-06-11 15:59   ` MadCoder
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Voigt @ 2002-06-11 15:52 UTC (permalink / raw
  To: gentoo-dev

Umm, maybe this is just me, but why not just do:

alias_eth0="129.104.221.100 netmask 255.255.255.0"

?

Adam Voigt
adam.voigt@cryptocomm.com

On Mon, 2002-06-10 at 20:31, MadCoder wrote:
> I want my eht0 card to accept two ip.
> 
> so, I use this config :
> 
> face_eth0="129.104.221.165 broadcast 129.104.221.255 netmask 255.255.255.0"
> iface_eth1="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
> alias_eth0="129.104.221.100"
> 
> but there is a big problem : the alias_eht0 has netmask 255.255.0.0 by default 
> !!!
> 
> how can I specify, that I want netmask=255.255.255.0 ?
> and why isn't it the default choice, since i'ts the netmask of face_eth0 ?
> -- 
> Don't be afraid ... I'm going to give you the choice I've never had
> 
> (°>
> / )  MadCoder (53 53)
> ^^
> 
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] mysterious Problem
  2002-06-11 15:52 ` Adam Voigt
@ 2002-06-11 15:59   ` MadCoder
  2002-06-11 16:02     ` Adam Voigt
  0 siblings, 1 reply; 6+ messages in thread
From: MadCoder @ 2002-06-11 15:59 UTC (permalink / raw
  To: gentoo-dev, Adam Voigt

> alias_eth0="129.104.221.100 netmask 255.255.255.0"
I obviously tryed it, but it does'nt work :(
-- 
MadCoder (53 53)

"Pour réussir un examen, un étudiant doit lutter contre toutes les forces 
centrifuges qui peuvent le distraire de son travail."

        - T. de Montbrial


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] mysterious Problem
  2002-06-11 15:59   ` MadCoder
@ 2002-06-11 16:02     ` Adam Voigt
  2002-06-11 16:05       ` MadCoder
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Voigt @ 2002-06-11 16:02 UTC (permalink / raw
  To: gentoo-dev; +Cc: MadCoder

Dirty workaround, add a line where you configure the interface with it's
alias (using ifconfig) to your rc.local, that way you can specifiy
whatever you want as if you were using the ifconfig command.

Adam Voigt
adam.voigt@cryptocomm.com

On Tue, 2002-06-11 at 11:59, MadCoder wrote:
> 
> > alias_eth0="129.104.221.100 netmask 255.255.255.0"
> I obviously tryed it, but it does'nt work :(
> -- 
> MadCoder (53 53)
> 
> "Pour réussir un examen, un étudiant doit lutter contre toutes les forces 
> centrifuges qui peuvent le distraire de son travail."
> 
>         - T. de Montbrial




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] mysterious Problem
  2002-06-11 16:02     ` Adam Voigt
@ 2002-06-11 16:05       ` MadCoder
  2002-06-12  1:33         ` Z
  0 siblings, 1 reply; 6+ messages in thread
From: MadCoder @ 2002-06-11 16:05 UTC (permalink / raw
  To: gentoo-dev, Adam Voigt

Le Mardi 11 Juin 2002 18:02, Adam Voigt a écrit :
> Dirty workaround, add a line where you configure the interface with it's
> alias (using ifconfig) to your rc.local, that way you can specifiy
> whatever you want as if you were using the ifconfig command.
that's allready what I'm doing with a

ifconfig eth0:1 129.104.221.100 netmask 255.255.255.0

but on my Debian, when I create an alias, it always takes the same netmask 
than the main adress. So I was a little surprised.
-- 
MadCoder (53 53)

"Pour réussir un examen, un étudiant doit lutter contre toutes les forces 
centrifuges qui peuvent le distraire de son travail."

        - T. de Montbrial


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] mysterious Problem
  2002-06-11 16:05       ` MadCoder
@ 2002-06-12  1:33         ` Z
  0 siblings, 0 replies; 6+ messages in thread
From: Z @ 2002-06-12  1:33 UTC (permalink / raw
  To: gentoo-dev

On Tue, 11 Jun 2002 18:05:29 +0200
MadCoder <pierre.habouzit@m4x.org> wrote:

> Le Mardi 11 Juin 2002 18:02, Adam Voigt a écrit :
> > Dirty workaround, add a line where you configure the interface with it's
> > alias (using ifconfig) to your rc.local, that way you can specifiy
> > whatever you want as if you were using the ifconfig command.
> that's allready what I'm doing with a
> 
> ifconfig eth0:1 129.104.221.100 netmask 255.255.255.0
> 
> but on my Debian, when I create an alias, it always takes the same netmask 
> than the main adress. So I was a little surprised.
> -- 
> MadCoder (53 53)

You could always use the iproute2 commands if you have them installed -- eg:

 ip addr add dev eth0 129.104.221.100/24

The above adds the address 129.104.221.100 netmask 255.255.255.0 to eth0 (I think this is equivalent to an alias when using ifconfig).

--
Z


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-12  1:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-11  0:31 [gentoo-dev] mysterious Problem MadCoder
2002-06-11 15:52 ` Adam Voigt
2002-06-11 15:59   ` MadCoder
2002-06-11 16:02     ` Adam Voigt
2002-06-11 16:05       ` MadCoder
2002-06-12  1:33         ` Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox