首页 > 解决方案 > 以太网网络中的自动 IP 寻址不起作用

问题描述

我是 OMNET++(5.4 版)模拟器的新手,我一直在尝试做一些教程来学习它。现在我正在做一个如图所示的示例以太网连接。在此处输入图像描述

我的“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 分配。可能是什么问题呢? 在此处输入图像描述

标签: ipethernetomnet++

解决方案


换行:

**.networkLayer.configurator.networkConfiguratorModule = ""

进入:

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


其他方法是这样做:

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

    **.networkLayer.configurator.networkConfiguratorModule = ""
    

推荐阅读