Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: apuboard on December 03, 2015, 11:48:42 PM

Title: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 03, 2015, 11:48:42 PM
I would like to bond two ethernet connections. From what I've read you can do it with
Code: [Select]
ifenslave but this is not installed on Micro Core Linux.
Is there an other easy way to do this? Or can anybody help me to install it?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 12:22:36 AM
Update
So I found out that the busybox which is on the Micro Core is an older version and it doesn't contain ifenslave. The newer one does.
Can I install ifenslave directly from busybox with busybox --install [-s] [DIR] or can I update the busybox version anyhow?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: curaga on December 04, 2015, 01:57:28 AM
You need to rebuild busybox to add applets. It may be easier to build ifenslave the standalone package.
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 02:07:19 AM
Where can I get it from?. Firstly it's not in the tce-ab. Can I use any ifenslave and then compile it(I never compiled a programm before)? And I just downloaded the busybox-1.24.2 wouldn't it be easier to just update the busybox(I didn't updated a busybox either, so I don't know how hard this would be)? Or do you know an other/easier way to bond two ethernet interfaces?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: bmarkus on December 04, 2015, 02:16:03 AM
  Question what do you want to do with interfaces. Maybe bridging would work.
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 02:18:26 AM
I would like to catch the traffic which goes through it, like a hub. I would put it between router and pc and catch it like that. Would that work?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: bmarkus on December 04, 2015, 02:50:46 AM
You can put two Ethernet interfaces to a bridge and monitor traffic with pcap than analyze with WireShark. No need for bonding.

Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 02:53:53 AM
I just found a good tutorial which could work for me :http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces-nic-into-single-interface.html (http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces-nic-into-single-interface.html)
But It's based on CentOS and I can't find all the files I need.
Where do I have to make these files?
Code: [Select]
/etc/sysconfig/network-scripts/ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 02:56:14 AM
You can put two Ethernet interfaces to a bridge and monitor traffic with pcap than analyze with WireShark. No need for bonding.


So it does monitor the excact same thing? Is it easier to make a bridge then?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: bmarkus on December 04, 2015, 03:01:11 AM
For bridging everything is available in the repo. Easier? No idea, never used bonding. As usual, with Linux there are several ways to solve a problem. In a bridge you save the same traffic at the interfaces. With pcap you can use whatever filtering you want. It is well documenting, planty of docs, tutorials, ...

Also check this Forum, bridging was discussed few weeks ago.
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 03:23:53 AM
You mean there are tools avalaible in the tce-ab and if there are some, how are these called?
I found oen which was made by curaga (net-bridging-3.16.6-tinycore64). Can I use this one?
Everytime I download something from tce-ab the file is empty when I open it in /usr/local/tce.installed$. How can I even use them?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: bmarkus on December 04, 2015, 03:46:28 AM
Learn how TC works. Read Core book http://distro.ibiblio.org/tinycorelinux/corebook.pdf

Learn what is bridging and how to monitor, analyze traffic with pcap/WireShark or others tool, use Google

And of course establish your target, why are you doing it and what do you want to check.
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 04, 2015, 04:21:38 AM
I really would like to know how to install these extension. Well I can download them but why are these files empty am I looking in the wrong folder(/usr/local/tce.installed$)? I already checked  the tce-ab script. I also looked at hte core documentation and they are using load, which is also used i the script. I know that I have to copy it to the sbin directory but why copy an empty file?
Title: Re: Make a bond0 in Micro Core Linux?
Post by: Misalf on December 04, 2015, 04:31:17 AM
/usr/local/tce.installed  contains startup scripts of loaded extensions. If an extension doesn't come with a start up script, an empty file is created.

Extensions are loop mounted at  /tmp/tcloop .
Title: Re: Make a bond0 in Micro Core Linux?
Post by: Rich on December 04, 2015, 06:33:32 AM
Hi apuboard
You might want to read through this:
http://www.mjmwired.net/kernel/Documentation/networking/bonding.txt

It states:
Quote
129   1.2 Bonding Control Utility
130   -------------------------------------
131   
132       It is recommended to configure bonding via iproute2 (netlink)
133      or sysfs, the old ifenslave control utility is obsolete.
Title: Re: Make a bond0 in Micro Core Linux?
Post by: apuboard on December 08, 2015, 01:01:36 AM
So I managed to set up a bond interface with iproute2 after I failed to set up a bridge, because it isn't supported with the kernel 3.16.6-tinycore.

bmarkus said that you can also use bride, but now I'm thinking in the other direction, can I also use a bond to monitor the same traffic?
You can put two Ethernet interfaces to a bridge and monitor traffic with pcap than analyze with WireShark. No need for bonding.