IPv4 Network Configurator Tutorial¶
This tutorial shows how one can configure IP addresses and routing tables in wired and wireless networks in the INET Framework without using a host configuration protocol and a routing protocol; that is, how to achieve static autoconfiguration.
In INET simulations, configurator modules are commonly used for assigning IP addresses to network nodes and for setting up their routing tables. There are various configurators modules in INET. This tutorial covers the most generic and most featureful one, Ipv4NetworkConfigurator. It supports automatic and manual network configuration, and their combinations. By default, the configuration is fully automatic. When automatic configuration does not yield the desired results, the user can specify manual configuration for parts (or all) of the network, and the rest will be configured automatically. The configurator’s various features can be turned on and off with parameters. The details of the configuration, such as IP addresses and routes, can be specified in an XML file.
The tutorial is organized into several steps, each one demonstrating a different feature or use case for the network configurator:
- Step 1. Fully automatic IP address assignment
- Step 2. Manually overriding individual IP addresses
- Step 3. Automatically assigning IP addresses to a subnet from a given range
- Step 4. Fully automatic static routing table configuration
- Step 5. Manually overriding individual routes
- Step 6. Using a different metric for automatic routing table configuration
- Step 7. Configuring a hierarchical network
- Step 8. Configuring a mixed wired/wireless network
- Step 9. Leaving some parts of the network unconfigured
- Step 10. Configuring a completely wireless network
- Step 11. Manually modifying an automatically created configuration
- Step 12. Mixing different kinds of autorouting
- Conclusion
This is an advanced tutorial, and it assumes that you are familiar with creating and running simulations in OMNeT++ and INET. If you aren’t, please read the INET User’s Guide first.