Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working on a script with which I can simulate traffic in an office network . I have a PCAP file which is a capture on a Router Port , I intend to make changes in the IP address and MAC address of this PCAP file and add new kinds of packets like route update packets and Keepalives for routing protocols , UDP packets for VOIP traffic . Populate MAC and ARP entries for addresses which do not exist in my network (Lab network).The reason being I am using a smaller set up in my lab as compared to the office network and I am trying to simulate certain failure scenarios in my lab network .
I do not have a sample draft or script , I am still looking for Idea's to begin with this project . I know that I can do this PERL but unfortunately I am not familiar with PERL .
Hi T3RM1NVT0R ,
I am working on a script with which I can simulate traffic in an office network . I have a PCAP file which is a capture on a Router Port , I intend to make changes in the IP address and MAC address of this PCAP file and add new kinds of packets like route update packets and Keepalives for routing protocols , UDP packets for VOIP traffic . Populate MAC and ARP entries for addresses which do not exist in my network (Lab network).The reason being I am using a smaller set up in my lab as compared to the office network and I am trying to simulate certain failure scenarios in my lab network .
I do not have a sample draft or script , I am still looking for Idea's to begin with this project . I know that I can do this PERL but unfortunately I am not familiar with PERL .
I'm a bit confused. You say this is for a lab environment, which to me would indicate you're learning/experimenting. Wouldn't also learning Perl to accomplish your task be a good thing???
I am finding it bit difficult to understand the objective. Let me break it down and see if I am getting it correct.
Quote:
I am working on a script with which I can simulate traffic in an office network . I have a PCAP file which is a capture on a Router Port
So you have got a packet trace file (PCAP file) which was a result of the trace that has been ran on one of the interface on your office router. Is this correct?
Quote:
I intend to make changes in the IP address and MAC address of this PCAP file and add new kinds of packets like route update packets and Keepalives for routing protocols , UDP packets for VOIP traffic
You want to edit this packet capture file so that it can reflect the MAC address and IP address that are in use in your lab environment. Is this correct?
The point I am not getting how you will going to use this PCAP file to experiment around. I mean it is just a trace and you can refer it to setup your environment. How you will use this to test your lab environment (which resemble a little with your office environment)?
Basically I am trying to understand your objective behind doing all this. What outcome your are expecting and what raw material you already have.
You said that you know that this can be done in perl. Did you read any link which explains this can be done in perl?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.