LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Shared Internet Connection routing (https://www.linuxquestions.org/questions/linux-networking-3/shared-internet-connection-routing-4175494648/)

Bladerox 02-12-2014 08:22 AM

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

estabroo 02-12-2014 01:56 PM

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.

Bladerox 02-13-2014 04:50 PM

This would be awesome :D
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?

pingwinowiewc 02-14-2014 09:52 AM

yes:

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

should work smoothly....

estabroo 02-14-2014 11:46 AM

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

Bladerox 02-15-2014 03:10 PM

Only took me 2 Days (for a total linux newbie this is fast) but finally got it working :D :D

Had some really complex designs to make it work but sometimes simpler is better :D
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


All times are GMT -5. The time now is 06:15 AM.