Hi,
ich möchte den Bonding Treiber im ALB Modus nutzen um Zugriffe auf ein iSCSI Enterprise Target zu load balancen. Das Betriebssystem ist Debian Squeeze. Problem ist, dass die IP Adresse von bond0 von manchen Servern aus erreichbar ist, von anderen aus aber nicht. Ich vermute hier ein Problem mit dem ALB - deswegen bin ich hier
/etc/network/interfaces
/proc/net/bonding/bond0
ifconfig
ethtool
Hier sieht man auch wunderbar wie es von einem Server aus funktioniert, vom anderen aus nicht:
Beide sind ja im selben Subnet, ist also sicher kein routing Problem.
Switch-seitig ist ja meines Wissens nach für ALB nichts weiter notwendig. Der Switch ist ein Linksys SRW2016. Die Server hängt an den Ports 6 und 16 vom Switch:
Hat jemand ne Idee? Mir gehen sie langsam aus
Grüße
serow
ich möchte den Bonding Treiber im ALB Modus nutzen um Zugriffe auf ein iSCSI Enterprise Target zu load balancen. Das Betriebssystem ist Debian Squeeze. Problem ist, dass die IP Adresse von bond0 von manchen Servern aus erreichbar ist, von anderen aus aber nicht. Ich vermute hier ein Problem mit dem ALB - deswegen bin ich hier

/etc/network/interfaces
Code:
root@labstorage:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto bond0
iface bond0 inet static
address 10.10.80.3
netmask 255.255.255.0
network 10.10.80.0
broadcast 10.10.80.255
gateway 10.10.80.1
slaves eth0 eth1
bond-mode balance-alb
bond-miimon 100
bond-downdelay 200
bond-updelay 200
auto vlan55
iface vlan55 inet static
address 10.10.55.3
network 10.10.55.0
netmask 255.255.255.0
broadcast 10.10.55.255
vlan-raw-device bond0
root@labstorage:~#
/proc/net/bonding/bond0
Code:
root@labstorage:~# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1b:21:38:ef:07
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1b:21:38:ec:f4
root@labstorage:~#
ifconfig
Code:
root@labstorage:~# ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:1b:21:38:ef:07
inet addr:10.10.80.3 Bcast:10.10.80.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fe38:ef07/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:772833 errors:0 dropped:0 overruns:0 frame:0
TX packets:1411375 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:460695204 (439.3 MiB) TX bytes:1652308204 (1.5 GiB)
eth0 Link encap:Ethernet HWaddr 00:1b:21:38:ef:07
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:758440 errors:0 dropped:0 overruns:0 frame:0
TX packets:967661 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:459807269 (438.5 MiB) TX bytes:1200737289 (1.1 GiB)
eth1 Link encap:Ethernet HWaddr 00:1b:21:38:ec:f4
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:14393 errors:0 dropped:0 overruns:0 frame:0
TX packets:443714 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:887935 (867.1 KiB) TX bytes:451570915 (430.6 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:205 errors:0 dropped:0 overruns:0 frame:0
TX packets:205 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16824 (16.4 KiB) TX bytes:16824 (16.4 KiB)
vlan55 Link encap:Ethernet HWaddr 00:1b:21:38:ef:07
inet addr:10.10.55.3 Bcast:10.10.55.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fe38:ef07/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:721824 errors:0 dropped:0 overruns:0 frame:0
TX packets:658667 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:447099881 (426.3 MiB) TX bytes:1557374766 (1.4 GiB)
root@labstorage:~#
ethtool
Code:
root@labstorage:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
root@labstorage:~# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
root@labstorage:~#
Hier sieht man auch wunderbar wie es von einem Server aus funktioniert, vom anderen aus nicht:
Code:
mathias@x61t ~ $ ssh 10.10.80.2
...
mathias@lab-pxeboot:~$ ping 10.10.80.3
PING 10.10.80.3 (10.10.80.3) 56(84) bytes of data.
^C
--- 10.10.80.3 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3024ms
mathias@lab-pxeboot:~$ exit
logout
Connection to 10.10.80.2 closed.
mathias@x61t ~ $ ssh 10.10.80.1
...
mathias@gateway:~$ ping 10.10.80.3
PING 10.10.80.3 (10.10.80.3) 56(84) bytes of data.
64 bytes from 10.10.80.3: icmp_req=1 ttl=64 time=0.311 ms
64 bytes from 10.10.80.3: icmp_req=2 ttl=64 time=0.192 ms
^C
--- 10.10.80.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.192/0.251/0.311/0.061 ms
mathias@gateway:~$
Beide sind ja im selben Subnet, ist also sicher kein routing Problem.
Switch-seitig ist ja meines Wissens nach für ALB nichts weiter notwendig. Der Switch ist ein Linksys SRW2016. Die Server hängt an den Ports 6 und 16 vom Switch:
Code:
srw2016# show interfaces status
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
g1 1G-Copper -- -- -- -- Down -- --
g2 1G-Copper Full 10 Enabled Off Up Disabled On
g3 1G-Copper -- -- -- -- Down -- --
g4 1G-Copper -- -- -- -- Down -- --
g5 1G-Copper Full 10 Enabled Off Up Disabled On
g6 1G-Copper Full 1000 Enabled Off Up Disabled On
g7 1G-Copper -- -- -- -- Down -- --
g8 1G-Combo-C -- -- -- -- Down -- --
g9 1G-Copper -- -- -- -- Down -- --
g10 1G-Copper Full 10 Enabled Off Up Disabled Off
g11 1G-Copper -- -- -- -- Down -- --
g12 1G-Copper -- -- -- -- Down -- --
g13 1G-Copper Full 1000 Enabled Off Up Disabled Off
g14 1G-Copper -- -- -- -- Down -- --
g15 1G-Copper Full 1000 Disabled Off Up Disabled Off
g16 1G-Combo-C Full 1000 Disabled Off Up Disabled Off
Flow Link
Ch Type Duplex Speed Neg control State
-------- ------- ------ ----- -------- ------- -----------
ch1 1G Full 1000 Disabled Off Up
ch2 -- -- -- -- -- Not Present
ch3 -- -- -- -- -- Not Present
ch4 -- -- -- -- -- Not Present
ch5 -- -- -- -- -- Not Present
ch6 -- -- -- -- -- Not Present
ch7 -- -- -- -- -- Not Present
ch8 -- -- -- -- -- Not Present
srw2016#
srw2016# show interfaces switchport ethernet g6
Port : g6
Port Mode: General
Gvrp Status: disabled
Ingress Filtering: true
Acceptable Frame Type: admitAll
Ingress UnTagged VLAN ( NATIVE ): 80
Protected: Disabled
Port is member in:
Vlan Name Egress rule Port Membership Type
---- -------------------------------- ----------- --------------------
50 Lab 1 Tagged Static
51 Lab 2 Tagged Static
52 Lab 3 Tagged Static
53 Lab 4 Tagged Static
54 Lab 5 Tagged Static
55 Lab 6 Tagged Static
56 Lab 7 Tagged Static
57 Lab 8 Tagged Static
58 Lab 9 Tagged Static
59 Lab 10 Tagged Static
80 Lab Management Untagged Static
Forbidden VLANS:
Vlan Name
---- --------------------------------
Classification rules:
srw2016#
srw2016# show interfaces switchport ethernet g13
Port : g13
Port Mode: General
Gvrp Status: disabled
Ingress Filtering: true
Acceptable Frame Type: admitAll
Ingress UnTagged VLAN ( NATIVE ): 80
Protected: Disabled
Port is member in:
Vlan Name Egress rule Port Membership Type
---- -------------------------------- ----------- --------------------
50 Lab 1 Tagged Static
51 Lab 2 Tagged Static
52 Lab 3 Tagged Static
53 Lab 4 Tagged Static
54 Lab 5 Tagged Static
55 Lab 6 Tagged Static
56 Lab 7 Tagged Static
57 Lab 8 Tagged Static
58 Lab 9 Tagged Static
59 Lab 10 Tagged Static
80 Lab Management Untagged Static
Forbidden VLANS:
Vlan Name
---- --------------------------------
Classification rules:
srw2016#
srw2016# show vlan
Vlan Name Ports Type Authorization
---- ----------------- --------------------------- ------------ -------------
1 1 ch(1-8) other Required
4 Office g(1-5,7-12,14),ch(1-2) permanent Required
5 WiFi g(1-5,7-12,14),ch(1-2) permanent Required
6 Storage g(1-5,7-12,14),ch(1-2) permanent Required
7 Production g(1-5,7-12,14),ch(1-2) permanent Required
20 DSL g(1-5,7-12,14),ch(1-2) permanent Required
50 Lab 1 g(1-14),ch(1-2) permanent Required
51 Lab 2 g(1-14),ch(1-2) permanent Required
52 Lab 3 g(1-14),ch(1-2) permanent Required
53 Lab 4 g(1-14),ch(1-2) permanent Required
54 Lab 5 g(1-14),ch(1-2) permanent Required
55 Lab 6 g(1-14),ch(1-2) permanent Required
56 Lab 7 g(1-14),ch(1-2) permanent Required
57 Lab 8 g(1-14),ch(1-2) permanent Required
58 Lab 9 g(1-14),ch(1-2) permanent Required
59 Lab 10 g(1-14),ch(1-2) permanent Required
80 Lab Management g(1-14),ch(1-2) permanent Required
srw2016#
Hat jemand ne Idee? Mir gehen sie langsam aus

Grüße
serow