LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to get wifi and rj45 ccess different networks simultaneously (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-wifi-and-rj45-ccess-different-networks-simultaneously-4175596499/)

sumeet inani 12-30-2016 10:23 PM

how to get wifi and rj45 ccess different networks simultaneously
 
i am using ubuntu 64bit
Code:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
$ uname -a
Linux lxuser-ThinkPad-R400 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

i use internet via wifi and access a switch using ethernet port
Code:

root@lxuser-ThinkPad-R400:~# ifconfig
enp0s25  Link encap:Ethernet  HWaddr 00:24:7e:16:87:b6 
          inet addr:10.3.255.102  Bcast:10.3.255.255  Mask:255.255.255.0
          inet6 addr: fe80::979e:ab05:c90d:ff91/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3095 errors:0 dropped:0 overruns:0 frame:0
          TX packets:236 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:257660 (257.6 KB)  TX bytes:29346 (29.3 KB)
          Interrupt:20 Memory:fc000000-fc020000

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:65536  Metric:1
          RX packets:13872 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13872 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:4584707 (4.5 MB)  TX bytes:4584707 (4.5 MB)

wlp3s0    Link encap:Ethernet  HWaddr 00:22:fa:cb:4b:5a 
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::e9d9:941b:1058:b7f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14794 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13273 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14159429 (14.1 MB)  TX bytes:1710646 (1.7 MB)

My wifi works . When I connect ethernet cable then internet (wifi is the access source) does not .
Switch access is on 10.3.255.something and wifi is on 192.168.1.something .
Both networks don't conflict .
How can I get both to work simultaneously ?

Thanks.

PS:link-local does not allow setting ip on an interface .

Shadow_7 12-31-2016 08:07 AM

routing ?

$ route -n
# netstat -r

Basically 3 parts, the interface needs an ip, the firewall needs to allow the use of the interface, and the routing needs to tell it how to use the interface. If it's not one of those three then hardware might be the issue. These 3 parts need to be in play on both ends of any network connection. DHCP normally does most of this setup for you, but it can be done manually.

Shadow_7 12-31-2016 08:08 AM

...

TB0ne 12-31-2016 08:39 AM

Quote:

Originally Posted by sumeet inani (Post 5648413)
i am using ubuntu 64bit
Code:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
$ uname -a
Linux lxuser-ThinkPad-R400 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

i use internet via wifi and access a switch using ethernet port
Code:

root@lxuser-ThinkPad-R400:~# ifconfig
enp0s25  Link encap:Ethernet  HWaddr 00:24:7e:16:87:b6 
          inet addr:10.3.255.102  Bcast:10.3.255.255  Mask:255.255.255.0
          inet6 addr: fe80::979e:ab05:c90d:ff91/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3095 errors:0 dropped:0 overruns:0 frame:0
          TX packets:236 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:257660 (257.6 KB)  TX bytes:29346 (29.3 KB)
          Interrupt:20 Memory:fc000000-fc020000

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:65536  Metric:1
          RX packets:13872 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13872 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:4584707 (4.5 MB)  TX bytes:4584707 (4.5 MB)

wlp3s0    Link encap:Ethernet  HWaddr 00:22:fa:cb:4b:5a 
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::e9d9:941b:1058:b7f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14794 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13273 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14159429 (14.1 MB)  TX bytes:1710646 (1.7 MB)

My wifi works . When I connect ethernet cable then internet (wifi is the access source) does not .
Switch access is on 10.3.255.something and wifi is on 192.168.1.something .
Both networks don't conflict .
How can I get both to work simultaneously ?

Thanks.

PS:link-local does not allow setting ip on an interface .

Sounds very familiar:
http://www.linuxquestions.org/questi...etwork-939878/
http://www.linuxquestions.org/questi...cs-4175504445/

After asking about routing for years, can none of what you've been told before apply?

iPad 01-01-2017 04:37 PM

Hello #Sumeet. I've seen a shorter routing command as required posting on LQ: ip r
I didn't understand link-local, so I checked wiki and saw it is the mysterious 169.254.. which I get when ISP connection not working.
Yes, more perfect posting would avoid the hidden reply above. I didn't want to click on the "Remove user" link on the above post, sorry; above poster has been repeatedly warned to learn basic human NVC and follow LQrules to no avail.

TB0ne 01-01-2017 06:13 PM

Quote:

Originally Posted by iPad (Post 5648991)
Hello #Sumeet. I've seen a shorter routing command as required posting on LQ: ip r
I didn't understand link-local, so I checked wiki and saw it is the mysterious 169.254.. which I get when ISP connection not working.
Yes, more perfect posting would avoid the hidden reply above. I didn't want to click on the "Remove user" link on the above post, sorry; above poster has been repeatedly warned to learn basic human NVC and follow LQrules to no avail.

Before going off on how bad the reply is, you may want to check out the OP's posting history. You may also want to spell the OP's name correctly, if you're so concerned about their feelings, and since you say you don't want to even READ a reply, how can you comment on its content?

If you have a problem with the post, then REPORT IT...if you can, you may also want to point out how it violates the LQ Rules. Your post certainly violates LQ Rules, by violating:
Quote:

Originally Posted by LQ Rules
  • Do not post if you do not have anything constructive to say in the post.
  • When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread.

Please, show us where you've helped the OP with your reply, which didn't address any of their issues. The OP has been asking such questions for FIVE YEARS now; asking them why they can't apply knowledge they've been given multiple times before certainly seems valid.

Shadow_7 01-01-2017 10:15 PM

Quote:

Originally Posted by iPad (Post 5648991)
Hello #Sumeet. I've seen a shorter routing command as required posting on LQ: ip r
I didn't understand link-local, so I checked wiki and saw it is the mysterious 169.254.. which I get when ISP connection not working.
Yes, more perfect posting would avoid the hidden reply above. I didn't want to click on the "Remove user" link on the above post, sorry; above poster has been repeatedly warned to learn basic human NVC and follow LQrules to no avail.

The 169.254.. route is generally setup by avahi. And happens when no other route is available, it's a dummy route, something about audio or some such. I tend to stop avahi and delete that route when I see it. Although generally I avoid installing things (or distros) that install avahi to avoid such issues / quirks / features / innovations / ...

rtmistler 01-02-2017 10:09 AM

@sumeet inani this thread has been closed. Please contact administrators if you wish to provide additional follow-up on this thread topic and it can be reopened. Please also note that starting threads and failing to follow up on discussion points or respond to questions for additional information makes it more difficult for other LQ members to provide you with any assistance. Since you have started other threads, responded to those threads, and marked them solved since this one has been opened, my assumption is that you are not going to provide any update which can help any of Shadow 7, TB0ne, or iPad be of any assistance with your problem. In the future if you find a solution, it is helpful to others who see the same problem to know that you have found a solution and what solved the problem.


All times are GMT -5. The time now is 09:10 PM.