简体   繁体   English

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

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

I have created a VM instance in GCP from my custom image.我已根据我的自定义映像在 GCP 中创建了一个 VM 实例。 My objective is to check IP Aliasing using this vm of gcp.我的目标是使用此 gcp 虚拟机检查 IP 别名。 IP aliasing is not working for me. IP 别名对我不起作用。 After refering some documents it seems that aliasing is not working because "google-ip-forwarding-daemon" service is not working.在参考了一些文档之后,别名似乎不起作用,因为“google-ip-forwarding-daemon”服务不起作用。 following is the excerpt from the document:以下是文件的摘录:

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.

Following services are running 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

It does not have daemon service running.它没有运行守护进程服务。

any guidance will be helpful.任何指导都会有所帮助。

google-ip-forwarding-daemon is used to forward TCP packets. google-ip-forwarding-daemon用于转发 TCP 个数据包。

That feature is enabled if you enable IP Forwarding when you create the VM.如果您在创建 VM 时启用IP 转发,则会启用该功能。 IP Forwarding cannot be enabled once the VM is running. IP VM 运行后无法启用转发。

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

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