Voici ce que je souhaite faire :
http://abcd.objectis.net/linux/fedora-et-centos/installation_du_channel_bonding_et_configuration_du_vlan
Ci-dessous les fichiers de conf :
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0 (primary_reselect always)
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:1e:c9:b4:8e:4a
Slave queue ID: 0
Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 3
Permanent HW addr: 00:15:17:2e:d1:d8
Slave queue ID: 0
cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
bond0.1212 | 1212 | bond0
bond0.1232 | 1232 | bond0
Conf du switch :
switchport mode trunk
switchport trunk native vlan 1212
switchport trunk allowed vlan 1212, 1232
Le 07/08/2014 14:26, fr...@jack.fr.eu.org a écrit :
Qu'appelle tu un serveur en "mode vlan" ?
Tu peux donner la config du switch (show int blabla), et du serveur
(cat
/proc/net/bonding/bond0 && cat /proc/net/vlan/config) ?
On 07/08/2014 14:19, max...@infonorac.fr wrote:
Bonjour à tous,
Je rencontre actuellement un problème pour configurer le bonding de
mon
serveur en mode vlan au lieu du mode access. En effet en mode vlan mon
serveur perd toute communication (ping du firewall vers serveur KO)
Ci-dessous ma configuration
OS : CentOS release 6.5
lsmod | egrep '8021q|loop|bond'
bonding 127797 0
8021q 25349 1 bonding
garp 7152 1 8021q
ipv6 318183 41
bonding,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
cat ifcfg-bond0
DEVICE=bond0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
TYPE=Bonding
IPV6INIT=no
BONDING_OPTS="miimon=100 mode=1"
cat ifcfg-bond0.1212
DEVICE=bond0.1212
ONBOOT=yes
BOOTPROTO=static
TYPE=Bonding
VLAN=yes
USERCTL=no
IPADDR=10.31.212.2
PREFIX=24
GATEWAY=10.31.212.254
cat ifcfg-bond0.1232
DEVICE=bond0.1232
ONBOOT=yes
BOOTPROTO=static
TYPE=Bonding
VLAN=yes
USERCTL=no
IPADDR=10.31.232.2
PREFIX=24
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use
Iface
10.31.232.0 0.0.0.0 255.255.255.0 U 0 0
0
bond0.1232
10.31.212.0 0.0.0.0 255.255.255.0 U 0 0
0
bond0.1212
10.25.8.0 0.0.0.0 255.255.248.0 U 0 0
0
eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1005 0
0
eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1006 0
0
bond0
169.254.0.0 0.0.0.0 255.255.0.0 U 1020 0
0
bond0.1212
169.254.0.0 0.0.0.0 255.255.0.0 U 1021 0
0
bond0.1232
0.0.0.0 10.31.212.254 0.0.0.0 UG 0 0
0
bond0.1212
arp -n (le serveur ne récupère pas la mac address du firewall)
Address HWType HWaddress Flags Mask Iface
10.31.212.254 (incomplete) bond0.1212
Si je reconfigure le bonding en mode access tout fonctionne
correctement.
Avez-vous une idée ?
Par avance merci
---------------------------
Liste de diffusion du FRnOG
http://www.frnog.org/
---------------------------
Liste de diffusion du FRnOG
http://www.frnog.org/