Get the App
SLTechnology News&Howtos  ›  Servers  › 

The Windows system adds static routes.

Shulou Source: shulou.com Published: 2022-06-02 21:42:44 09月22日 Update

A few days ago, there was a network topology, and the server needed to configure multiple network cards to communicate with multiple services. After configuring multiple IP addresses, you can only access the primary IP address, and the secondary IP cannot ping another network segment when configured to another network port. After testing with PC, it is completely OK. It is suspected that the server does not recognize multiple gateways very well (but PC is normal...). Use route add command to add static route of server exit. After adding, you need to set IF to be the exit interface of route (it needs to be a numerical number). This numerical number is displayed in the interface list after entering route prinet command, so that IF parameter can be written accordingly. interface list

12... 1c 1b 0d 60 4f d5 ...... Intel(R) Ethernet Connection (2) I219-V

13... 0a 00 27 00 00 0d ...... VirtualBox Host-Only Ethernet Adapter

1........................... Software Loopback Interface 1

11... 00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter

Tags: Multiple interface server service configuration route command address number static service parameter that is topology is in label gateway network card network port network segment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS OPPO Reno Microsoft Docker NVidia