A few days ago there is a network topology, the server needs to configure multiple network cards to communicate multiple services. After configuring multiple IP addresses, you can only access the primary IP address, and the secondary IP configuration to another network port can not ping another network segment. After testing with a PC, it is possible to suspect that the server is not very good at identifying multiple gateways (but the PC is ok ...). )。 The route add command is used to add a static route for the server exit, and if the add is required to set the if is the outbound interface of the route (need to be a numeric number), this number is displayed in the interface list after entering the route prinet command, so that the IF parameter corresponds to write it. Interface List
12...1C 1b 0d 4f d5 ... Intel (R) Ethernet Connection (2) i219-v
13...0a xx 0d ..... VirtualBox host-only Ethernet Adapter
1...........................Software Loopback Interface 1
11...00 xx e0 Microsoft Teredo tunneling Adapter
Windows systems add static routes.