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.
|
 |
09-15-2012, 09:04 AM
|
#1
|
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:
|
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.
|
|
|
09-15-2012, 10:25 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Rep: 
|
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.
|
|
|
09-15-2012, 10:34 AM
|
#3
|
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:
|
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.
|
|
|
09-15-2012, 10:54 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Rep: 
|
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.
|
|
|
09-15-2012, 10:55 AM
|
#5
|
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:
|
Thanks, man! I think that should do it 
|
|
|
09-16-2012, 03:44 PM
|
#6
|
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:
|
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.
|
|
|
10-02-2012, 12:51 PM
|
#7
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 03:09 AM.
|
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
|
|