Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Help needed configuring internal ips for private connection between web-db servers Details »»
Help needed configuring internal ips for private connection between web-db servers
Version: , by eva2000 eva2000 is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-10-2006 Last Update: Never Installs: 0
 
No support by the author.

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
Quote:
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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
Quote:
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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:A01: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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-10-2006, 06:33 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Code:
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).
Reply With Quote
  #3  
Old 06-10-2006, 07:04 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PS About the charge, an interesting read: http://forums.theplanet.com/viewtopi...t=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.
Reply With Quote
  #4  
Old 06-10-2006, 07:06 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-10-2006, 07:58 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
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

Quote:
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

Quote:
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
Reply With Quote
  #6  
Old 06-13-2006, 06:46 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-13-2006, 08:21 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07047 seconds
  • Memory Usage 2,288KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete