How do I implement gateways with different IP addresses in the same CIDR block?

Updated on technology 2024-03-14
8 answers
  1. Anonymous users2024-02-06

    First of all, I want to tell you that there is --- a route that exists specifically for the end line offload. If you don't add something in the case of the existing setup, there is a way to achieve it, but it is relatively unreliable, and it has its drawbacks, which I will explain later. 1) Two routers are connected to two cats, and they are configured according to the normal single line.

    It should be noted that the inbound gateways of the two routes are within one C and are different. For example, you said that DHCP automatic assignment must be turned off for routing" 2) The ports in the two route pairs are connected to the same switch. 3) Connect the attached machine to the switch.

    4) Except for the manual assignment of IP addresses for 20 machines, the route is accounted for), the mask gateway, which is the focus, the gateway of 20 machines, 10 fill in 1, and the other 10 fill in 2. The result of this is that the 20 machines are forcibly divided into 2 groups and go out through different router lines, and since the 20 machines are on the same switch, the mutual access between them is not affected by the gateway. But such a defect is that the fixed machine takes a fixed line, which means that 10 units go all the way, and the line is rigidly separated.

    The advantage is that no matter how ordinary and low-level your routing exchange is, it can be implemented, because it does not involve any advanced routing and switching protocols, and purely physical lines are in play.

  2. Anonymous users2024-02-05

    The network card sets up multiple IP addresses with different network segments, and different IP addresses can access each other's computer networks across network segments.

  3. Anonymous users2024-02-04

    This line of thinking doesn't work. It's better for you to connect 10 computers to each of the two lines. That is to say, a group of gateways for a group of gateways is considered partial distribution.

    As for the servers. You don't need and you can't add an additional network card. Because all your machines are in one switch and in one network segment.

    This allows you to specify only one gateway. The best thing to do is to choose a dual-WAN port router with load balancing to replace your 2 normal routers.

  4. Anonymous users2024-02-03

    Your ideas are feasible, don't worry about doing it boldly... The network card of the server is not necessary to use... A network card will do.

  5. Anonymous users2024-02-02

    In multi-layer switching, the IP address is not on the same network segment as the gateway.

    For example, the IP segment of router A is a segment, and the next two switching devices are and respectively, and these two switching devices are connected to different computers.

    Then the gateways of these PCs need to be set up to access the Internet.

    The computer can not be on the same network segment as the router, but must be exchanged with the same network segment.

    To understand this problem in depth, we must first understand the principle of network communication, network communication works at the physical layer and the data link layer, and the source and destination addresses communicate through the MAC addresses of the source and destination.

    When the source host accesses the destination host, the first thing to do is to check that the IP addresses of the two are not in the same network segment

    1 If the two are in the same network segment, the packet will be sent directly to the destination IP

    Check the local ARP cache to see if there is a table corresponding to the IP address and MAC.

    Yes, send packets directly to the network, including the original MAC and the target MAC.

    If not, an ARP broadcast is sent to the network to find the MAC address corresponding to the target IP (ARP sends broadcast data, and each Ethernet interface on the cable receives the broadcast data frame).

    If it is found, the packet is sent to the network.

    If it is not found, it will not be communicated.

    2. If the two are not on the same network segment, change the destination address to the gateway address (that is, send packets to the gateway), and then find the local ARP cache and continue.

    It can be seen that during the communication between the source host and the gateway, the source host does not check whether the two are on the same network segment, but directly checks the ARP cache or sends an ARP broadcast. So it is possible to communicate.

    Of course, this is only one-way, and if you want the packets responded by the target host to return to the source address, you also need to do a routing strategy on the router.

    In general, it is used more in single-arm routing. One of the router's internal network interfaces is connected to several different subnets, and the network management system is set up in order to save trouble.

    What are the benefits of this, I think, it can protect the gateway from being easily exposed (external attacks). However, this can be troublesome for network debugging, or troubleshooting when the network fails. This is generally not recommended.

  6. Anonymous users2024-02-01

    Operating tool: Lenovo.

    Operating system: Windows 7

    1. Click the networking icon in the lower right corner of the computer, and right-click to open the network sharing center. (as shown in the image below).

    2. Click the Wi-Fi connection in the connection or the local connection in the connection. (as shown in the image below).

    3. Click Details in the status.

    4. Check the IP address in the details. Whether or not the address was obtained. (as shown in the image below).

    5. Set up the router, open the browser, enter or () in the browser address, enter the username and password, and click to log in. (as shown in the image below).

    6. Enter the router interface and click on the DHCP server. (as shown in the image below).

    7. Disable the DHCP service. (as shown in the image below).

    8. Click System Tools to restart the router. Just reconnect the network cable or connect to the Internet. (as shown in the image below).

    Router Setup Notes:

    There is a place to pay attention to here, that is, "Anshu hand full mode" here, the default security mode at the factory is "WPA2 personal", this security mode is more advanced, if your system is Windows XP Service Pack 2, then your computer will not support this advanced security mode, you need to choose WPA personal security mode. <>

  7. Anonymous users2024-01-31

    The problems described are usually caused by problems in the subnet mask configuration. Change the subnet mask from "or".

    1. Generally, under the same network segment, the IP address and the first 3 sets of digits of the gateway are the same, and the computer and router can identify the IP address and the gateway in the same network segment. The static IP configuration in the router is as follows:

    2. In special cases, the assigned IP address is the same as the first 2 sets of digits of the gateway, so the setting has little impact on the computer, but the routing rubber chain will prompt the error of "the IP address and the gateway are not in the same network segment", such as Zheng can not be saved. As shown in Fig

    3. This error is caused by the incorrect configuration of the subnet mask, as long as the subnet mask is changed to, it can be saved correctly and the Internet can be accessed normally.

  8. Anonymous users2024-01-30

    How to communicate IP addresses between different CIDR blocks:

    The first method is to change the subnet mask to the same network segment.

    The CIDR blocks of two different subnets cannot reach each other, and after changing the original subnet mask to the subnet mask, both are in the same network segment, and they can access each other.

    The second method requires a Layer 3 switch or router.

    The device in the left subnet uses the interface IP of the router connected to as the gateway, and the device in the right subnet uses the interface IP of the router as the gateway, and the two subnets can communicate.

    Communication principle: There are direct routes to two subnets on the router, and when the subnet device uses the router as the gateway, it can directly access the target according to the direct route, and the router is the gateway when the target is returned, and the direct route is also directly called to return the information.

    The third method: there are multiple isolation devices in between.

    The two adjacent subnets use the adjacent router interfaces as gateways, and the two routers write static routes to each other's subnets. Alternatively, two routers can run the dynamic routing protocol and advertise the routes of the subnets where they are located.

    This is a general, three-layer communication environment, which is no different from communication on the Internet.

    The public address is the responsibility of the Inter NIC (Internet Network Information Center). These IP addresses are assigned to organizations that register and apply to Inter NIC. Direct access to the Internet through it.

    2. Private address.

    A private address is a non-registered address that is intended for internal use within an organization.

    Class A, Class B, Class C.

Related questions
6 answers2024-03-14

I'll come to your questions.

First of all, an answer can be drawn that your question is wrong. >>>More

11 answers2024-03-14

There's a version of bleeding love-leona lewis that uses the accompaniment of apologize-one republic, and another version that uses mercy-duffy, but both of these versions seem to be only on ****. >>>More

13 answers2024-03-14

I am a train fan, the railway, the train is my favorite, this problem I In order to standardize the order of railway transportation, reasonably arrange the railway train schedule, and facilitate the transportation dispatching command units at all levels of the railway (transportation dispatching command center of the Ministry of Railways, the transportation dispatching command post of the railway bureau, and the dispatching room of the station section) real-time command and monitoring of railway operation to ensure the safety and order of railway driving, and distinguish the direction of train operation, *** The competent railway authorities (Ministry of Railways) have specified the direction of trains running on national railways (of course, state-owned railways): Railway trains are all in the direction of approaching Beijing (entering or approaching) as the upward direction, and the number of trains is numbered as an even number; Railway trains are all in the direction of moving away from Beijing (out or away) as the downward direction, and the number of trains is numbered as an odd number. When the direction of a train changes, the number of trains changes accordingly. >>>More

6 answers2024-03-14

Of course, this is not the same, these are files under different usernames, in fact, they are two different files, but the two file names are the same.

40 answers2024-03-14

For me, there is no need to buy several brands of lipstick of the same color, for me, as long as the lipstick of one color is used up and then buy, but sometimes the color I like only has a few products, so at this time it can be said to buy several different brands of lipstick, but I think it is a waste to do so, because a lipstick can be used for a long time, and it is a waste for me to buy several brands of lipstick. Because it's impossible to say that you can use all of these lipsticks. >>>More