Got it

Problem with connecting to Router in eNSP from CentOS

Latest reply: Jan 22, 2016 10:49:15 2932 4 1 0 0

Hi everyone. I've stucked with some specific problem.
I have eNSP installed on Windows Server 2008 R2. On eNSP there is Router, connected through cloud to this host's machine adapter (VirtualBox or LAN). I need to get connection to this Router from another machine with CentOS 7 and vice versa. CentOS's machine in the same network as Windows machine (they are pinging each other). The Router is also available to ping Windows adapter to which it's connected through Cloud.
To do this i tried to configure Route Table on Windows and CentOS, but it doesn't help.
What I've done:
1) set for Windows route which connects CentOS's IP through LAN interface executing
route add <CentOS_IP> mask 255.255.255.0 <Windows_IP>
2) set for CentOS route which connects Router's IP through eth0 executing
ip route add <Router_IP>/24 via <CentOS_IP>
But still it's not pinging from Router to CentOS and conversely.
At CentOS I also tried to configure same route (gateway) in /etc/sysconfig/static-routes or /etc/sysconfig/network-scripts/route-eth0 files, but it doesn't help.

File: /etc/sysconfig/network-scripts/route-eth0

GATEWAY0=<Windows_IP>
NETMASK0=255.255.255.0
ADDRESS0=<Router_IP>


File: /etc/sysconfig/static-routes

any net <Router_IP> netmask 255.255.255.0 gw <Windows_IP> eth0

Even traceroute don't show the first hop. I'll be grateful if someoune tell me what I dou wrong.

  • x
  • convention:

taro
Created Jan 22, 2016 08:14:30

route add <CentOS_IP> mask 255.255.255.0 <Windows_Gateway>??  you can try.
View more
  • x
  • convention:

orlimar
orlimar Created Feb 8, 2021 03:08:48 (0) (0)
 
Yurii Vlasiuk
Created Jan 22, 2016 10:49:15

Reply 2 #

well, I'm trying the same thing but with ubuntu instead of CentOS. on Ubuntu I added
ip route add <Router_IP>/32 via <Windows_Gateway>
on windows:
route add <Ubuntu_IP> mask 255.255.255.0 <Windows_Gateway>
but it still not pinging router. And also the Gateway for Ubuntu (viewed by route command) and Windows is the same.

View more
  • x
  • convention:

orlimar
orlimar Created Feb 8, 2021 03:08:42 (0) (0)
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.