Setting up the team driver on Debian Sid seems straight forward, and
the links seem to go up without error, but I cannot ping my router IP
address or otherwise connect outside the box. I am no expert in
networking, and am guessing the error may be obvious to someone on the
list, or someone might be able to point me in the right direction to
search for a solution.
To me, it seems this may be a gateway issue as, after setting up the
team driver, route -n gives:
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 myteam0
If I set the ip address of the router connected to the nic on eth0 as
the gateway, route -n gives:
Destination Gateway Genmask Flags Metric Ref
Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 myteam0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 myteam0
But pinging 192.168.0.1 results in "Destination Host Unreachable". If
I try setting a default gateway using myteam0 or eth0, the route
command returns "Unknown host".
After my initial day of failures, I commented out the eth0 and eth1
stanzas in the /etc/network/interfaces file and purged network-manager
to avoid potential problems. The original configuration has the router
connected to eth0 set the ip address of eth0 as 192.168.0.101 through
DHCP.
I tested initially with the Debian Sid libteam packages (v.12) and
then built v.15 from libteam-master.zip source. I have done most of my
testing with the basic commands:
teamd -g -t myteam0 -d
teamdctl myteam0 port add eth0
teamdctl myteam0 port add eth1
ip addr add 192.168.0.101/24 dev myteam0
ip link set myteam0 up
Before running the above commands to start teaming, ip link shows:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
DEFAULT group default qlen 1000
link/ether 50:e5:49:ec:d6:3f brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
DEFAULT group default qlen 1000
link/ether e8:de:27:06:85:d5 brd ff:ff:ff:ff:ff:ff
After running the teaming commands, ip link shows:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
master myteam0 state UP mode DEFAULT group default qlen 1000
link/ether 9e:a4:72:48:1d:f7 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
master myteam0 state UP mode DEFAULT group default qlen 1000
link/ether 50:e5:49:ec:d6:3f brd ff:ff:ff:ff:ff:ff
4: myteam0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP mode DEFAULT group default
link/ether 50:e5:49:ec:d6:3f brd ff:ff:ff:ff:ff:ff
and ip addr shows:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
master myteam0 state UP group default qlen 1000
link/ether 9e:a4:72:48:1d:f7 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
master myteam0 state UP group default qlen 1000
link/ether 50:e5:49:ec:d6:3f brd ff:ff:ff:ff:ff:ff
4: myteam0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP group default
link/ether 50:e5:49:ec:d6:3f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.101/24 scope global myteam0
valid_lft forever preferred_lft forever
I have looked at syslog and see no errors or warnings. It seems
everything is fine as syslog shows:
Jan 4 17:09:56 thor avahi-daemon[3647]: Joining mDNS multicast
group on interface myteam0.IPv4 with address 192.168.0.101.
Jan 4 17:09:56 thor avahi-daemon[3647]: New relevant interface
myteam0.IPv4 for mDNS.
Jan 4 17:09:56 thor avahi-daemon[3647]: Registering new address
record for 192.168.0.101 on myteam0.IPv4.
Jan 4 17:09:57 thor ntpd[3708]: Listen normally on 2 myteam0
192.168.0.101 UDP 123
teamdctl myteam0 config dump
{
"device": "myteam0",
"ports": {
"eth0": {
"link_watch": {
"name": "ethtool"
}
},
"eth1": {
"link_watch": {
"name": "ethtool"
}
}
},
"runner": {
"name": "roundrobin"
}
}
teamdctl myteam0 state view
setup:
runner: roundrobin
ports:
eth1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
eth0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
I am running kernel 3.18.1 x86_64 with the .config:
CONFIG_NET_TEAM=y
CONFIG_NET_TEAM_MODE_BROADCAST=m
CONFIG_NET_TEAM_MODE_ROUNDROBIN=m
CONFIG_NET_TEAM_MODE_RANDOM=m
CONFIG_NET_TEAM_MODE_ACTIVEBACKUP=m
CONFIG_NET_TEAM_MODE_LOADBALANCE=m
Any suggestions appreciated,
J.L. Hill