LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-31-2020, 04:36 AM   #1
00x
LQ Newbie
 
Registered: Aug 2018
Distribution: OpenBSD
Posts: 18

Rep: Reputation: 0
routing between interfaces


I am using NetBSD not linux here but I'm pretty sure my problem is in not understanding networking, so the OS should be irrelevant.
I have read the other threads on this, but they didn't help.

Here is a diagram of the network:

Code:
  ||
  ||
[ISP-internet-modem/router]
[      (192.168.0.1)      ]
        ||
        ||
        ||
[(mue0 192.168.0.108) ]
[       NetBSD        ]
[      (ure0 10.0.0.0)]
                ||
                ||
                ||
[      (fxp0 10.0.0.2)]
[       OpenBSD       ]
NetBSD is connected to the ISP modem through it's ethernet port (mue0, ip 192.168.0.108)
NetBSD is connected to OpenBSD through a USB-to-Ethernet adapter (ure0, ip 10.0.0.0) to OpenBSD's ethernet port (fxp0 10.0.0.2)

OpenBSD can successfully ping 10.0.0.0 and 192.168.0.108,
but fails to ping 192.168.0.1 and anything on the internet.
(I have made OpenBSD's default gateway 10.0.0.0, "route add -inet default 10.0.0.0")
I hope to be able to replace OpenBSD with a switch or other computer, so it shouldn't need anything more than a gateway configured, NetBSD should be doing all the work.

I want NetBSD to be able to (route?, bridge?, forward?, proxy?)send traffic from ure0 to mue0.
(I don't understand how OpenBSD can ``see'' mue0's IP of 192.168.0.108 but not mue0's gateway of 192.168.0.1)

I have set
Code:
net.inet.ip.forwarding=1   => /etc/sysctl.conf
gateway_enable="YES"       => /etc/rc.conf
on NetBSD which is (apparently) all that is needed to enable routing.
Firewalls are off on NetBSD and OpenBSD.

I am not sure what the problem is, I don't know much about networking.

Last edited by 00x; 07-31-2020 at 04:40 AM.
 
Old 07-31-2020, 07:15 AM   #2
mredc
LQ Newbie
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 11

Rep: Reputation: Disabled
You do realize that you are using the network address "10.0.0.0" on ure0. I'm not sure about the route add statement but you need to to change "10.0.0.0" on ure0 to a host address in the range of "10.0.0.1 - 10.0.0.254" barring the address "10.0.0.2".
 
Old 07-31-2020, 08:20 AM   #3
00x
LQ Newbie
 
Registered: Aug 2018
Distribution: OpenBSD
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mredc View Post
You do realize that you are using the network address "10.0.0.0" on ure0. I'm not sure about the route add statement but you need to to change "10.0.0.0" on ure0 to a host address in the range of "10.0.0.1 - 10.0.0.254" barring the address "10.0.0.2".
Since I plan on that computer being a router, and that it's IP will be a gateway, and gateways are usually the `bottom' IP, I don't see how it is a problem.

Last edited by 00x; 07-31-2020 at 08:24 AM.
 
Old 07-31-2020, 08:30 AM   #4
mredc
LQ Newbie
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by 00x View Post
Since I plan on that computer being a router, and that it's IP will be a gateway, and gateways are usually the `bottom' IP, I don't see how it is a problem.
You won't be able to use "10.0.0.0". Just try 10.0.0.1. It might save you some headaches.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Routing between 2 interfaces? m4rk0 Linux - Networking 18 03-08-2006 01:08 AM
Having problems routing between two interfaces... stakhous Linux - Networking 8 12-05-2004 06:10 PM
Routing between interfaces? cryptical Linux - Networking 13 08-18-2004 07:29 AM
Routing Between Virtual Interfaces on Web Server Louie55 Linux - Networking 2 02-20-2004 09:17 AM
Problem with routing between interfaces Kostko Linux - Networking 6 12-01-2003 01:47 PM

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

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