Displaying ip addresses along with other interface information — inet documentation documentation
The InterfaceTableVisualizer module (incorporated within the network as an ingredient
of IntegratedVisualizer) displays data about network nodes’
interfaces. (Interfaces are found in interface tables, therefore, the
name.) Automatically, the visualization is switched off. When it’s enabled
while using displayInterfaceTables parameter, the default is the fact that
interface names, IP addresses, and netmask length are displayed, above
the nodes (for wireless interfaces) as well as on the hyperlinks (for wired
interfaces). By hitting an interface label, facts are displayed in
the inspector panel.
The visualizer has lots of configuration parameters. The format
parameter specifies what details are displayed about interfaces. It
requires a format string, which could retain the following directives:
- %N: interface name
- %4: IPv4 address
- %6: IPv6 address
- %n: network address. This really is either the IPv4 or even the IPv6 address
- %l: netmask length
- %M: MAC address
- %: conditional newline for wired interfaces. (Observe that the backslash
must be bending, because of getting away.)
- %s: the str() functions for that interface entry class
The default format string is “%N %%n/%l”, i.e. interface name, IP
address, and netmask length.
The group of visualized interfaces could be selected using the configurator’s
nodeFilter and interfaceFilter parameters. Automatically, all
interfaces of nodes are visualized, aside from loopback addresses
(the default for that interfaceFilter parameter is “not lo*”.)
You’ll be able to display labels for wired interfaces over the node
icons, rather of around the links. This feature can be achieved by setting the
displayWiredInterfacesAtConnections parameter to false.
There’s also several parameters for styling, for example color and font
selection.
Resourse: https://inet.omnetpp.org/docs/showcases/visualizer/interfacetable/doc/