All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] IP Aliasing with "IP"?
@ 2001-01-30 20:50 billy
  2001-01-30 20:51 ` bert
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: billy @ 2001-01-30 20:50 UTC (permalink / raw)
  To: lartc

<PRE>Can I do something like this?

old way:

ifconfig eth1 192.168.101.1 netmask 255.255.255.0 up
route add -net 192.168.101.0 netmask 255.255.255.0 eth1
ifconfig eth1:0 192.168.101.1 netmask 255.255.255.0 up
route add -net 192.168.101.0 netmask 255.255.255.0 eth1:0

thanks 


</PRE>

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

* [LARTC] IP Aliasing with "IP"?
  2001-01-30 20:50 [LARTC] IP Aliasing with "IP"? billy
@ 2001-01-30 20:51 ` bert
  2001-01-30 21:08 ` billy
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bert @ 2001-01-30 20:51 UTC (permalink / raw)
  To: lartc

<PRE>On Tue, Jan 30, 2001 at 05:50:01PM -0300, billy wrote:
&gt;<i> 
</I>&gt;<i> Can I do something like this?
</I>&gt;<i> 
</I>&gt;<i> old way:
</I>&gt;<i> 
</I>&gt;<i> ifconfig eth1 192.168.101.1 netmask 255.255.255.0 up
</I>&gt;<i> route add -net 192.168.101.0 netmask 255.255.255.0 eth1
</I>&gt;<i> ifconfig eth1:0 192.168.101.1 netmask 255.255.255.0 up
</I>&gt;<i> route add -net 192.168.101.0 netmask 255.255.255.0 eth1:0
</I>
ip addr add dev eth0 192.168.101.1 etc etc should work

-- 
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet


</PRE>

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

* [LARTC] IP Aliasing with "IP"?
  2001-01-30 20:50 [LARTC] IP Aliasing with "IP"? billy
  2001-01-30 20:51 ` bert
@ 2001-01-30 21:08 ` billy
  2001-01-30 21:26 ` bert
  2001-01-30 22:59 ` Arkadiusz
  3 siblings, 0 replies; 5+ messages in thread
From: billy @ 2001-01-30 21:08 UTC (permalink / raw)
  To: lartc

<PRE>On Tuesday 30 January 2001 17:51, you wrote:
&gt;<i> On Tue, Jan 30, 2001 at 05:50:01PM -0300, billy wrote:
</I>&gt;<i> &gt; Can I do something like this?
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; old way:
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; ifconfig eth1 192.168.101.1 netmask 255.255.255.0 up
</I>&gt;<i> &gt; route add -net 192.168.101.0 netmask 255.255.255.0 eth1
</I>&gt;<i> &gt; ifconfig eth1:0 192.168.101.1 netmask 255.255.255.0 up
</I>&gt;<i> &gt; route add -net 192.168.101.0 netmask 255.255.255.0 eth1:0
</I>&gt;<i>
</I>&gt;<i> ip addr add dev eth0 192.168.101.1 etc etc should work
</I>

OK, but what about eth0:0, the alias ? if I do something like:

# ip addr add dev eth0:0 192.168.101.1 etc etc

I get an error: 

cannot find device &quot;eth0:0&quot;

but I can create eth0:0 with ifconfig, but &quot;ip link show&quot; does not show me 
the interfaces, but with &quot;ip route show&quot; I see all of the eth0:x as only eth0.

# ip route show
200.51.164.128/29 dev eth0  proto kernel  scope link  src 200.51.164.131
192.168.101.0/24 dev eth0  proto kernel  scope link  src 192.168.101.1
192.168.102.0/24 dev eth0  proto kernel  scope link  src 192.168.102.1
127.0.0.0/8 dev lo  scope link
default via 200.51.164.134 dev eth0                                           
#

is this ok? I haev to create the &quot;virtual&quot; interfaces with ifconfig or do I 
have a way with ip?

thanks billy


</PRE>

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

* [LARTC] IP Aliasing with "IP"?
  2001-01-30 20:50 [LARTC] IP Aliasing with "IP"? billy
  2001-01-30 20:51 ` bert
  2001-01-30 21:08 ` billy
@ 2001-01-30 21:26 ` bert
  2001-01-30 22:59 ` Arkadiusz
  3 siblings, 0 replies; 5+ messages in thread
From: bert @ 2001-01-30 21:26 UTC (permalink / raw)
  To: lartc

<PRE>On Tue, Jan 30, 2001 at 06:08:00PM -0300, billy wrote:

&gt;<i> OK, but what about eth0:0, the alias ? if I do something like:
</I>
Those 0:0 names are just imagined by ifconfig :-) iproute2 reflects reality.

&gt;<i> is this ok? I haev to create the &quot;virtual&quot; interfaces with ifconfig or do I 
</I>&gt;<i> have a way with ip?
</I>
ip adds IP addresses to your physical interface - which is better than
inventing 'new' interfaces.

Regards,

bert hubert

-- 
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet


</PRE>

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

* [LARTC] IP Aliasing with "IP"?
  2001-01-30 20:50 [LARTC] IP Aliasing with "IP"? billy
                   ` (2 preceding siblings ...)
  2001-01-30 21:26 ` bert
@ 2001-01-30 22:59 ` Arkadiusz
  3 siblings, 0 replies; 5+ messages in thread
From: Arkadiusz @ 2001-01-30 22:59 UTC (permalink / raw)
  To: lartc

<PRE>On/Dnia Tue, Jan 30, 2001 at 06:08:00PM -0300, billy wrote/napisa³(a)
&gt;<i> &gt; ip addr add dev eth0 192.168.101.1 etc etc should work
</I>&gt;<i> OK, but what about eth0:0, the alias ? if I do something like:
</I>&gt;<i> # ip addr add dev eth0:0 192.168.101.1 etc etc
</I>&gt;<i> I get an error: 
</I>&gt;<i> cannot find device &quot;eth0:0&quot;
</I>[<A HREF="mailto:root@arm">root@arm</A> misiek]# ip addr add 1.1.1.1 dev eth0 label eth0:qpa
[<A HREF="mailto:root@arm">root@arm</A> misiek]# ifconfig | grep qpa
eth0:qpa  Link encap:Ethernet  HWaddr 00:E0:7D:8A:4C:79  

&gt;<i> but I can create eth0:0 with ifconfig, but &quot;ip link show&quot; does not show me 
</I>&gt;<i> the interfaces, but with &quot;ip route show&quot; I see all of the eth0:x as only eth0.
</I>&gt;<i> 
</I>&gt;<i> is this ok? I haev to create the &quot;virtual&quot; interfaces with ifconfig or do I 
</I>&gt;<i> have a way with ip?
</I>It's ok. Routing is to real device, not to so called ,,aliases''.

-- 
Arkadiusz Mi¶kiewicz, AM2-6BONE    [ PLD GNU/Linux IPv6 ]
<A HREF="http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/">http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/</A>   [ enabled ]


</PRE>

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

end of thread, other threads:[~2001-01-30 22:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-30 20:50 [LARTC] IP Aliasing with "IP"? billy
2001-01-30 20:51 ` bert
2001-01-30 21:08 ` billy
2001-01-30 21:26 ` bert
2001-01-30 22:59 ` Arkadiusz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.