The sip server communicates with the same IP in a specific LAN

My sip server used to use mobile wifi wireless LAN before. In bridge mode, voice terminals in the same segment of the network can communicate normally. After switching to a specific wired LAN segment, it cannot be pinged with other IPs in this segment.

The virtual switch VMnet0 has been bridged to the external specific LAN segment through the host's Ethernet interface:

8a4780e0f9c84995baa6aab1409094bb.png

 Or not.

After many attempts, it is found that the network connection method of the virtual machine currently used is wrong. You should choose the method of customizing to the VMnet0 virtual switch, because we have set up the VMnet0 virtual switch to bridge to the external network, so the virtual machine we use The machine must pass through the switch to connect to the external IP of the same network segment.

fc7fc97283b341dfbe495f0a71992997.png

 (First of all, the IP address, subnet mask, and gateway of the Ethernet interface of the host must be set correctly to ensure that the IP address can be used. Also, the firewalls of the host and the virtual machine must be closed first, otherwise the ping may not work)

Before using mobile phone wifi, the reason why the virtual machine can successfully select the bridging mode (B) is that the currently used virtual machine does not pass through the virtual switch, but directly bridges to the wifi wireless LAN connected to the host, so every time the wifi gateway IP changes, It is necessary to modify the static IP address of opensips once.

Guess you like

Origin blog.csdn.net/m0_51292856/article/details/130767816
sip