Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: apuboard on December 04, 2015, 02:48:42 AM
-
I would like to bond two ethernet connections. From what I've read you can do it with
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?
-
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?
-
You need to rebuild busybox to add applets. It may be easier to build ifenslave the standalone package.
-
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?
-
Question what do you want to do with interfaces. Maybe bridging would work.
-
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?
-
You can put two Ethernet interfaces to a bridge and monitor traffic with pcap than analyze with WireShark. No need for bonding.
-
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?
/etc/sysconfig/network-scripts/ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
-
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?
-
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.
-
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?
-
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.
-
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?
-
/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 .
-
Hi apuboard
You might want to read through this:
http://www.mjmwired.net/kernel/Documentation/networking/bonding.txt
It states:
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.
-
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.