繁体   English   中英

GCP:如何在 GCP 的 VM 实例中安装和运行“google-ip-forwarding-daemon”服务

[英]GCP: How to install and run "google-ip-forwarding-daemon" service in VM instance in GCP

我已根据我的自定义映像在 GCP 中创建了一个 VM 实例。 我的目标是使用此 gcp 虚拟机检查 IP 别名。 IP 别名对我不起作用。 在参考了一些文档之后,别名似乎不起作用,因为“google-ip-forwarding-daemon”服务不起作用。 以下是文件的摘录:

Ensure that ip_alias = true in /etc/default/instance_configs.cfg. If you have to change 
this, you must also restart the routing daemon:
service google-ip-forwarding-daemon restart


"/etc/default/instance_configs.cfg" does not exist in my vm.

以下服务正在我的虚拟机中运行:

systemctl list-unit-files | grep google
snap-google\x2dcloud\x2dsdk-235.mount   enabled         enabled
google-guest-agent.service              masked          enabled
google-osconfig-agent.service           enabled         enabled
google-oslogin-cache.service            static          enabled
google-shutdown-scripts.service         masked          enabled
google-startup-scripts.service          masked          enabled
google-oslogin-cache.timer              enabled         enabled

它没有运行守护进程服务。

任何指导都会有所帮助。

google-ip-forwarding-daemon用于转发 TCP 个数据包。

如果您在创建 VM 时启用IP 转发,则会启用该功能。 IP VM 运行后无法启用转发。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM