LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 12-30-2016, 10:23 PM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 905
Blog Entries: 26

Rep: Reputation: 49
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 .

Last edited by sumeet inani; 12-31-2016 at 12:16 AM. Reason: PS
 
Old 12-31-2016, 08:07 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
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.
 
Old 12-31-2016, 08:08 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
...

Last edited by Shadow_7; 12-31-2016 at 01:38 PM. Reason: duplicate?
 
Old 12-31-2016, 08:39 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,931

Rep: Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022
Quote:
Originally Posted by sumeet inani View Post
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?
 
Old 01-01-2017, 04:37 PM   #5
iPad
Member
 
Registered: Oct 2016
Distribution: iPadLinux
Posts: 34
Blog Entries: 1

Rep: Reputation: 10
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.
 
Old 01-01-2017, 06:13 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,931

Rep: Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022Reputation: 7022
Quote:
Originally Posted by iPad View Post
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.

Last edited by TB0ne; 01-01-2017 at 06:24 PM.
 
Old 01-01-2017, 10:15 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
Originally Posted by iPad View Post
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 / ...
 
2 members found this post helpful.
Old 01-02-2017, 10:09 AM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,354
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
@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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect Linux to two networks simultaneously sivakumarnatarajan Linux - Networking 3 01-15-2015 12:55 PM
manage two wireless networks simultaneously piramiday Linux - Wireless Networking 2 12-18-2013 01:10 PM
Use both networks simultaneously ppp0(usb device) and eth0 vikas027 Linux - Networking 3 05-02-2011 03:01 AM
[SOLVED] Cannot see wifi networks nine9nine Linux - Newbie 8 02-10-2011 04:05 PM
[SOLVED] WICD - connect to 2 different networks simultaneously? ahmadj Slackware 2 07-16-2010 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration