LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-12-2014, 08:22 AM   #1
Bladerox
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Rep: Reputation: Disabled
Shared Internet Connection routing


Hello,
I recently got into Linux and created the following setup:

Mint system with 2 ethernet cards (used as media system),
Windows 8 system connected to Mint system via ethernet.


The Mint system is connected directly to my router.
Since I only have one ethernet connection in my room I use the media system to provide Internet to my Windows system.

I used the networksetting "Share Internet connection" to make this possible.

Now I want to connect with a notebook which is connected to the router via wifi to the Windows system.
Is it possible to insert the windows system into the main network?

If not is it possible to route all packages on a specific port which go to/come from the mint system to the windows system on the same port.

please help me I am getting kind of frustrated right now

Last edited by Bladerox; 02-15-2014 at 03:14 PM.
 
Old 02-12-2014, 01:56 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Assuming this is your setup

(router with wifi) ----- eth0 mint eth1 ---- win8

You could bridge eth0 and eth1. This would make win8 appear to be connected to the router as well.
 
Old 02-13-2014, 04:50 PM   #3
Bladerox
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
This would be awesome
How can I do this and will the firt computer still be in the network? ( or even able to connect to the internet )
Can I have two diffrent ipīs for them?
 
Old 02-14-2014, 09:52 AM   #4
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
yes:

router | set ip via isp's ifex
mint | ip via dhcp
win8 | ip via dhcp

should work smoothly....
 
Old 02-14-2014, 11:46 AM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
I think mint is based on debian so this howto on bridging should work fine for you. It's a pretty straight forward process and an easy setup in the interfaces file so that it happens automatically.

https://wiki.debian.org/BridgeNetworkConnections
 
Old 02-15-2014, 03:10 PM   #6
Bladerox
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Only took me 2 Days (for a total linux newbie this is fast) but finally got it working

Had some really complex designs to make it work but sometimes simpler is better
Otherwise I now "fully" understand networking


In case anyone comes accross with the same problem this is my /etc/network/interface

Quote:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
#IMPORTANT: To make this work properly I had to uninstall network-manager
#do this with apt-get remove network-manager
iface lo inet loopback
#
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
#
auto br0
iface br0 inet static
bridge_ports eth0 eth1 eth2 eth3
address 192.168.2.3
broadcast 192.168.2.255
netmask 255.255.255.0
gateaway 192.168.2.1
dns-nameservers 192.168.2.1
#
post-up route add default gw 192.168.2.1
post-up brctl stp br0 on

Last edited by Bladerox; 02-15-2014 at 03:15 PM.
 
  


Reply



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
shared internet connection fachamix Linux - Networking 2 11-01-2009 05:54 PM
Routing Internet Connection Vapo Linux - Networking 5 04-13-2009 06:27 AM
Using shared internet connection rajthampi Linux - Networking 8 06-09-2008 04:33 PM
shared internet connection zoffmann Linux - Networking 2 06-15-2005 04:51 PM
Internet Connection Routing? MythX Linux - Networking 1 10-20-2003 09:00 PM

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

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