Linux Network Namespace Link
Linux network namespaces
In this post we will create two linux network namespaces that can handle packets and establish communication among themselves(t1 and t2) using the kernel ip_forward.
The network looks like the following–
t1 —- link1 —- kernel —- link2 —-t2
Clean up the interfaces from any previous experiments–
Create new link with hwaddr, ip addresss, network namespaces.
Test the namespaces with ping and iperf traffic-
If there is no forwarding mechanism available to forward packets from 10.10.251.0/24 and 10.10.252.0/24 network we would need the ip_forward enabled in the kernel
Change the ip_forward flag value