Portal Home > Knowledgebase > Articles Database > Ip Problem


Ip Problem




Posted by bonjurkes, 02-04-2008, 06:24 PM
Hello, I am having a pretty weird problem about ip s at my server. I have a dedi at netdirekt and they gave me like 4 free ips, all of the sites are at main ip, but today i created a new account and also add 1 of those ips to server and i changed ip of the site. After that problem started, when i try to ping site it shows ip of the site (new ip), but it gives request timed out. Also sometimes it says, 89.149.218.46 : Destination host unreachable. If i change the ip of the new site to main ip, site loads well but when i change it to new ip it doesn't load plus gives that ping problem

Posted by paulg1981, 02-04-2008, 06:31 PM
Sounds like the extra IPs they gave you are not properly bound the server. Check the file /etc/sysconfig/network-scripts/ifcfg-eth0-range0 and make sure they are all there. (Note that the main ip shouldn't be in the ip range, it is configured seperately) Try restarting the network and look for errors on startup and then run 'ip addr' to see if they are all bound properly. Report back! :-)

Posted by bonjurkes, 02-04-2008, 06:40 PM
i found the file /etc/sysconfig/network-scripts/ifcfg-eth0 pico it and it contains : DEVICE='eth0' BOOTPROTO='static' BROADCAST='89.149.xxx.255' HWADDR='00:19:99:19:5C:yy' IPADDR='89.149.xxx.241' NETMASK='255.255.255.0' NETWORK='89.149.240.0' ONBOOT='yes' TYPE='Ethernet' 89.149.xxx.241 is my main ip, i also add 89.149.xxx.242 to server without problem but the extra ips they gave me 89.149.xxx.242 - 89.149.xxx.243; 78.yyy.107.29 - 78.yyy.107.33 i am trying to add 78.yyy.107.29, but its causing problem so how should i fix that file so it wont cause any problem

Posted by creaws, 02-04-2008, 07:22 PM
Type as root on your server command "ifconfig" and show us the output. Regards, Creaws.

Posted by bonjurkes, 02-04-2008, 07:29 PM
root@server ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:19:99:19:5C:51 inet addr:89.149.240.241 Bcast:89.149.xxx.255 Mask:255.255.255.0 inet6 addr: fe80::219:99ff:fe19:5c51/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7187310 errors:0 dropped:0 overruns:0 frame:0 TX packets:9245872 errors:574 dropped:0 overruns:0 carrier:0 collisions:796743 txqueuelen:1000 RX bytes:1052711422 (1003.9 MiB) TX bytes:2609460513 (2.4 GiB) Interrupt:225 eth0:1 Link encap:Ethernet HWaddr 00:19:99:19:5C:zz inet addr:89.149.xxx.242 Bcast:89.149.xxx.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:225 eth0:2 Link encap:Ethernet HWaddr 00:19:99:19:5C:zz inet addr:78.yyy.107.29 Bcast:78.yyy.107.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:225 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:266382 errors:0 dropped:0 overruns:0 frame:0 TX packets:266382 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:88218858 (84.1 MiB) TX bytes:88218858 (84.1 MiB)



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read