The only other change that may be required is to make sure that the address spaces (MAC and IP) on the client and server simulations are compatible. First the MAC address is set to a unique well-known value in both places (illustrated here for one side).
// // We've got the devices in place. Since we're using MAC address // spoofing under the sheets, we need to make sure that the MAC addresses // we have assigned to our devices are unique. Ns-3 will happily // automatically assign the same MAC addresses to the devices in both halves // of our two-script pair, so let's go ahead and just manually change them // to something we ensure is unique. // Ptr<NetDevice> nd = d.Get (0); Ptr<EmuNetDevice> ed = nd->GetObject<EmuNetDevice> (); ed->SetAddress ("00:00:00:00:00:02");--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/c7951324-008a-455b-ae0d-810d88bf83dbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/c8d5fd88-9389-4054-9789-45aac1ef99ben%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/b699d4c1-e4fd-4e72-8708-67a872ef9ab0n%40googlegroups.com.

.png?part=0.4&view=1)
.png?part=0.3&view=1)
.png?part=0.1&view=1)
.png?part=0.5&view=1)
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/7869ea98-0851-4bdd-9bd6-69e0295d623bn%40googlegroups.com.