Jump to content

How do i connect 192.168.0.0/24 to 192.168.1.0/24?


qeldroma
 Share

Recommended Posts

I've got two NIC's, one per subnet. How do i tell this machine to let each subnet acces the other over this machine?

I looked in the "route" manual, but didn't find the right way for this..

Link to comment
Share on other sites

Your case described and explained.

 

(LDP free publication, http://www.tldp.org/guides.html

mdk used to have a "nag" rpm for this)

 

Linux Network Administrator's Guide

 

From appendix A

Example Network: The Virtual Brewery

...

The Virtual Brewery and the Virtual Winery each have a class C

subnet of the Brewery's class B network, and gateway to each other

via the host vlager, which also supports UUCP connection.

...

 

Chapter 5: Configuring TCP/IP Networking

...

Howto setup vlager et all.

 

(Have not done this yet)

HIH

Link to comment
Share on other sites

This form of routing is only for the machine. Not from one net to the other. The "route" command is only for kernel routing, so the machine with the kernel knows where to put a package.

 

What i need is a way to tell the machine how to send from one net to the other, p.e. 192.168.0.23 wants to ping 192.168.1.14

 

Must i install the "routed"? Or can iptables do this in the way it forwards to the internet?

Link to comment
Share on other sites

Hi

 

Dont know much about routed + to me it seems a large network

overkill solution to a simple network problem.

 

Assuming /etc/hosts, /etc/networks, /etc/resolv.conf

are correctly set on all machines

and all machines on subnet have a correctly set

default gateway an idea:

 

The router/2 nic machine has

/proc/sys/net/ipv4/ip_forward == 1

it's a total blocker if not set to 1

i.e the packets on each subnet are going nowhere else!

Again HIH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...