Portal Home > Knowledgebase > Articles Database > Route over the gateway


Route over the gateway




Posted by Miron007, 05-04-2013, 09:01 PM
Hello, I need some help.. "Every server on the same switch is in an VLAN for security reasons, so you have to set an route over the gateway to reach your server near by you." How to achieve this under CentOS? Thank you. Miron

Posted by zzrv, 05-05-2013, 02:58 AM
Have you attempted to reach the server without this? Generally your server will have a default gateway set and it's probable that this will provide the required access.

Posted by centauricw, 05-05-2013, 11:24 PM
A VLAN is nothing more than a security partition on the switch that creates a "Virtual LAN" (hence VLAN). Devices connected to a port in one VLAN cannot communicate with a device in another VLAN on the same switch even if they have matching network settings (for example,both on a 192.168.1.0/24 network). Otherwise, its the same way as any Ethernet switch does. Any device on that VLAN can communicate with any other device on the same VLAN as long as they are in the same IP subnet. Now sometimes this doesn't work because of ARP issues. Mostly I've experienced this with transparent-mode firewalls. In this case, you need to set a specific route to connect to a host even when it's on the same subnet. On Linux, you used the route command: The important piece is that the netmask is set to 255.255.255.255 so the route only works for this one remote system. So that the route will be restored each time the server boots, you can add a static route in the sysconfig networking scripts: http://www.centos.org/docs/5/html/5....ic-routes.html



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.