|
|
| Ligne 16 : |
Ligne 16 : |
| [https://wiki.blaxeenprod.com/BENPERSO/files/xen_doc/Xen-reseau2.htm Xen le reseau bis] | | [https://wiki.blaxeenprod.com/BENPERSO/files/xen_doc/Xen-reseau2.htm Xen le reseau bis] |
|
| |
|
|
| |
| === Trucs & astuces réseau ===
| |
|
| |
| ==== Interfaces sans ip ====
| |
|
| |
| Sur l'hyperviseur : Lorsque l'on configure des interfaces sans ip (par exemple avec des vlan ou pour etre en bridge), elles ont beau être configurées, elles ne monteront pas.
| |
| Il faut les rajouter dans /etc/rc.local ainsi que les routes associées.
| |
| <pre>
| |
| [root@test]cat /etc/sysconfig/network-scripts/ifcfg-eth0.164
| |
| VLAN=yes
| |
| TYPE=Ethernet
| |
| DEVICE=eth0.164
| |
| BOOTPROTO=none
| |
| PEERDNS=no
| |
| ONBOOT=yes
| |
|
| |
| [root@test]cat /etc/rc.local
| |
| ifconfig eth2 mtu 9000
| |
| ifconfig eth3 mtu 9000
| |
| ifconfig eth0 up
| |
| ifconfig eth0.164 up
| |
| ifconfig eth0.165 up
| |
| ifconfig eth0.166 up
| |
| ifconfig eth0.170 up
| |
| ifconfig eth1 up
| |
| ifconfig eth1.166 up
| |
| route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.71.30
| |
| route add -net 172.16.0.0 netmask 255.240.0.0 gw 192.168.71.30
| |
| route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.71.30
| |
| route add -net 192.168.75.96 netmask 255.255.255.248 gw 192.168.68.222
| |
| route add default gw 192.168.68.222
| |
| </pre>
| |
|
| |
|
| [[Catégorie:Virtualisation]] | | [[Catégorie:Virtualisation]] |
Version du 12 septembre 2011 à 10:49