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 01-30-2008, 04:45 AM   #1
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Rep: Reputation: 15
Question setting two i.p. on same RHEL 5 machine.


ok i have this rhel 5 server in our lan . Its ip is 192.168.4.20. We just bought a static ip. Now i want my rhel server to have both the i.p.. So that my branch at Malaysia can download the code via static i.p., while keeping previous i.p.also for my local network. Can any body tell me how to do it. Any nice links would be really helpful.
Thanx in advance
 
Old 01-30-2008, 05:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you define your network topology? you would not want to have a public and private IP on the same NIC, so i would say there's going to be a better solution to what you actually want to do. normally the IP would be held on your firewall and statically natted through.
 
Old 01-30-2008, 07:02 AM   #3
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Original Poster
Rep: Reputation: 15
i created eth0:0 and gave it the static i.p. the one i bought (suppose 167.89.45.6)
while eth0 is 192.168.4.20.
I can ping eth0:0 from lan machines,,but cant ssh or do svn checkout,,it says connection refused on port 22. Slinux and firewall is already disabled. But still ???

So people in my lan will access the rhel5 server for svn checkout as svn co svn://192.168.4.20/file
while people from outside will do svn co svn://167.89.45.6/file.

There are only 20 comps in our network.
 
Old 01-30-2008, 08:25 AM   #4
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
Maybe you've already thought of this and disregarded it for topology reasons, but would adding another NIC to the server makes things more simple for you? Then just assign each NIC their respective IPs?
 
Old 01-30-2008, 08:38 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no no, you don't want another nic... as above, please actually define your topology... how does the internet connect to this network etc..?
 
Old 01-30-2008, 08:58 AM   #6
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Original Poster
Rep: Reputation: 15
the main internet connection connects to a switch. The server and other machines also connect to internet trough this switch. So the server is no different from other machines, in term of internet connection. The only diference is that the serv er has 2 nics,,while other pcs have only one
 
Old 01-30-2008, 10:04 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you must have a firewall right? the internet itself won't just connect directly onto a switch...
 
  


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
Browsing problem on my RHEL-4 machine amitava Red Hat 1 07-13-2007 01:01 PM
DWL-G510 d-link wireless adapter is not supporting my rhel 4.0 ws machine (to much u) rushi_desai952 Linux - Wireless Networking 1 03-31-2007 08:05 AM
Adding RHEL to a Windows XP machine: Having trouble getting ISO disk recognized kanncro Linux - General 5 01-30-2006 05:22 PM
Install Oracle Rac on RHEL 4 on a Dell machine masand Linux - Enterprise 0 01-16-2006 01:00 AM
RHEL not installing on IBM machine !!! logicalfuzz Red Hat 0 12-20-2005 11:31 AM

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

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