当我在一个 NIC 上分配 2 个 IP 时会发生什么?
例如,我有一个物理网卡(eth0),并且我在此接口上分配来自不同网络的 2 个 IP。例如
auto eth0
iface eth0 inet static
address 10.10.0.5
netmask 255.255.255.0
gateway 10.10.0.1
auto eth0:0
iface eth1 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.100
Run Code Online (Sandbox Code Playgroud)
1)如果我从 10.10.05 发送数据包到 192.168.0.5 ,会经过哪条路径?
2)10.10.0.1和192.168.0.100应该是一台物理设备吗?
我也希望有一个解释此案例的文章/书籍的链接。
谢谢