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
 2. Edit the following file複製代碼# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255 (This should be updated)
HWADDR=70:71:BC:xx:xx:xx
IPADDR=192.168.1.101 (This should be updated)
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.1.0 (This should be updated)
ONBOOT=yes
 vi /etc/sysconfig/network
 3. Restart the new network settings複製代碼NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=leo
GATEWAY=192.168.1.1 (This should be updated)
 /etc/init.d/network restart
 
 
 YH
 |