nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux Networking Static Routing

This is a discussion on Linux Networking Static Routing within the Linux software forums, part of the Linux Getting Started category; Hello to all. I have a problem: i have 2 networks and 1 server connected to both of them. i ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2009, 06:51 PM
Junior Member
User
 
Join Date: Apr 2009
OS: Ubuntu Studio
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jeyB7even is on a distinguished road
Angry Linux Networking Static Routing

Hello to all.
I have a problem:
i have 2 networks and 1 server connected to both of them. i need to set the routing on server to allow the computers from one of the networks to ping (to see) the other computers from the another network.

Any idea?
Thanks
Reply With Quote
  #2 (permalink)  
Old 04-17-2009, 12:51 AM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Posts: 592
Thanks: 61
Thanked 75 Times in 68 Posts
Rep Power: 9
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

You can add a route to a linux machine using the following command. Of course change the IP addresses to match the second network that you are trying to ping.

Code:
route add -net 67.72.16.0 netmask 255.255.255.0 gw 10.4.20.130 dev eth0
Jaysunn
Reply With Quote
  #3 (permalink)  
Old 04-17-2009, 04:27 AM
Junior Member
User
 
Join Date: Apr 2009
OS: Ubuntu Studio
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jeyB7even is on a distinguished road
Red face Thx

Thanks a lot.
But as i know i have to change in some files in "1" some values .....what was my teacher trying to tell me?

Thx
Reply With Quote
  #4 (permalink)  
Old 04-17-2009, 10:27 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,658
Thanks: 11
Thanked 237 Times in 177 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to setup static routing. Try one of the following as per your distro (above route command also works, but if you reboot the box, it will forget the routing info):
  1. Red Hat Linux Static Routing Configuration
  2. FreeBSD Static Routing Configuration
  3. Configure static routes in Debian or Red Hat Linux systems
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
linux , networking , route


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Best way to edit static routes in linux? gmcmilla Networking, Firewalls and Security 1 03-13-2009 05:00 AM
linux networking shanthiavari Linux software 1 06-17-2008 11:18 PM
Static ip address in Ubuntu Linux howto raj Networking, Firewalls and Security 0 01-18-2007 04:18 AM
ubuntu linux start, stop, restart networking toor Linux software 3 07-17-2006 12:32 PM
Static Route in Linux, permanent puppen Linux software 3 04-13-2006 10:06 PM


All times are GMT +5.5. The time now is 07:02 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38