mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jarne Cook <jcook@siliconriver.com.au>
To: linux-kernel@vger.kernel.org
Cc: Jarne Cook <jcook@siliconriver.com.au>
Subject: Complicated networking problem
Date: Mon, 28 Feb 2005 14:59:31 +1000	[thread overview]
Message-ID: <200502281459.31402.jcook@siliconriver.com.au> (raw)

Hello all

(I am not subscribed. Please CC me)

Please forgive me if I have posed this message in the wrong place.  I have 
been searching for the answer for days with no resolve.

The question is: 

How do I get eth0 and wlan0 both working together.  

They are both using dhcp to the same simple network.  That's right.  Same 
network.  They both end up with gateway=192.168.0.1, netmask=255.255.255.0.  
But ofcourse they do not have the same IP addresses.

I dont know if this matters but im using ISC's dhclient3.

This is what it looks like when wlan0 is brought up, followed by eth0.
------------------------------------------------------------------------------
i8600:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:11:43:5F:E7:1D
          inet addr:192.168.0.238  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:43ff:fe5f:e71d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:277 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24784 (24.2 KiB)  TX bytes:9278 (9.0 KiB)
          Interrupt:11
------------------------------------------------------------------------------
i8600:~# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:11:F5:0C:D9:A3
          inet addr:192.168.0.202  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:f5ff:fe0c:d9a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1538 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1085 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:203213 (198.4 KiB)  TX bytes:130588 (127.5 KiB)
          Interrupt:7 Memory:faff6000-faff7fff
------------------------------------------------------------------------------
i8600:~# ip rule list
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default
------------------------------------------------------------------------------
i8600:~# ip route list table local
local 192.168.0.238 dev eth0  proto kernel  scope host  src 192.168.0.238
broadcast 192.168.0.255 dev wlan0  proto kernel  scope link  src 192.168.0.202
broadcast 192.168.0.255 dev eth0  proto kernel  scope link  src 192.168.0.238
broadcast 127.255.255.255 dev lo  proto kernel  scope link  src 127.0.0.1
local 192.168.0.202 dev wlan0  proto kernel  scope host  src 192.168.0.202
broadcast 192.168.0.0 dev wlan0  proto kernel  scope link  src 192.168.0.202
broadcast 192.168.0.0 dev eth0  proto kernel  scope link  src 192.168.0.238
broadcast 127.0.0.0 dev lo  proto kernel  scope link  src 127.0.0.1
local 127.0.0.1 dev lo  proto kernel  scope host  src 127.0.0.1
local 127.0.0.0/8 dev lo  proto kernel  scope host  src 127.0.0.1
------------------------------------------------------------------------------
i8600:~# ip route list table main
192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.202
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.238
default via 192.168.0.1 dev eth0
default via 192.168.0.1 dev wlan0
------------------------------------------------------------------------------
i8600:~# ip route list table default
------------------------------------------------------------------------------
i8600:~# iptables-save
------------------------------------------------------------------------------


So.
Is there a way to allow an application which has bound to wlan0 
(192.168.0.202) and an application bound to eth0 (192.168.0.238) both have 
access to the internet at the same time, and not require an application to 
bind to a different local address?

Thanks

Jarne

-- 
Jarne Cook <jcook@siliconriver.com.au>
Siliconriver.com.au

             reply	other threads:[~2005-02-28  4:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-28  4:59 Jarne Cook [this message]
2005-03-01  2:02 ` Valdis.Kletnieks
2005-03-01  2:35   ` Dmitry Torokhov
2005-03-02  3:24     ` Jarne Cook
2005-03-02  3:27     ` Jarne Cook
2005-03-02  3:44       ` Kyle Moffett
2005-03-02  4:56       ` Daniel Gryniewicz
     [not found] <3CLkr-2LJ-7@gated-at.bofh.it>
2005-03-01  1:21 ` Robert Hancock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200502281459.31402.jcook@siliconriver.com.au \
    --to=jcook@siliconriver.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome