CS 39006: Networks Lab Assignment 3

$30.00

Download Details:

  • Name: Asgn-3-qtbkss.zip
  • Type: zip
  • Size: 731.06 KB

Category:

Description

5/5 - (1 vote)

Network Namespace and Ethernet Bridge  PART – A: Create two network namespaces and attach two virtual ethernet (veth) interfaces with the two namespaces. Logically configure the two network namespaces to create a simple network as follows. Configure the two interfaces so that you can ping one interface from the other. You need to write a single shell script to accomplish the complete task (except ping). Once we execute the shell script, it should create the virtual network and configure the interfaces accordingly, so that the devices can be pinged from each other. You need to submit this shell script with name assignment3_partA.sh. PART – B: Now, write a shell script to create a virtual network as follows. Here R works as a bridge to connect three networks. The IPs of the six veth interfaces are as follows: veth1: 10.0.10.X/24 veth2: 10.0.10.1/24 veth3: 10.0.20.1/24 veth4: 10.0.30.1/24 veth5: 10.0.30.X/24 veth6: 10.0.20.X/24 Where X is the last two digits of your roll number. Through your shell script, configure the namespaces and devices, so that H1, H2, and H3 can ping each other. Note the following points — 1. You need to configure Ethernet bridges at R so that it can interconnect the three networks (check the brctl command-line tool that is used to configure Ethernet bridges). 2. You need to enable IP forwarding at R so that the packets from each network can be forwarded to the other network. Use the sysctl command over the network interface of R to set net.ipv4.ip_forward=1. This will configure the protocol stack at R to enable IP packet forwarding. You need to submit this shell script with name assignment3_partB.sh. Submission Instruction: You need to submit the two shell scripts, enclosed in a zip file named assignment3_.zip via Moodle by the deadline. Your shell scripts should have sufficient comments explaining the steps you have used in the code.