LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-23-2024, 12:43 AM   #1
aplelois
LQ Newbie
 
Registered: Feb 2024
Posts: 1

Rep: Reputation: 0
local and external network


Hi,
I have colocation at a datacenter and I have two servers one would be for database and other one to host http server.
I have local ethernet connected to switch so that servers can use ips like 192.168.1.101 to connect to mysql.
I am having a little bit of an issue with servers not being able to ping each other with local ip..
What is it that I am missing here?

Code:
[(01:33 AM)][(root@atf)] [(~)] $ ip route
default via 208.117.37.129 dev eno1np0 proto static metric 100
default via 192.168.1.1 dev eno2np1 proto static metric 101
192.168.1.0/24 dev eno2np1 proto kernel scope link src 192.168.1.103 metric 101
208.117.37.129 dev eno1np0 proto static scope link metric 100 

[(01:33 AM)][(root@site)] [(~)] $ ifconfig
eno1np0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 208.117.37.10  netmask 255.255.255.255  broadcast 0.0.0.0
        inet6 fe80::3eec:efff:fec8:4b00  prefixlen 64  scopeid 0x20<link>
        ether 3c:ec:ef:c8:4b:00  txqueuelen 1000  (Ethernet)
        RX packets 15482764  bytes 20552671448 (19.1 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15477718  bytes 13958702853 (13.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno2np1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.103  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::3eec:efff:fec8:4b01  prefixlen 64  scopeid 0x20<link>
        ether 3c:ec:ef:c8:4b:01  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 8634  dropped 0  overruns 0  frame 1930039
        TX packets 59271  bytes 9698668 (9.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
Old 02-23-2024, 07:58 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
For one thing, you have two default gateways on the first host. That makes no sense in most scenarios, including the one you describe. It shouldn't cause issues within a local network, though.

Other than that there's not much I can say, as you've provided essentially no information about how these servers are connected or configured, other than posting the output from ip route on one host and ifconfig on another.

Please provide the IP addresses and netmasks of the webservers as well as the MySQL database server, and tell us how they are connected.
 
Old 02-24-2024, 02:06 AM   #3
___
Member
 
Registered: Apr 2023
Posts: 140
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
RX packets 0 bytes 0 (0.0 B)
RX errors 8634 dropped 0 overruns 0 frame 1930039
looks like a cable/hardware problem.
 
Old 02-26-2024, 12:13 AM   #4
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Managed switch? Same Vlan, you should be able to see the Arp table and a mac forwarding table for those ports. If you don't have access to the switch or if it is a dumb switch:


On the systems, you can query the pinger with "arp -a" to see if you can see the mac address of the other side. If you see it, then you are being blocked most likely by a client firewall. If you don't see a arp entry, you have a connectivity problem, most likely.
 
  


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
What are the best ways and practices to manage local SSL certificates with my own CA, to get local HTTPS sites like https://testsite.local ? ZhaoLin1457 Slackware 11 02-04-2021 04:15 PM
Linux network architecture - local network vs. LAN network rule LnxNewUser Linux - Newbie 2 11-19-2016 03:49 AM
Can't access external server from local network newuser455 Linux - Networking 7 05-30-2005 12:47 AM
Can't access external server from local network newuser455 Linux - Networking 4 11-26-2004 02:09 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM

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

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