Specifying IP (IPv6) addresses in module parameters
In INET, TCP, UDP and all application layer modules work with
both IPv4 and IPv6. Internally they use the Address C++ class, which
can represent both IPv4 and IPv6 addresses.
Most modules use the L3AddressResolver C++ class to resolve addresses
specified in module parameters in omnetpp.ini.
L3AddressResolver accepts the following syntax:
- literal IPv4 address: "186.54.66.2"
- literal IPv6 address: "3011:7cd6:750b:5fd6:aba3:c231:e9f9:6a43"
- module name: "server", "subnet.server[3]"
- interface of a host or router: "server/eth0", "subnet.server[3]/eth0"
- IPv4 or IPv6 address of a host or router: "server(ipv4)",
"subnet.server[3](ipv6)"
- IPv4 or IPv6 address of an interface of a host or router:
"server/eth0(ipv4)", "subnet.server[3]/eth0(ipv6)"