LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2014, 05:31 PM   #1
johnitravolta
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
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!
 
Old 08-24-2014, 08:44 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,226

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Are you trying to get an IP automatically from the router using dhcp or do want to set a static address manually?
 
Old 08-24-2014, 11:38 AM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 08-24-2014, 05:28 PM   #4
johnitravolta
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
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?
 
Old 08-24-2014, 06:47 PM   #5
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can try 2 things:
1) Set the laptop up as a switch:
http://serverfault.com/questions/221...a-linux-switch
http://www.cyberciti.biz/faq/debian-...th0-eth1-eth2/
2) Set the laptop up as a router, but first make sure your main router can handle this and set it up to do so.
http://www.cyberciti.biz/tips/linux-...-line-etc.html
http://www.yourownlinux.com/2013/07/...as-router.html
 
  


Reply


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
HD hardware failure, dd experts needed. Linux.tar.gz Linux - Hardware 6 12-29-2013 08:31 PM
[SOLVED] Calling all experts... NDISWRAPPER help needed! lpshark Linux - Wireless Networking 14 03-30-2007 02:38 PM
I badly needed your help... spams experts erosszz Linux - Newbie 3 10-25-2006 03:56 AM
Makefile help from experts needed markelo Programming 0 07-23-2006 02:13 PM
awk experts help needed ferreirafm Linux - General 2 07-28-2004 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:07 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