Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A company I work for has a number of virtual servers with ElasticHosts. They are setup in such a way that eth1 is on a private VLAN connecting them to each other. This is so backups sent between servers are not charged at the same rate as external data transfer.

My understanding of how VLANs and network interfaces work is sketchy at best.

How can I make ssh, rsync, etc. transfer data through the VLAN?

My final solution:

I spent a while trying to figure this out,

For all servers involved, edit /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
HWADDR=YOUR_MAC_ADDR
IPADDR=192.168.0.100
NETMASK=255.255.255.0

Where HWADDR should already be set and the last octate of IPADDR should be different from each other.

Then run, on all servers

/etc/init.d/network restart

After this the IP addresses specified by IPADDR can be used directly as any other IP address.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Just use the IP's from the Private VLAN interfaces. There is nothing special to accomplish this.

share|improve this answer
    
Exactly, this is a fairly typical arrangement. –  Jodie C Jul 1 '11 at 11:35
    
Thanks, don't know why I didn't think of that. Do they need to have IPv4 IPs? Currently eth1 only displays IPv6 IPs. –  Annan Jul 1 '11 at 11:54
    
@Annan You should assign IPv4 IP's unless you are doing with ipv6 ;) –  Thomas Berger Jul 1 '11 at 11:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.