Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Routing Table configuration of centos7 Windows dual Network Card and double Gateway

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Routing table configuration of dual network cards and dual gateways.

Anyone who has engaged in network communication knows that a computer cannot have two gateways. If two network cards in a computer are configured with different gateways at the same time, only one network card can be used in the computer.

The network structure is shown below:

There are two main problems solved by the routing table:

When dual network cards and two gateways are used at the same time, one computer can use two network cards to access two different gateways. The computer can access the gateway 20.41.1.1 through the network card bound to 20.41.200.203, and can also access the gateway 20.42.1.1 through the network card bound by 20.42.200.203.

Route add-net20.42.0.0 netmask 255.255.0.0 gw 20.42.1.1 dev ens1f1

Route add-net 20.41.0.0 netmask 255.255.0.0 gw 20.41.1.1dev ens2f1

two。 Dual network cards and double gateways are accessed simultaneously across network segments, and one network card is used to access another network segment computer. The computer can access the gateway 20.50.1.1 across network segments through the network card bound by 20.41.200.203

Route add-net20.150.0.0 netmask 255.255.0.0 gw 20.42.1.1 dev ens1f1

Route add-net 20.50.0.0 netmask 255.255.0.0 gw 20.41.1.1dev ens2f1

The 3.windows command is as follows:

Route print

Route delete 0.0.0.0

Route delete 0.0.0.0

Route delete 10.18.0.0

Route add 0.0.0.0 mask 0.0.0.0 10.18.60.1

Route add 10.18.0.0 mask 255.255.0.0 10.18.203.1

Route print

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report