LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2018, 11:31 PM   #1
abernut
LQ Newbie
 
Registered: Sep 2018
Posts: 1

Rep: Reputation: Disabled
Routing between ETH0 and ETH1


I have a linux server that hosts a website (widgets) for our organization (It was setup by some vendor that is long gone)

The server has two interfaces:
ETH0: 192.1.1.25 /24
ETH1: 10.1.1.25 /24

From the network if I ping the website widgets it translates to 10.1.1.25.

When I go home and launch the VPN I cannot access the site by its name. I can ping it by the name though. However if I type in 192.1.1.25 into the browser I can access the site.

The VPN assigns IPs in the 192.1.200.0/24 subnet.

The routing table looks like:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
192.1.0.0 192.1.1.1 255.255.0.0 UG 0 0 0 eth0
0.0.0.0 10.1.1.85 0.0.0.0 UG 0 0 0 eth1




Thanks for any assistance.

Last edited by abernut; 09-25-2018 at 11:38 PM. Reason: typo
 
Old 10-02-2018, 10:36 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Welcome to LQ.


10.x.x.x and 192.x.x.x are reserved addresses for private networks, I think the other one is 172.16.x.x. All internal networks belong here, and they share their address with countless other internal networks.

I know nothing about your vpn, but I gather you have access to your internal 192.1.x.x from an address on 192.1.x.x. You don't tell us anything's wrong, it's just mystifying. The internet uses ports to identify services. Port 80 is http (browsing). VPNs use many ports depending on type.

You really don't understand much of this, do you? If it's a business, hire/contract someone to maintain the site. Get him/her in and let him explain it to you. If the club is penniless, there's a hard road ahead for somebody.

Last edited by business_kid; 10-02-2018 at 10:43 AM.
 
Old 10-03-2018, 09:46 AM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
The reason you cannot access the server over VPN using the name is because your internal DNS resolves to the 10.x.x.x address. There are several ways to address this so that it will work.
  1. Setup DNS to give out addresses depending on the IP Address that requests them
  2. Allow access to the 10.x.x.x network from the 192.x.x.x network
  3. Add a host file entry for this server into your host file.


Quote:
Originally Posted by business_kid View Post
10.x.x.x and 192.x.x.x are reserved addresses for private networks, I think the other one is 172.16.x.x.
Almost,

10.x.x.x/8
172.16.x.x/12
192.168.x.x/24

Are the reserved IP Address ranges
 
Old 10-04-2018, 04:27 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by lazydog
Almost,

10.x.x.x/8
172.16.x.x/12
192.168.x.x/24

Are the reserved IP Address ranges
I knew it was Class A, B, & C networking officially but I've had a stroke since I grokked this stuff and a little of this is hazy. 10.x.x.x and only /8?
 
Old 10-04-2018, 12:28 PM   #5
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by business_kid View Post
I knew it was Class A, B, & C networking officially but I've had a stroke since I grokked this stuff and a little of this is hazy. 10.x.x.x and only /8?
RFC1918 Page 3.
 
Old 10-04-2018, 02:32 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by lazydog View Post
RFC1918 Page 3.
/Groan
I never realised how much I had grown to hate fixing electronic hardware until I stopped in 2006, and people came after me to do one last job. . .

I never realised how much I hated engineering blurb until I had to read some after I graduated in 2014. Your network standard brought it all flooding back. I had a Math section in my own final paper, analyzing my design and I can't follow it now :-(. I should have googled instead of asking.

Thanks for the reply, nevertheless
 
Old 10-04-2018, 05:57 PM   #7
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You are welcome. I'm just here to help those who ask for it and I can.
 
Old 10-05-2018, 04:31 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
lazydog, we've kinda hijacked Abernut's thread with our(my) waffling.

Quote:
Originally Posted by Abernut
The server has two interfaces:
ETH0: 192.1.1.25 /24
ETH1: 10.1.1.25 /24
lazydog has highlighted the Private Address range. Unless you're employed in BBN Communications in Cambridge, England, you shouldn't be using that (192.1.1.25) IP in case it gets to the outside world, where it is registered and will get redirected to BBN Communications. That could certainly affect your routing issues! BBN may even view it as spam, or an attack. Use 192.168.1.25 instead - that's private.

Make that change if you're not the registered owner of 192.1.1.25, and see what effect that has on your routing issues.
 
Old 10-31-2018, 11:31 AM   #9
mattypul
LQ Newbie
 
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
From where will I get a new packet tracer for this ???
 
Old 10-31-2018, 12:23 PM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Welcome to LQ, mattypul

Post a new thread for a new question pls. That offers you the choice to "Check for similar threads." You should do that, in case your query is already answered. This_Tutorial offers a good idea of what to include. Do not use words like 'this' 'that' 'it' but be explicit in naming things and don't presume we can guess. Don't tell us it fails without giving the error, even if it means nothing to you.
 
  


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
routing traffic through eth0 and eth1 wizbit Slackware 8 11-03-2017 06:40 PM
Network Routing from eth0 to eth1 SernOne Linux - Networking 5 10-17-2012 05:21 PM
Routing traffic of eth1 to eth0 mjmohebbi Linux - Networking 5 06-24-2012 03:44 AM
eth1 on second NIC stops routing on eth0 BethR Linux - Networking 9 01-30-2008 08:51 AM
Internal Routing eth1 to eth0 Dataforce Linux - Networking 3 04-02-2004 09:41 AM

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

All times are GMT -5. The time now is 09:23 AM.

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