Portál AbcLinuxu, 10. května 2025 08:41

Dotaz: Fedora 18 - bond 802.3ad - network problem

Punny avatar 27.3.2013 15:35 Punny | skóre: 28 | Praha
Fedora 18 - bond 802.3ad - network problem
Přečteno: 381×
Odpovědět | Admin
Zdravim,

Jako vzdy bych Vas rad pozadal o konzultaci :)
Pravdepodobne nastala nekde chyba. Jedna se o komunikaci mezi servery, ktere jsou nastaveny pro link agregaci.
Projeveni chyby:
Server 1: IP 172.24.39.30
Server 2: IP 172.24.39.31
Server 3: IP 172.24.39.29

Servery 1 a 2 jsou pripojeny pomoci link agregace 802.3ad (4 x 1Gb/s).
Vsechny servery dokazi komunikovat s branou 172.24.39.1
Vsechny servery dokazi komunikovat se svetem ven a prijimaji komunikaci (lze se pripojit pres ssh z jine site).
Problem nastava pri komunikaci ve stejne siti a to, ze server 1 a 2 mohou komunikovat spolu, ale s nikym jinym ve stejne siti.
Server 3 muze komunikovat ve stejne siti pouze s adresy, ktere nejsou pripojeny v modu 802.3ad (iLO, iDrac, atd...)

Nastaveni site je:
IP: 172.24.39.29 – 250
Mask: 255.255.255.0
Gateway: 172.24.39.1
Network: 172.24.39.0
Broadcast: 172.24.39.255

Firewall je prozatim vsude vypnut.

vypis cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 500
Up Delay (ms): 0
Down Delay (ms): 0

802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
        Aggregator ID: 1
        Number of ports: 1
        Actor Key: 17
        Partner Key: 1
        Partner Mac Address: 00:00:00:00:00:00

Slave Interface: em1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:b1:1c:12:d5:5a
Aggregator ID: 1
Slave queue ID: 0

Slave Interface: em2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:b1:1c:12:d5:5b
Aggregator ID: 2
Slave queue ID: 0

Slave Interface: em3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:b1:1c:12:d5:5c
Aggregator ID: 3
Slave queue ID: 0

Slave Interface: em4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:b1:1c:12:d5:5d
Aggregator ID: 4
Slave queue ID: 0

Nastaveni ifcfg-emX
DEVICE=emX
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
NM_CONTROLLED=no

Nastaveni ifcfg-bond0 pro Server 2
DEVICE=bond0
USERCTL=no
ONBOOT=yes
BROADCAST=172.24.39.255
NETWORK=172.24.39.0
NETMASK=255.255.255.0
GATEWAY=172.24.39.1
IPADDR=172.24.39.31
DNS1=172.24.37.100
DNS2=10.192.23.16
BONDING_OPTS="mode=4 miimon=500"
NM_CONTROLLED=no


Nenapada Vas, kde by mohla byt chyba?

Vsem dekuji za napady :)
Punny

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

27.3.2013 19:05 Mirek
Rozbalit Rozbalit vše Re: Fedora 18 - bond 802.3ad - network problem
Odpovědět | | Sbalit | Link | Blokovat | Admin
Našel jsem postup, jak jsem to kdysi konfiguroval. Snad ti to pomúže

# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.20
NETWORK=192.168.1.0
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.1
USERCTL=no
BOOTPROTO=none
ONBOOT=yes

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
# doporuceno RH ORACLE
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"

# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

# doporuceno
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"

# vi /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=balance-alb miimon=100

#Zde je možno i specifikovat podel RedHatu pro Oracle

install bond0 /sbin/modprobe bnx2; /sbin/modprobe e1000; \
/sbin/modprobe -i bonding -o bond0 mode=balance-alb \
arp_ip_target=192.168.1.20 arp_interval=200
BONDING_OPTS="mode=active-backup arp_interval=60 arp_ip_target=192.168.1.254"
Kde arp_ip_target by mělo být GATEWAY

# restart serveru

#modprobe bonding; service network restart



Řešení 1× (Punny (tazatel))
Punny avatar 29.3.2013 18:46 Punny | skóre: 28 | Praha
Rozbalit Rozbalit vše Re: Fedora 18 - bond 802.3ad - network problem
Odpovědět | | Sbalit | Link | Blokovat | Admin
problem uz jsem vyresil, dosle k nedorozumeni se spravci cisco switche :))

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.