Joe*_*air 6 networking vpn routing
我有一台连接到 VPN 的 Ubuntu 机器,其 IP 地址为172.16.1.250。我想172.16.1.*通过 VPN对所有请求进行隧道传输,但仅此而已。如果我尝试使用sudo route -net add 172.16.1.0/24 dev ppp0,则会收到错误消息:
netmask 00000fff doesn't make sense with host route
Run Code Online (Sandbox Code Playgroud)
但是,只需为该子网上的一个地址添加路由即可。这样做的正确方法是什么?
| 归档时间: |
|
| 查看次数: |
969 次 |
| 最近记录: |