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

关于虚拟网络 #20

Closed
Lanzhiwei opened this issue Mar 3, 2022 · 1 comment
Closed

关于虚拟网络 #20

Lanzhiwei opened this issue Mar 3, 2022 · 1 comment
Labels
faq Collect for FAQ, no need to fix

Comments

@Lanzhiwei
Copy link

虚拟网络生成的子网如何能被其他机器访问?

@LubyRuffy
Copy link
Collaborator

比如A机器启用了虚拟网络172.16.0.0,A机器和B机器通过C路由器进行连接。

那么有两种做法:

  • B机器配置本地静态路由
  • 路由器上进行静态路由配置

在A服务器上配置包转发:

sudo sysctl net.ipv4.ip_forward=1

简单示例如图:

image

@LubyRuffy LubyRuffy added the faq Collect for FAQ, no need to fix label Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq Collect for FAQ, no need to fix
Projects
None yet
Development

No branches or pull requests

2 participants