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 09-15-2012, 09:04 AM   #1
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
Two networks on two interfaces


I am setting up LinuxMCE on my home network, and typically the LMCE server wants to be DHCP at 192.168.80.1.

The LMCE box has 2 network cards, and I have a DIR-825 that currently acts as DHCP for the entire network (and wifi AP).

I want to be able to access the internet (especially wirelessly) when/if the LMCE box is off. The current plan goes something like this:
Code:
	ISP modem
	   |
	DIR-825		192.168.20.1 network (DHCP)
	 |   |  
	 /   +		LMCE box gets 192.168.20.99 on eth0
    wifi     |
 	   LMCE		192.168.80.1 on eth1 (DHCP "downstream")
	     |
	     +		192.168.80.x (LMCE network)

How would I proceed to set this up in LMCE (Kubuntu 10.04) on the LMCE box, and what would I need to do to access stuff on the LMCE network from the DIR-825 network (is this only the subnet mask thing)? The DHCP server on LMCE should be active, since the auto-discovery and netboot stuff requires DHCP (AFAIK).

Last edited by Sigg3.net; 09-15-2012 at 09:08 AM.
 
Old 09-15-2012, 10:25 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Your setup is pretty good, although I recommend setting static ip on LMCE eth0.
And make thta an ip outside the DHCP scope on DIR825.

Now to access LMCE network, you need to add a route to it.
You can put it on each computer, or maybe on your DIR825.
That should be all.
 
Old 09-15-2012, 10:34 AM   #3
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Original Poster
Rep: Reputation: 28
Thanks!

Now, imagine I'm a complete *tard, and need easy instructions..

Static ip, check.
Outside scope? That is, have one network 10.0.0.1 and the other 192.168.80.1 (but same subnet mask?)?
Routs in /etc/resolv.conf?

Last edited by Sigg3.net; 09-15-2012 at 10:54 AM.
 
Old 09-15-2012, 10:54 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Oki.

On your DIR825, I believe network & DHCP is already configured.
To add a route to LMCE network:
Browse to DIR825, go to Advanced->Routing
Fill in adress 192.168.80.0, netmasjk 255.255.255.0, gateway <the ip of LMCE eth0> metric=1, Interface will be the LAN interface.

That should be all needed to access LMCE network from "DIR" network.

LMCE I know nothing about, surely there's a network config guide or gui tool to configure that?
You don't need much, just set ip on it's WAN (eth0) and LAN (eth1) and configure DHCP.

That should be all.
 
Old 09-15-2012, 10:55 AM   #5
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Original Poster
Rep: Reputation: 28
Thanks, man! I think that should do it
 
Old 09-16-2012, 03:44 PM   #6
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Original Poster
Rep: Reputation: 28
Hmmm.. for some reason I can only select the WAN interface in Advanced-Routing.
This means that Status-Routing shows:
Code:
Destination IP 	Netmask 	Gateway 	Metric 	Interface 	Type 	Creator
192.168.80.0	255.255.255.0	192.168.80.1	1	INTERNET	STATIC	ADMIN
Seems to be a router issue with the DIR-825 and the current 2.05EU firmware. If you own a DIR-655 you can use this hack: http://forums.dlink.com/index.php?ac...e;topic=6422.0
See also: http://lizzi555.dyndns.org/655/StaticRoute.html

But it doesn't work on DIR-825 (uses asp), so I'll probably have to flash it to dd-wrt :P

Last edited by Sigg3.net; 09-18-2012 at 01:26 PM.
 
Old 10-02-2012, 12:51 PM   #7
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Original Poster
Rep: Reputation: 28
Actually, the DIR-825 did the work beautifully w/o having to change firmware!

I was not able to ping from the machine writing this post, but I was able to ping from the LMCE machine and back. It turned out the firewall was enabled by default (good thing), and did not allow ICMP :P

Marking it as solved.
 
  


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
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 06:22 AM
I am bridging 2 networks, but only want the Bridge machine to see both networks. themrrobert Linux - Networking 1 02-17-2009 12:40 PM
Two network interfaces and two networks Slackovado Slackware 4 05-11-2008 04:09 AM
For laptop - different networks in /etc/network/interfaces, or use network-manager? dmravaet Linux - Wireless Networking 4 03-17-2007 11:42 PM
Switching networks and interfaces? mlg9000 Linux - Laptop and Netbook 0 11-17-2004 10:39 PM

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

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