Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-23-2014, 05:31 PM
|
#1
|
LQ Newbie
Registered: Aug 2014
Posts: 3
Rep:
|
ifconfig experts needed
Hello,
I'll describe my problem as clear as possible.
1. I've got a laptop, connected by Wifi to my home router - interface name: en0.
2. I've got a PC which I cannot connect by LAN cable to the router, nor by Wifi.
3. Currently, the PC is connected by LAN cable to the laptop, and seeks the internet from it (the laptop shares the internet that it gets from the home router to the PC) - interface name: bridge100 (on the laptop).
The problem:
The PC is disconnected from the home router's local network, meaning that every device that is connected directly to the router, cannot see the PC as a local network client.
This is because the laptop shares the internet by opening a new local network of his, with different IP range and somehow shares the internet from the home router.
My goal:
To connect the PC with the same current physical connection BUT as a home router's client and not the laptop's local network client.
The home router works with this IP configuration:
Routers IP: 10.0.1.1
Subnet mask: 255.255.255.0
The laptop's shared network works with this IP configuration:
Routers IP (the laptop IP): 192.168.2.1
Subnet mask: 255.255.0.0
I'm sure that ifconfig offers some functionality that solves this problem, I believe that when I set the interface bridge100 IP configuration to (for example):
Routers IP (the laptop IP): 10.0.1.20
Subnet mask: 255.255.255.0
And set the default getaway to 10.0.1.1 (to the home router), things should be working quite good.
If you've got a solution to my problem, I'll be glad to have it.
If you've got another suggestion that might solve it, I'm willing to hear it.
I do thank you for reading up until here.
Thanks for helping!
|
|
|
08-24-2014, 08:44 AM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,226
|
Are you trying to get an IP automatically from the router using dhcp or do want to set a static address manually?
|
|
|
08-24-2014, 11:38 AM
|
#3
|
Senior Member
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982
|
I would just go buy a network switch from the store, otherwise you'll need more NICs if you want to make your computer into one.
|
|
|
08-24-2014, 05:28 PM
|
#4
|
LQ Newbie
Registered: Aug 2014
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by metaschima
I would just go buy a network switch from the store, otherwise you'll need more NICs if you want to make your computer into one.
|
What do you mean by more NICs ?
I have a Wifi NIC and also a LAN NIC in my laptop. that should be enough to do the trick isn't it?
|
|
|
08-24-2014, 06:47 PM
|
#5
|
Senior Member
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982
|
|
|
|
All times are GMT -5. The time now is 03:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|