返回列表 發帖

Change of network segment address on CentOS-based Asterisk server

Since the Asterisk server has been moved from Shenzhen to Hong Kong, the network status of the (Shenzhen) CentOS server is

Network segment: 192.168.2.0
Gateway: 192.168.2.1
IP Address: 192.168.2.101

We have to modify the above settings to the followings such that it can be used in Hong Kong:

Network segment: 192.168.1.0
Gateway: 192.168.1.1
IP Address: 192.168.1.101

How to accomplish the above tasks? Please following the instructions:

1) vi /etc/sysconfig/network-scripts/ifcfg-eth0
  1. # Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
  2. DEVICE=eth0
  3. BOOTPROTO=static
  4. BROADCAST=192.168.1.255 (This should be updated)
  5. HWADDR=70:71:BC:xx:xx:xx
  6. IPADDR=192.168.1.101 (This should be updated)
  7. IPV6INIT=yes
  8. IPV6_AUTOCONF=yes
  9. NETMASK=255.255.255.0
  10. NETWORK=192.168.1.0 (This should be updated)
  11. ONBOOT=yes
複製代碼
2. Edit the following file

vi /etc/sysconfig/network
  1. NETWORKING=yes
  2. NETWORKING_IPV6=yes
  3. HOSTNAME=leo
  4. GATEWAY=192.168.1.1 (This should be updated)
複製代碼
3. Restart the new network settings

/etc/init.d/network restart


YH

Yeah!The settings shown above are for letting the CentOS be able to connect the external Internet World.

The suggestion given by bubblestar is additional to make your Asterisk server run without any further network problem.

YH

TOP

I think some parameters in the sip.conf should be modified to correspond to and reflect the changes. ...
bubblestar 發表於 2011-8-14 12:34


Bubblestar you are right. With the modifcation (at least the network segment modfication as in sip.conf), registration will fail if the sip client is in the same network segment of 192.168.1.0.

YH

TOP

Thank CK. Now I am at the stage of getting my PC engine started. More questions will come out later.

YH

TOP

For the time being, I wanna install the CentOS and Asterisk 1.8. If I have time, I shall explore the possibility of installation of mySQL as well.

Which version of CentOS that you recommend to use?

YH

TOP

Thank you for your advice. What is difference if I use CentOS 5.5 as compared to CentOS 5.6 when I install Asterisk 1.8.

TOP

Copied. I shall take your advice.

YH

TOP

返回列表