This can be done using IoT network module in NetSim.
The WSN / Zigbee network would consists of sensors running 802.15.4 in MAC / PHY and RPL / AODV in L3. This can then connect to an externeal network having routers, switches via the 6LoWPAN Gateway.
Related articles: