Re: [lartc] Virtual Interface
Mike, Thanks. I will try it.. I have not explained the puspose for this doing this - just to give you an idea I want to create around 200 virtual interfaces and send traffice through all the interfaces simulating traffic comming from different networks. Do you think this approach will scale to that level? Roger On 2/3/06, list user <[EMAIL PROTECTED]> wrote: 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 thedummy interface. With either method you can bridge, route, configure asyou 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-scriptsln -s ifup-eth ifup-tapln -s ifdown-eth ifdown-tapecho 'ip link show tap0 | grep "tap0" 2>&1 >/dev/null || tunctl -t tap0 DEVICE=tap0TYPE=ethernet>BOOTPROTO=staticMACADDR=5a:5a:5a:5a:5a:5aNETWORK=192.168.0.0IPADDR=192.168.0.1BROADCAST= 192.168.0.255NETMASK=255.255.255.0' > ifcfg-tap0ifup tap0ln -s ifup-eth0 ifup-dummyln -s ifdown-eth ifdown-dummyecho 'ip link show dummy0 | grep "dummy0" 2>&1 >/dev/null || { ip link set dummy0 upip link set dummy0 arp onip link set dummy0 multicast on}DEVICE=dummy0TYPE=ethernet>BOOTPROTO=staticMACADDR=a4:a5:a5:a5:a5:a5NETWORK= 192.168.0.0IPADDR=192.168.0.2BROADCAST=192.168.0.255NETMASK=255.255.255.0' > ifcfg-dummy0ifup 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 listLARTC@mailman.ds9a.nlhttp://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Re: [lartc] Virtual Interface
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 MACADDR=5a:5a:5a:5a:5a:5a NETWORK=192.168.0.0 IPADDR=192.168.0.1 BROADCAST=192.168.0.255 NETMASK=255.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=a4:a5:a5:a5:a5:a5 NETWORK=192.168.0.0 IPADDR=192.168.0.2 BROADCAST=192.168.0.255 NETMASK=255.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
Re: [LARTC] Virtual Interface
Thanks Ryan. VLAN will not for for me, I will check ebtables. BTW, I was thinking more on lines of MAC-VLAN. I could not find much information about it. I will really appriciate if someone can provide me some direction one this. Thanks R On 2/2/06, Ryan Castellucci <[EMAIL PROTECTED]> wrote: You can do this with vlans, but this may not be a suitable solution,as if you want to make them work normaly, you will need to tie this to a vlan capable switch. I don't belive that alias interfaces supportsetting seperate mac addresses, however, you might want to look atebtables, it has some mac address rewriting functionality which maymeet your needs. On 2/2/06, Roger Singh <[EMAIL PROTECTED]> wrote:> Hi Guys,>> I want to create multiple virtual interfaces on a system running linux 2.6. > The main requirment being, to assign unique MAC address fo each of the> virtual interfaces.>> I need to know, if this is possible and will really appriciate if someone> can provide me pointer in this direction. >> Thanks a lot.>> R. Singh> ___> LARTC mailing list> LARTC@mailman.ds9a.nl> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>>>--Ryan Castellucci http://ryanc.org/--Ryan Castellucci http://ryanc.org/___LARTC mailing listLARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
[LARTC] Virtual Interface
You can do this with vlans, but this may not be a suitable solution, as if you want to make them work normaly, you will need to tie this to a vlan capable switch. I don't belive that alias interfaces support setting seperate mac addresses, however, you might want to look at ebtables, it has some mac address rewriting functionality which may meet your needs. On 2/2/06, Roger Singh <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I want to create multiple virtual interfaces on a system running linux 2.6. > The main requirment being, to assign unique MAC address fo each of the > virtual interfaces. > > I need to know, if this is possible and will really appriciate if someone > can provide me pointer in this direction. > > Thanks a lot. > > R. Singh > ___ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > > > -- Ryan Castellucci http://ryanc.org/ -- Ryan Castellucci http://ryanc.org/ ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
[LARTC] Virtual Interface
Hi Guys, I want to create multiple virtual interfaces on a system running linux 2.6. The main requirment being, to assign unique MAC address fo each of the virtual interfaces. I need to know, if this is possible and will really appriciate if someone can provide me pointer in this direction. Thanks a lot. R. Singh ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Re: [LARTC] virtual interface
There is no need to use imq ant everything is easy to do anyway interface name is usefull only to attach qdisc to something and that all you need to clasify packets by source or destination ip antway if you have idea how to use imq there then just use your interface instead. also why it is so obvious that they must be shaped separately, ususly it is much better to shape everything in one einterface Hi guys, I have this problem too. I have two Internet routers connected to the same Ethernet interface (using a hub). And each one obviously needs to be shaped seperately. It seems like a very common and logical scenario and this issue seems like a design problem. Any Ideas on a workaround? Perhaps IMQ can be used somehow (although I hear it has serious stability problems...)? Aron ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
RE: [LARTC] virtual interface
>Alen, > > : can i add HTB rule on virtual interface? > : example: eth0:0 > >First, it's not really a virtual interface--it's just a convention from the old days of IP aliasing to have names like eth0:0. > The IP exists and is active on an interface, eth0 in your case. > The short answer is "no". Traffic control occurs just prior to the release of the packet for transmission by the hardware driver. See the KPTD [0]. > > You can however select packets based on many characteristics, so you may be able to accomplish what you need. You'll use characteristics other than the > label "eth0:0". Hi guys, I have this problem too. I have two Internet routers connected to the same Ethernet interface (using a hub). And each one obviously needs to be shaped seperately. It seems like a very common and logical scenario and this issue seems like a design problem. Any Ideas on a workaround? Perhaps IMQ can be used somehow (although I hear it has serious stability problems...)? Aron ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] virtual interface
Alen, : can i add HTB rule on virtual interface? : example: eth0:0 First, it's not really a virtual interface--it's just a convention from the old days of IP aliasing to have names like eth0:0. The IP exists and is active on an interface, eth0 in your case. The short answer is "no". Traffic control occurs just prior to the release of the packet for transmission by the hardware driver. See the KPTD [0]. You can however select packets based on many characteristics, so you may be able to accomplish what you need. You'll use characteristics other than the label "eth0:0". -Martin [0] http://www.docum.org/stef.coene/qos/kptd/ -- Martin A. Brown --- SecurePipe, Inc. --- [EMAIL PROTECTED] ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] virtual interface
On Monday 05 January 2004 05:55, alen sarkinovic wrote: > can i add HTB rule on virtual interface\ > example: eth0:0 No. Stef -- [EMAIL PROTECTED] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] virtual interface
can i add HTB rule on virtual interface\ example: eth0:0 alens - Original Message - From: "Stef Coene" <[EMAIL PROTECTED]> To: "jayesh rathod" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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 > > -- > [EMAIL PROTECTED] > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net > > ___ > LARTC mailing list / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/