How to configure the default route of a multi-line room

Take the actual environment as an example: the server has 2 addresses and has 2 network cards. The first address is 172.16.1.36, the corresponding gateway is 172.16.1.1, the second address is 192.168.1.100, and the corresponding gateway is 192.168.1.1 (Note: The following operations prohibit remote operation)

The specific operations are as follows:

1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 to set the corresponding gateway GATEWAY

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=static

IPADDR=172.16.1.36

NETMASK=255.255.255.0

GATEWAY=172.16.1.1

2. Edit /etc/sysconfig/network-scripts/ifcfg-eth1 to set the corresponding gateway GATEWAY

DEVICE=eth1

ONBOOT=yes

BOOTPROTO=static

IPADDR=192.168.1.100

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

3. Restart the network /etc/init.d/network restart

If the server has only one network card, then step 3 needs to be modified to

Edit /etc/sysconfig/network-scripts/ifcfg-eth0:1 to set the corresponding gateway GATEWAY

DEVICE=eth0:1

ONBOOT=yes

BOOTPROTO=static

IPADDR=192.168.1.100

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

Please set the IP address (IPADDR), subnet mask (NETMASK), gateway (GATEWAY) according to the network parameters given by the actual operator.

Please use VOS 2.1.2.0 and later to optimize the voice routing by using the mandatory local IP function of the landing gateway to optimize voice routing across carriers.

Leave a Reply

Your email address will not be published. Required fields are marked *