Project

General

Profile

Evolution #6951

nom de l'interface réseau

Added by Emmanuel GARETTE over 9 years ago. Updated over 9 years ago.

Status:
Fermé
Priority:
Haut
Assigned To:
Category:
-
Start date:
Due date:
04/04/2014
% Done:

100%

Estimated time:
4.00 h
Spent time:
Distribution:
EOLE 2.4

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

Related to eole-common - Tâche #7778: En mode conteneur, les vlan/alias ne sont plus disponible Fermé 03/27/2014 06/20/2014
Related to eole-common - Tâche #2986: gestion du bonding Fermé 11/15/2016
Related to Documentations - Tâche #10137: Module Amon : mise à jour de la documentation de l'interface de configuration du module (fin) Fermé 01/16/2015
Related to Documentations - Tâche #10379: Vérifier et améliorer la description des onglets interface-n Fermé 09/09/2014

Associated revisions

Revision f93e73a5 (diff)
Added by Emmanuel GARETTE over 9 years ago

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

Revision 9ca939e7 (diff)
Added by Emmanuel GARETTE over 9 years ago

Ajout des fonctions eosfunc get_zone_name_bridge et get_zone_name (ref #6951)
Possibilité de faire des auto/fill en passant la Config (fixes #6951 @2h)
Mettre macvlan comme methode par défaut (ref #7778)

Revision d4f424d0 (diff)
Added by Emmanuel GARETTE over 9 years ago

ne faire un mandatory_warnings que sur la sous-config creole (ref #6951)

Revision 98872884 (diff)
Added by Emmanuel GARETTE over 9 years ago

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

#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

#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.

Also available in: Atom PDF