How – To: Adding a new IP address to the Tegsoft server

You are here:
  • KB Home
  • How – To: Adding a new IP address to the Tegsoft server
Estimated reading time: 2 min

Ps:İt may require to g.shdsl vs metro ethernet connection to the Tegsoft server. Before these steps, check your connection status, network interface and other hardware such as a cable and firewall.

1- Single Network card/interface status

 Requirements for steps below

  • Eth0 (1.network card)it has to be connected to the local area network.
  • Router(metro ethernet or g.shdsl)it has to be connected to the local area network.

* The following three steps are related to your IP address and other network settings.

If you have all this information please follow the steps or either please reach your service provider and ask for the subnet mask, gateway information.

  • In this case, our example IP address is “91.188.245.2”.This information comes from our internet provider. Please check your IP address before to do that.
  • It is assumed that the subnet mask address to be assigned to the server is 255.255.255.252. This information must be obtained from the service provider.*
  • It is assumed that the gateway address to be assigned to the server is 91.188.245.1. This information must be obtained from the service provider.*

SSH connection or physical connection.

echo > /etc/sysconfig/network-scripts/ifcfg-eth0\:0
echo DEVICE=eth0:0 >> /etc/sysconfig/network-scripts/ifcfg-eth0\:0
echo BOOTPROTO=static >> /etc/sysconfig/network-scripts/ifcfg-eth0\:0
echo ONBOOT=yes >> /etc/sysconfig/network-scripts/ifcfg-eth0\:0
echo NETMASK=255.255.255.252 >> /etc/sysconfig/network-scripts/ifcfg-eth0\:0
echo IPADDR=91.188.245.2 >> /etc/sysconfig/network-scripts/ifcfg-eth0\:0

cat /etc/sysconfig/network-scripts/ifcfg-eth0\:0

---OUTPUT-----
DEVICE=eth0:0
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.252
IPADDR=91.188.245.2
--------------------------

service network restart

ping 91.188.245.1 (GW IP Adresi)

route add -net 91.188.194.0/24 gw 91.188.245.1

echo route add -net 91.188.194.0/24 gw 91.188.245.1 >> /etc/rc.local

If you start the “service network restart” command, the whole routing descriptions will be lost. If it occurs please run these commands.

route add -net 91.188.194.0/24 gw 91.188.245.1

Multiple Network Card/interface Status

  • Eth1(2. Network Card/interface)connection must be connected to different physical connections combined with the local area network.

* The following three steps are related to your IP address and other network settings.

If you have all this information please follow the steps or either please reach your service provider and ask for the subnet mask, gateway information.

  • In this case, our example IP address is “91.188.245.2”.This information comes from our internet provider. Please check your IP address before to do that.
  • It is assumed that the subnet mask address to be assigned to the server is 255.255.255.252. This information must be obtained from the service provider.*
  • It is assumed that the gateway address to be assigned to the server is 91.188.245.1. This information must be obtained from the service provider.*

After these steps get into the network settings and add the IP address and subnet mask to eth1

ifup eth1

ping 91.188.245.1 (GW IP Address)

route add -net 91.188.194.0/24 gw 91.188.245.1

echo ifup eth1 >> /etc/rc.local

echo route add -net 91.188.194.0/24 gw 91.188.245.1 >> /etc/rc.local

If you start the “service network restart” command, the whole routing descriptions will be lost. If it occurs please run these commands.

ifup eth1
route add -net 91.188.194.0/24 gw 91.188.245.1
Was this article helpful?
Dislike 0
Views: 12