以太网中的自动IP寻址不起作用

时间:2018-07-04 13:17:00

标签: ip ethernet omnet++

我是OMNET ++(5.4版)模拟器的新手,我一直在尝试做一些教程来学习它。现在,我正在做一个示例以太网连接,如图所示。enter image description here

在“ net.ini”文件中有以下配置

[General]
# Configurator settings
*.net_configurator.dumpAddresses = true
*.net_configurator.dumpTopology = true
*.net_configurator.dumpLinks = true
*.net_configurator.dumpRoutes = true

# Routing settings
**.networkLayer.configurator.networkConfiguratorModule = ""
*.*.networkLayer.arpType = "GlobalARP"
*.*.routingTable.netmaskRoutes = ""


# Visualizer settings
*.visualizer.interfaceTableVisualizer.displayInterfaceTables = true
*.visualizer.interfaceTableVisualizer.nodeFilter = "not (*switch* or *Switch*  or *AP*)"

[Config Step1]
network = net
description = "Fully automatic IP address assignment"

当我在模拟午餐时,我看不到任何IP分配。可能是什么问题呢? enter image description here

1 个答案:

答案 0 :(得分:3)

更改行:

**.networkLayer.configurator.networkConfiguratorModule = ""

进入:

**.networkLayer.configurator.networkConfiguratorModule = "net_configurator"


其他方法是:

  1. IPv4NetworkConfigurator对象的名称更改为configurator
  2. 删除行:

    **.networkLayer.configurator.networkConfiguratorModule = ""