All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [lartc] Virtual Interface
@ 2006-02-03 18:48 list user
  2006-02-07 13:23 ` Roger Singh
  0 siblings, 1 reply; 10+ messages in thread
From: list user @ 2006-02-03 18:48 UTC (permalink / raw)
  To: lartc

Hi Roger,

[big snip: lost o.p.]

There are a couple of different approaches you might try.  One is to use
uml-utilities' tunctl to create an ethernet tap.   Another is to use the
dummy interface.  With either method you can bridge, route, configure as
you would a physical device using ifconfig and/or ip.

The following methods work for me.  I use Fedora Core 4.  Its network
setup methods are in /etc/sysconfig/network-scripts.

cd /etc/sysconfig/network-scripts
ln -s ifup-eth ifup-tap
ln -s ifdown-eth ifdown-tap
echo 'ip link show tap0 | grep "tap0" 2>&1 >/dev/null ||  tunctl -t tap0
DEVICE=tap0
TYPE=ethernet
ONBOOT=yes
BOOTPROTO=static
MACADDRZ:5a:5a:5a:5a:5a
NETWORK\x192.168.0.0
IPADDR\x192.168.0.1
BROADCAST\x192.168.0.255
NETMASK%5.255.255.0' > ifcfg-tap0
ifup tap0

ln -s ifup-eth0 ifup-dummy
ln -s ifdown-eth ifdown-dummy
echo 'ip link show dummy0 | grep "dummy0" 2>&1 >/dev/null || {
  ip link set dummy0 up
  ip link set dummy0 arp on
  ip link set dummy0 multicast on
}
DEVICE=dummy0
TYPE=ethernet
ONBOOT=yes
BOOTPROTO=static
MACADDR¤:a5:a5:a5:a5:a5
NETWORK\x192.168.0.0
IPADDR\x192.168.0.2
BROADCAST\x192.168.0.255
NETMASK%5.255.255.0' > ifcfg-dummy0
ifup dummy0

If all went well there should now be two new virtual ethernet devices,
tap0 and dummy0.

Hope this information is useful to you,
Mike Wright :m)

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [LARTC] virtual interface
@ 2004-01-04 20:17 alen sarkinovic
  2004-01-04 20:36 ` Stef Coene
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: alen sarkinovic @ 2004-01-04 20:17 UTC (permalink / raw)
  To: lartc

can i add HTB rule on virtual interface\
example: eth0:0

alens
----- Original Message -----
From: "Stef Coene" <stef.coene@docum.org>
To: "jayesh rathod" <jayesh_rathod@sify.com>; <lartc@mailman.ds9a.nl>
Sent: Sunday, January 04, 2004 10:41 AM
Subject: Re: [LARTC] HTB filters - pls help me


> On Sunday 04 January 2004 07:27, jayesh rathod wrote:
> > Hi,
> >
> > we r using HTB algorithm,for traffic shaping, we are facing a problem.
> >
> > we are able to create multiple classes,filters. But when we delete 1
filter
> > all filter gets deleted. how do we avoid that.
> >
> > waiting for you reply
> What I do, is creating a script that delets the root qdisc and re-add
> everything.  Deleting the root qdisc delets all classes and filters.  So I
> never delete a filter.
> Anyway, can you post your commands ?
>
> Stef
>
> --
> stef.coene@docum.org
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.openprojects.net
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2006-02-07 13:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-03 18:48 [lartc] Virtual Interface list user
2006-02-07 13:23 ` Roger Singh
  -- strict thread matches above, loose matches on Subject: below --
2004-01-04 20:17 [LARTC] virtual interface alen sarkinovic
2004-01-04 20:36 ` Stef Coene
2004-01-04 20:40 ` Martin A. Brown
2004-01-05  9:14 ` Aron Brand
2004-01-05 14:29 ` Roy
2006-02-02 12:33 ` [LARTC] Virtual Interface Roger Singh
2006-02-02 18:08 ` Ryan Castellucci
2006-02-03 15:17 ` Roger Singh

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.