Home > other >  Double nic issue?
Double nic issue?

Time:10-10

Servers have two pieces of card, A card IP for 192.168.1.5, meet on A switch SA, B nic IP 172.168.1.6, pick up on another switch SB, program to deal with A card received information, the information from the switch 1 SA, information from the 2 switches SB, so the network card A set up two IP, A 192.168.1.5, another IP for 172.168.1.5, switch SB send 172.168.1.5 information by B nic 172.168.1.6 connect server forwarding, can we achieve this function? How should do?

CodePudding user response:

Order, please help!

CodePudding user response:

Don't bother, bundle IP can be directly in the program, A network card also don't need to set up two IP
Module A, binding 192.168.1.5 this address
Module B, binding 172.168.1.6 this address

Said sentence and question irrelevant, 172.168.1.6 this is a public IP, 172 segments of private IP range is along/12 (172.16.0.1-172.31.255.254), this program will now have hidden trouble, conditions permitting, put it into a private IP

CodePudding user response:

Application software should receive SA switches to the information, and to receive switch SB, because to get their information needs to be two switches, and real-time information, the software can only handle A nic receive information, so want to use the server's another card, such as: B, B card after receiving the SB exchange information timely passed to the network card A, plus A pick on the switch card itself on SA, so A nic can also accept the SA and SB switch information, meet my requirements, now just don't know how to set up to make the card B after receiving the information forwarded A nic a.
172.168.1.6 only, for example, not real IP. Thank Runnerchin

CodePudding user response:

TCP is not very good, if is the UDP, can write A program on the B network card to monitor, send all packages sent A card intact

CodePudding user response:

On the server can't start the routing
  • Related