Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 希望能够在启动过程中允许指定使用的IP地址,以确保系统正确地绑定并使用预期的网络接口 #568

Open
1 of 2 tasks
cryhac opened this issue Aug 30, 2024 · 1 comment

Comments

@cryhac
Copy link

cryhac commented Aug 30, 2024

Is there an existing issue for this?

  • I had searched in the issues and found no similar issues.

Description

在多网卡环境下,如安装了虚拟机(Vmware)或Docker时,通过引入arex-agent.jar启动后,发现记录机器的Host的IP地址指向了错误的网络接口。当前,系统自动选择了bridge100网络接口的IP地址(192.168.64.1),而不是预期使用的主网络接口en0的地址。

如所附的截图所示,当前系统错误地识别了网络接口。实际应使用的IP是en0接口上的地址,例如:10.110.2.83。

环境信息:

  • agent版本:0.4.6
  • 系统硬件:M2芯片MacBook
  • 其他环境:已安装Docker和VMWare虚拟机

示意图

image

错误示意图

  • 网络接口配置:
image
  • 主要网络接口配置:
image

Solution

默认处理保持不变,希望能够在启动过程中允许指定使用的IP地址,以确保系统正确地绑定并使用预期的网络接口。例如:添加启动参数-Darex.instance.ip-address=10.110.2.83。

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

  • Yes I am willing to submit a pull request on my own!
@QizhengMo QizhengMo transferred this issue from arextest/arex Sep 18, 2024
@QizhengMo
Copy link
Collaborator

@lucas-myx issue transferred from arex repo, please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants