Evolution #6951
nom de l'interface réseau
Description
Le nom de l'interface de la carte réseau est différent en mode conteneur/non conteneur.
En non conteneur : eth0
En mode conteneur : breth0
Une variable "nom_zone_ethX" a été mise en place pour gérer les différents ca.
Pour eth0 il existe une autre variable "interface_gw" contenant le nom de l'interface à associé au bridge. Si on veut pouvoir gérer d'autres cas (par exemple bonding).
Il faudrait pour chaque interface 2 variables :
- nom_carte_ethX (par exemple eth0, bond0, pppoe)
- nom_zone_ethX (par exemple eth0, breth0, ...).
Ces variables doivent être calculé dans le dictionnaire Créole 01_network.xml.
Related issues
Associated revisions
Création des variables nom_carte_ethX avec le nom de la carte réseau (eth0, eth1, ... par défaut)
Calcul des variables nom_zone_ethX (ppp0, eth0, breth0 ...)
Ajout des variables zone_is_bridge_ethX pour savoir si l'interface est dans un bridge
ref #6951 @6h
ne faire un mandatory_warnings que sur la sous-config creole (ref #6951)
creole/funcs/master_network_interfaces.py : support des interfaces sans IP (fixes #6951)
History
#1 Updated by Joël Cuissinat over 9 years ago
- Target version changed from Eole 2.4-beta3 to Eole 2.4-RC2
#2 Updated by Klaas TJEBBES over 9 years ago
- Target version changed from Eole 2.4-RC2 to Eole 2.4-RC3
#3 Updated by Joël Cuissinat over 9 years ago
- Due date set to 04/04/2014
- Estimated time set to 4.00 h
#4 Updated by Emmanuel GARETTE over 9 years ago
- Assigned To set to Emmanuel GARETTE
#5 Updated by Emmanuel GARETTE over 9 years ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
Appliqué par commit 9ca939e7af072dd5da314c3ddbb3d4cce0c9bc82.
#6 Updated by Emmanuel GARETTE over 9 years ago
- Status changed from Résolu to À valider
Pas ok.
root@scribe:~# CreoleGet nom_zone_eth0 breth0 root@scribe:~# cat /etc/network/interfaces # Fichier autogénéré par EOLE # Toute modification manuelle sera perdue auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.230.185 netmask 255.255.255.0 broadcast 192.168.230.255 network 192.168.230.0 gateway 192.168.230.254 auto breth0:1 iface breth0:1 inet static address 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 network 192.168.1.0 up test "$(runlevel)" = unknown || service bastion restart up service rsyslog restart
#7 Updated by Emmanuel GARETTE over 9 years ago
- Status changed from À valider to Résolu
Appliqué par commit eole-common:98872884f4d358c802270d31a0f357267458008c.
#8 Updated by Emmanuel GARETTE over 9 years ago
Pour moi c'est mieux :
root@scribe:~# CreoleGet zone_is_bridge_eth0 non root@scribe:~# CreoleGet nom_zone_eth0 eth0 root@scribe:~# CreoleGet nom_carte_eth0 eth0 root@scribe:~# CreoleGet debit_carte_eth0 autoneg on root@scribe:~# cat /etc/network/interfaces # Fichier autogénéré par EOLE # Toute modification manuelle sera perdue auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.230.185 netmask 255.255.255.0 broadcast 192.168.230.255 network 192.168.230.0 gateway 192.168.230.254 pre-up ethtool -s eth0 autoneg on auto eth0:1 iface eth0:1 inet static address 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 network 192.168.1.0 up test "$(runlevel)" = unknown || service bastion restart up service rsyslog restart
root@scribe:~# CreoleGet zone_is_bridge_eth0 oui root@scribe:~# CreoleGet nom_zone_eth0 breth0 root@scribe:~# CreoleGet nom_carte_eth0 eth0 root@scribe:~# CreoleGet debit_carte_eth0 autoneg on root@scribe:~# cat /etc/network/interfaces # Fichier autogénéré par EOLE # Toute modification manuelle sera perdue auto lo iface lo inet loopback auto eth0 iface eth0 inet manual pre-up ip link set $IFACE up post-down ip link set $IFACE down pre-up ethtool -s eth0 autoneg on up /sbin/sysctl -w net.ipv4.conf.eth0.proxy_arp=1 auto breth0 iface breth0 inet static address 192.168.230.185 netmask 255.255.255.0 broadcast 192.168.230.255 network 192.168.230.0 bridge_ports eth0 bridge_fd 2 bridge_hello 2 bridge_maxage 12 bridge_stp off up test "$(runlevel)" = unknown || service bastion restart up service rsyslog restart
#9 Updated by Emmanuel GARETTE over 9 years ago
- Target version changed from Eole 2.4-RC3 to Eole 2.4 Stable
#10 Updated by Philippe Caseiro over 9 years ago
- Status changed from Résolu to Fermé
Le comportement semble correct sur un Scribe 2.4.0.