Get*_*ree 5 networking linux routing route
这可能是一个愚蠢的问题。
我正在wget从命令行使用一些 http 请求,并且我希望通过我的服务器拥有的 4 个 IP 中的一个特定 IP 建立这些连接。
这些 http 请求转到一个特定范围的 IP,所以我只希望它们以不同的方式路由。
我的服务器中的 4 个接口是eth0、eth0:0、eth0:1、eth0:2。
我尝试使用以下命令:
route add -net 192.164.10.0/24 dev eth0:0
但是当我看到路由表时,它说:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.164.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Run Code Online (Sandbox Code Playgroud)
界面设置为eth0不像eth0:0我的命令所说的那样。
我究竟做错了什么?
wget --bind-address=192.0.2.116 http://file 从 man wget