[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-06-28 Thread Stéphane Graber
Your setup can't possibly work (and indeed it doesn't). You can't have
two interfaces going to the same network without proper bonding,
especially when you also set both as your default gateway with the same
metric.

What I think you want in your case is some simple bonding of both
interfaces, then add both of your ips to the resulting bond0, this will
give you proper load-balancing between the two interfaces and high
availability.

Look at the ifenslave-2.6 package and it's associated manpage.

** Changed in: ifupdown (Ubuntu)
   Status: Triaged = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-02-10 Thread Daniel Hahler
** Changed in: ifupdown (Ubuntu)
   Status: Incomplete = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-02-09 Thread blue balls
If I disable eth1 with

   ifdown eth1

the results of the same commands are:

--

root@pc1:/# ip link show
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN 
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 state 
UNKNOWN qlen 1000
link/ether 00:18:f3:91:08:9d brd ff:ff:ff:ff:ff:ff
3: eth1: BROADCAST,MULTICAST mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:18:f3:91:11:eb brd ff:ff:ff:ff:ff:ff
4: wlan0: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc pfifo_fast state 
DOWN qlen 1000
link/ether 00:15:af:08:f6:ea brd ff:ff:ff:ff:ff:ff

--

root@pc1:/# ip addr show
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state 
UNKNOWN qlen 1000
link/ether 00:18:f3:91:08:9d brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
inet6 fe80::218:f3ff:fe91:89d/64 scope link 
   valid_lft forever preferred_lft forever
3: eth1: BROADCAST,MULTICAST mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:18:f3:91:11:eb brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global eth1
4: wlan0: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc pfifo_fast state 
DOWN qlen 1000
link/ether 00:15:af:08:f6:ea brd ff:ff:ff:ff:ff:ff

--

root@pc1:/# ip route show
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2 
default via 192.168.1.1 dev eth0  metric 100 

--

root@pc1:/# ip route get 1.2.3.4
1.2.3.4 via 192.168.1.1 dev eth0  src 192.168.1.2 
cache  mtu 1500 advmss 1460 hoplimit 64

--

root@pc1:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.1.0 *   255.255.255.0   U 0  00 eth0
default 192.168.1.1 0.0.0.0 UG10000 eth0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-02-09 Thread blue balls
Tried again today, in Ubuntu 10.04 with all the updates applied, and the
bug is still there.

To Stéphane Graber (stgraber) and Daniel Hahler (blueyed), here are the
outputs of the commands when both eth0 and eth1 are up and the
networking doesn't work:

--

root@pc1:/# ip link show
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN 
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 state 
UNKNOWN qlen 1000
link/ether 00:18:f3:91:08:9d brd ff:ff:ff:ff:ff:ff
3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:18:f3:91:11:eb brd ff:ff:ff:ff:ff:ff
4: wlan0: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc pfifo_fast state 
DOWN qlen 1000
link/ether 00:15:af:08:f6:ea brd ff:ff:ff:ff:ff:ff

--

root@pc1:/# ip addr show
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state 
UNKNOWN qlen 1000
link/ether 00:18:f3:91:08:9d brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
inet6 fe80::218:f3ff:fe91:89d/64 scope link 
   valid_lft forever preferred_lft forever
3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:18:f3:91:11:eb brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global eth1
inet6 fe80::218:f3ff:fe91:11eb/64 scope link 
   valid_lft forever preferred_lft forever
4: wlan0: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc pfifo_fast state 
DOWN qlen 1000
link/ether 00:15:af:08:f6:ea brd ff:ff:ff:ff:ff:ff

--

root@pc1:/# ip route show
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2 
192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.3 
169.254.0.0/16 dev eth1  scope link  metric 1000 
default via 192.168.1.1 dev eth1  metric 100 
default via 192.168.1.1 dev eth0  metric 100 

--

root@pc1:/# ip route get 1.2.3.4
1.2.3.4 via 192.168.1.1 dev eth0  src 192.168.1.2 
cache  mtu 1500 advmss 1460 hoplimit 64

--

root@pc1:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.1.0 *   255.255.255.0   U 0  00 eth0
192.168.1.0 *   255.255.255.0   U 0  00 eth1
link-local  *   255.255.0.0 U 1000   00 eth1
default 192.168.1.1 0.0.0.0 UG10000 eth1
default 192.168.1.1 0.0.0.0 UG10000 eth0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-01-12 Thread Stéphane Graber
Yeah, having two path to the same network without using proper bonding
seems a bit wrong, also having two IPv4 interfaces providing a default
gateway may break the routing table quite badly.

Please attach:
ip link show
ip addr show
ip route show
ip route get 1.2.3.4


This should help understand what's going on.

** Changed in: ifupdown (Ubuntu)
   Status: Confirmed = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-01-12 Thread Daniel Hahler
** Changed in: ifupdown (Ubuntu)
   Importance: Undecided = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2012-01-12 Thread Stéphane Graber
** Changed in: ifupdown (Ubuntu)
   Importance: Medium = Undecided

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2011-09-04 Thread Launchpad Bug Tracker
** Changed in: ifupdown (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2011-09-04 Thread Daniel Hahler
I can confirm this using wlan0 and eth0 on the same network, but assumed
this was normal.

Did it work before 10.04 with the same setup?

Please provide the output of route.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/788301/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2011-05-25 Thread blue balls
Here are the results of doing just that experiment:

root@pc1:/# ifup eth1
root@pc1:/# 
root@pc1:/# nslookup www.yahoo.com
;; connection timed out; no servers could be reached

root@pc1:/# ifdown eth1
root@pc1:/# 
root@pc1:/# nslookup www.yahoo.com
Server: 212.4.64.139
Address:212.4.64.139#53

Non-authoritative answer:
www.yahoo.com   canonical name = fp.wg1.b.yahoo.com.
fp.wg1.b.yahoo.com  canonical name = eu-fp.wa1.b.yahoo.com.
Name:   eu-fp.wa1.b.yahoo.com
Address: 87.248.122.122
Name:   eu-fp.wa1.b.yahoo.com
Address: 87.248.112.181

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2011-05-25 Thread blue balls
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2011-05-25 Thread blue balls
Here is the content of /etc/network/interfaces:

auto eth0
iface eth0 inet static
  address 192.168.1.2
  netmask 255.255.255.0
  nework 192.168.1.0
  gateway 192.168.1.1


auto eth1
iface eth1 inet static
  address 192.168.1.3
  netmask 255.255.255.0
  nework 192.168.1.0
  gateway 192.168.1.1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 788301] Re: Networking fails with two interfaces on the same network

2011-05-25 Thread blue balls
The problem appears on Ubuntu 10.04.

  I also tested this in Ubuntu 11.04 on another computer with two
interfaces (eth0 and wlan0) and the same problem occurs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788301

Title:
  Networking fails with two interfaces on the same network

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs