CsmaHelper csma;
csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate("1000Gb/s")));
csma.SetDeviceAttribute ("Mtu", UintegerValue (1500));
csma.SetChannelAttribute ("Delay", TimeValue (Seconds (0.001)));
NetDeviceContainer DevicesLeft = csma.Install (NodeContainer(pgw,ghLeft.Get(0)));
NetDeviceContainer DevicesRight = csma.Install (NodeContainer(ueNodes.Get (0),ghRight.Get(0)));
Ipv4AddressHelper ipv4ghNetLeft,ipv4ghNetRight;
ipv4ghNetLeft.SetBase ("1.0.1.0", "255.255.255.0");
Ipv4InterfaceContainer IpIfacesLeft = ipv4ghNetLeft.Assign(DevicesLeft.Get(0));
ipv4ghNetRight.SetBase ("1.0.2.0", "255.255.255.0");
Ipv4InterfaceContainer IpIfacesRight = ipv4ghNetRight.Assign(DevicesRight.Get(0));
Ipv4StaticRoutingHelper ipv4RoutingHelper;
Ptr<Ipv4StaticRouting> pgwStaticRouting = ipv4RoutingHelper.GetStaticRouting (pgw->GetObject<Ipv4> ());
pgwStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.2.0"),Ipv4Mask("255.255.255.0"),Ipv4Address("7.0.0.2"),1);
pgwStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.1.0"),Ipv4Mask("255.255.255.0"),3);
Ptr<Ipv4StaticRouting> ueStaticRouting = ipv4RoutingHelper.GetStaticRouting (ueNodes.Get (0)->GetObject<Ipv4> ());
ueStaticRouting->SetDefaultRoute (epcHelper->GetUeDefaultGatewayAddress (), 1);
ueStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.1.0"),Ipv4Mask("255.255.255.0"),Ipv4Address("7.0.0.1"),1);
ueStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.2.0"),Ipv4Mask("255.255.255.0"),2);