LinuxQuestions.org
Review your favorite Linux distribution.
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 11-27-2007, 10:26 AM   #1
nrodri72
LQ Newbie
 
Registered: Nov 2007
Location: New Jersey
Distribution: Red Hat EL 5, SLES 9, Centos 5
Posts: 7

Rep: Reputation: 0
Routing Virtual IP address


Hi everyone.

I have a RHEL 5 system with this configuration:

eth0=192.168.0.10

eth0:1=192.168.1.10
eth0:2=192.168.0.11

I remove the default gw for eth0:1 because I have problems when I mount anothe NFS file system belong to 192.168.0.x vlan.

my routing table showme something like this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.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 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


I know if I use route command I can routing, e g NFS that use 192.168.0.x IP to the 192.168.0.10 and another services to 192,168.1.10.

How can I do this...
Thanks
 
Old 11-27-2007, 03:09 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.

eth0:0 and eth0:1 are two interfaces at relatively high level - everywhere below they're one. It produces problems from time to time, but I don;t think it's your case. The thing is that, when it comes to the gateway, there may be only one default gateway in one routing table. More are possible to enter, but it won't work as expected.

What are you trying to archive?
 
Old 11-29-2007, 09:39 AM   #3
nrodri72
LQ Newbie
 
Registered: Nov 2007
Location: New Jersey
Distribution: Red Hat EL 5, SLES 9, Centos 5
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Mara for move my question.


This server have 3 different names on DNS, the ETH0 is for Server communication ( NFS, syslog, etc) the ETH0:1 have another hosname on DNS, this is for Client communication (SAP) and ETH0:2 (another hostname for SAP messages).

This is the reason that I need routing through this virtual IPs.

Thanks
 
  


Reply

Tags
routing



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
how to find physical address of kernel virtual address kushneeraj Programming 0 10-20-2006 07:29 PM
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 09:08 PM
Memory Mapping (same physical address = virtual address) skd.tech Linux - Kernel 7 07-24-2006 11:13 PM
Routing in a Virtual Environment (Red Hat 9) rookiepaul Linux - Networking 11 03-17-2006 02:14 AM
Routing Between Virtual Interfaces on Web Server Louie55 Linux - Networking 2 02-20-2004 09:17 AM

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

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