« REDHAT » : différence entre les versions

De TwisterWiki
Aucun résumé des modifications
Ligne 16 : Ligne 16 :
  ifdown ethx
  ifdown ethx
  ifup ethx
  ifup ethx
* Utilisation d'un VLAN
** créer un fichier ifcfg-ethx.vlan_ID
VLAN=YES
BOOTPROTO=static
ONBOOT=yes
DEVICE=ethx.vlan
IPADDR=172.16.40.150
NETMASK=255.255.255.240
ETHTOOL_OPTS="speed 100 duplex full autoneg off"




[[category:système]]
[[category:système]]
[[category:Linux]]
[[category:Linux]]

Version du 23 juillet 2012 à 12:04


Configuration réseau

Ajout de route spécifique pour chaque interface

  • Création d'un fichier /etc/sysconfig/network-scripts/route-ethx
ADDRESS0=172.16.2.0
NETMASK0=255.255.255.0
GATEWAY0=172.16.1.0
ADDRESS1=xxx.xxx.xxx.xxx
NETMASK1=xxx.xxx.xxx.xxx
GATEWAY1=xxx.xxx.xxx.xxx
  • Activation de la route
ifdown ethx
ifup ethx
  • Utilisation d'un VLAN
    • créer un fichier ifcfg-ethx.vlan_ID
VLAN=YES
BOOTPROTO=static
ONBOOT=yes
DEVICE=ethx.vlan
IPADDR=172.16.40.150
NETMASK=255.255.255.240
ETHTOOL_OPTS="speed 100 duplex full autoneg off"