Skip to content

Commit

Permalink
Examples: Added new Ethernet simple example.
Browse files Browse the repository at this point in the history
This example only requires the Ethernet feature to be enabled.
  • Loading branch information
levy committed Feb 28, 2024
1 parent c90eecd commit 7e2b329
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/ethernet/simple/omnetpp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[General]
network = inet.networks.ethernet.LinearNetwork
sim-time-limit = 10s

*.configurator.typename = ""
*.macForwardingTableConfigurator.typename = ""

*.*.hasIpv4 = false
*.*.numLoInterfaces = 0
*.*.ethg$o[*].channel.datarate = 100Mbps

*.client.numApps = 1
*.client.app[0].typename = "EthernetSourceApp"
*.client.app[0].source.packetLength = 1000B
*.client.app[0].source.productionInterval = exponential(1ms)
*.client.app[0].io.remoteAddress = "server"
*.client.app[0].io.interface = "eth0"

*.server.numApps = 1
*.server.app[0].typename = "EthernetSinkApp"
*.server.app[0].io.localAddress = "0A:AA:00:00:00:04"
*.server.app[0].io.interface = "eth0"

0 comments on commit 7e2b329

Please sign in to comment.