vrack
This commit is contained in:
parent
2b658799f0
commit
c5b0069673
|
@ -153,6 +153,52 @@ iface eth0:0 inet static
|
|||
netmask 255.255.255.255
|
||||
~~~
|
||||
|
||||
## vRack
|
||||
|
||||
Le vRack (1.5) permet de monter un réseau privé ou d'utiliser une plage d'adresses IP publiques. On peut utiliser jusqu'à 4000 vlans.
|
||||
Le trafic passe forcément par eth1 ou eth3 (selon les serveurs).
|
||||
|
||||
Exemple de config avec eth1.100 pour du DRBD, eth1.200 mappé sur br_lan pour un bridge LAN, et eth1 mappé sur br_wan pour un bridge WAN.
|
||||
/!\ Si l'on veut que la machine physique dispose de une des adresses IP publique du VLAN, il faut ajouter une route spécial (type multi-WAN).
|
||||
|
||||
```
|
||||
# echo 200 vrack >> /etc/iproute2/rt_tables
|
||||
```
|
||||
|
||||
/etc/network/interfaces
|
||||
```
|
||||
auto eth1
|
||||
iface eth1 inet manual
|
||||
|
||||
# LAN eth1.100 vRack VLAN 100 for DRBD
|
||||
auto eth1.100
|
||||
iface eth1.100 inet static
|
||||
address 192.168.0.10
|
||||
netmask 255.255.255.0
|
||||
|
||||
# LAN br_lan vRack VLAN 200 for VMs LAN
|
||||
auto eth1.200
|
||||
iface eth1.200 inet manual
|
||||
|
||||
auto br_lan
|
||||
iface br_lan inet static
|
||||
bridge_ports eth1.200
|
||||
address 10.0.0.10
|
||||
netmask 255.255.255.0
|
||||
|
||||
# WAN br_wan vRack no VLAN
|
||||
auto br_wan
|
||||
iface br_wan inet static
|
||||
bridge_ports eth1
|
||||
address IP_VRACK
|
||||
netmask 255.255.255.240
|
||||
## Need to work: echo 200 vrack >> /etc/iproute2/rt_tables
|
||||
post-up ip rule add from IP_VRACK table vrack
|
||||
post-up ip route add default via IP_GW_VRACK dev br_wan table vrack
|
||||
|
||||
```
|
||||
|
||||
|
||||
## IPv6
|
||||
|
||||
L'IPv6 d'un serveur dédié OVH est notée dans le manager sous la forme d'un réseau /64
|
||||
|
|
Loading…
Reference in a new issue