LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Concurrent access to multiple Networks. (https://www.linuxquestions.org/questions/linux-networking-3/concurrent-access-to-multiple-networks-4175414572/)

cov 07-03-2012 12:43 AM

Concurrent access to multiple Networks.
 
I have a 3G dongle plugged in to access the Internet and a wireless LAN to allow access to this computer from elswhere on the wireless network.

Code:

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:xxx.xxx.xxx.xxx  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:31813 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26265 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:29531293 (29.5 MB)  TX bytes:2746482 (2.7 MB)

usb0      Link encap:Ethernet  HWaddr 02:50:f3:00:00:00 
          inet6 addr: fe80::50:f3ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:917 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:233107 (233.1 KB)

wlan0    Link encap:Ethernet  HWaddr 74:e5:0b:cd:48:10 
          inet addr:10.0.0.28  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::76e5:bff:fecd:4810/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:922 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1191 (1.1 KB)  TX bytes:81745 (81.7 KB)

The problem is that I cannot connect to the Internet if the wlan is up, but once I disconnect, Internet access is restored.

GreggT 07-03-2012 04:17 AM

curious - does unplugging your router & plugging it back in (while wlan is connected) work? So in other words, is it trying to access the internet through wlan instead of its normal route?

cov 07-03-2012 09:43 AM

Rebooting the wireless access point makes no difference.

Code:

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:xxx.xxx.xxx.xxx  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:1485 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1185 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1403043 (1.4 MB)  TX bytes:175742 (175.7 KB)

usb0      Link encap:Ethernet  HWaddr 02:50:f3:00:00:00 
          inet6 addr: fe80::50:f3ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:165 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:180 (180.0 B)

wlan0    Link encap:Ethernet  HWaddr 74:e5:0b:cd:48:10 
          inet addr:10.0.0.28  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::76e5:bff:fecd:4810/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9456 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:916346 (916.3 KB)  TX bytes:859754 (859.7 KB)

root@Guybrush:/opt/libredwg# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 10.0.0.28 icmp_seq=2 Destination Host Unreachable
From 10.0.0.28 icmp_seq=3 Destination Host Unreachable

Yes, it's obviously trying to connect via the 10.0.0.0 subnet instead of the ppp0 connection....

jefro 07-03-2012 11:04 AM

Gateway address is usually the cause. Only one gateway address is needed.

cov 07-03-2012 11:44 AM

Thank you.

The Gateway setting for the connection was it's own IP.

Once I Deleted the connection and set it up as a Manual IP without a gateway it worked.


All times are GMT -5. The time now is 05:57 AM.