PDA

View Full Version : Help needed configuring internal ips for private connection between web-db servers


eva2000
06-10-2006, 06:02 PM
I'm helping a vB customer with their new servers both dual opteron 265s at theplanet.com.

Problem is theplanet.com didn't setup the internal ips for both servers to communicate privately and theplanet are saying they won't set it up or provide any SLA guarantee for private connections between servers and it's the client's responsibility! Theplanet.com even charged the client a fee for setting up the crossconnection and never did they mention they aren't responsible for setting up the internal ips for the servers to communicate privately!

First time i heard this, as most hosts configure this up ready for the customer to get going AFAIK ?

Anyway, question is anyone know how to do this specificially for RHEL ES release 4 servers with

web server

ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x2 Bcast:xx.xx.xx.175 Mask:255.255.255.240
inet6 addr: fe80::2a0:d1ff:fee4:6b6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:266095315 errors:0 dropped:0 overruns:0 frame:0
TX packets:146608423 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:374469794860 (348.7 GiB) TX bytes:27833859510 (25.9 GiB)
Interrupt:201

eth0:2 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x4 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:3 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x5 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:4 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x6 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:5 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x7 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:6 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x8 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:7 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x9 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:8 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x0 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:9 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x1 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:10 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x2 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:11 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6A
inet addr:xx.xx.xx.1x3 Bcast:xx.xx.xx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth1 Link encap:Ethernet HWaddr 00:A0:D1:E4:6B:6B
inet6 addr: fe80::2a0:d1ff:fee4:6b6b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:209

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:20860 errors:0 dropped:0 overruns:0 frame:0
TX packets:20860 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26559763 (25.3 MiB) TX bytes:26559763 (25.3 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
db server

ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x8 Bcast:xx.xx.xx.191 Mask:255.255.255.240
inet6 addr: fe80::2a0:d1ff:fee4:6a94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1267544486 errors:0 dropped:0 overruns:0 frame:0
TX packets:2237683301 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:113560234808 (105.7 GiB) TX bytes:3280940397767 (2.9 TiB)
Interrupt:201

eth0:0 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x9 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:1 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x0 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:2 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x1 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:3 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x2 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:4 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x3 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:5 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x4 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:6 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x5 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:7 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x6 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:8 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x7 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:9 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x8 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth0:10 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:94
inet addr:xx.xx.xx.1x9 Bcast:xx.xx.xx.191 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201

eth1 Link encap:Ethernet HWaddr 00:A0:D1:E4:6A:95
inet6 addr: fe80::2a0:d1ff:fee4:6a95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:209

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:1719 errors:0 dropped:0 overruns:0 frame:0
TX packets:1719 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9747351 (9.2 MiB) TX bytes:9747351 (9.2 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


Thanks in advance :)

George / eva2000

Marco van Herwaarden
06-10-2006, 06:33 PM
I guess it depends on the hosting company, but it also really surprises me they charge for it.

It would depend a bit on if they are interconnected with a cross-cable, or over a (public/private) switch. If in doubt ask which ip-ranges you can use.

To configure the interface:
ifconfig eth1 netmask 255.255.255.0 10.0.0.1
ifconfig eth1 up
Ofcourse use the wanted IP address instead of 10.0.0.1 and the correct netmask (probably want to use a vrey limiting mask).

Marco van Herwaarden
06-10-2006, 07:04 PM
PS About the charge, an interesting read: http://forums.theplanet.com/viewtopic.php?t=1445&highlight=interconnect

I don't know what plan you are using but they seem to charge a pretty high amount for it.

PS If you ever decide to let them config this, double check with a trace that it is routed correct. I have seen it happen that they said it was all setup, only to have the client find out after some time that all his DB-server <-> Webserver traffic was still going over public connection (and counting to his bandwidth). Took him weeks to get it sorted.

Zachery
06-10-2006, 07:06 PM
I think its like 10 bucks a month last time I checked, considering my client has several cross connects. It should have come setup with the interal ipaddress and card already setup. If not complain, they will get it fixed.

eva2000
06-10-2006, 07:58 PM
thanks guys i managed to set up the internal ip configuration myself and saw a massive drop in inbound traffic from 11GB/hr to ~50MB/hr LOL

on web server did

ifconfig eth1 192.168.0.1 up

cd /etc/sysconfig/network-scripts/

nano ifcfg-eth1

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0

/etc/rc.d/init.d/network restart

on db server did

ifconfig eth1 192.168.0.2 up

cd /etc/sysconfig/network-scripts/

nano ifcfg-eth1

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0

/etc/rc.d/init.d/network restart

Problem was web server had WHM and wiped the existing ips added to WHM (except the main server ip), so all i did was edit on web server at

nano /etc/sysconfig/network-scripts/ifcfg-eth0-range0

add to bottom of existing contents of ifcfg-eth0-range0 the following

IPADDR_START=xx.xx.xx.1x4
IPADDR_END=xx.xx.xx.1x3
CLONENUM_START=0
GATEWAY=xx.xx.xx.1x7
NETMASK=255.255.255.240
NO_ALIASROUTING=yes

/etc/rc.d/init.d/network restart


All working :)

Erwin
06-13-2006, 06:46 AM
ThePlanet was bought over by ev1servers so maybe they are being a bit more tight. When I was with them they didn't charge for this. I demanded it be done and it was done.

Zachery
06-13-2006, 08:21 AM
ThePlanet was bought over by ev1servers so maybe they are being a bit more tight. When I was with them they didn't charge for this. I demanded it be done and it was done.
Ditto,

Altho I'll be looking to start moving some of my older machines to other networks in the near future.