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 09-24-2007, 04:31 AM   #1
chandru.in
Member
 
Registered: Jun 2005
Posts: 167

Rep: Reputation: 30
Question Providing network services when static IP is assigned to the router


Hi,

My ISP provides me a free static IP. But they have assigned it to the router instead of my system.

I'd like to use the static IP facility to run some network apps to allow things like direct file transfer from friends and stuff. How can I do this when the static IP is still assigned to the router itself?

I know this is not directly related to Linux but since I use Kubuntu 7.04, I thought by posting here, I can get Linux specific configuration steps.
 
Old 09-24-2007, 05:48 AM   #2
hairysocks
Member
 
Registered: May 2002
Location: Thorverton, Near Exeter, Devon, England
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105

Rep: Reputation: 16
It sounds like you need to set up a NAT rule on your router so that requests on specific ports will be directed from the router to your server.
 
Old 09-24-2007, 07:09 AM   #3
chandru.in
Member
 
Registered: Jun 2005
Posts: 167

Original Poster
Rep: Reputation: 30
Unhappy Sorry! Dunno how to do it!!

I'm not very comfortable with networking. My router has a web-based config tool.

Here is the screenshot of the screen where it allows me to add NAT rule entry.

http://www.freewebs.com/onlinechandru/nat%5Fconfig.png

Could you pls explain what I'm supposed to enter in these fields?
 
Old 09-24-2007, 10:00 AM   #4
hairysocks
Member
 
Registered: May 2002
Location: Thorverton, Near Exeter, Devon, England
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105

Rep: Reputation: 16
Looks like you have a D-Link router. There are many help pages on setting up NAT on these routers, but the basics are:

Global Address = your address on the internet (the static address from your ISP)
Local Address = the address of your PC in your local network - probably 192.168.1.2
Destination port = the port for making the connection - e.g. 21 for FTP, 80 for HTTP
Local port = the port that you want this service to be available on your local PC - you may want to set your local FTP server to use port 2121 - it can be any value up to 65535, but ports below 1024 are special and have access restricted to the root user so avoid them.

Hope this helps.
 
Old 09-24-2007, 01:18 PM   #5
chandru.in
Member
 
Registered: Jun 2005
Posts: 167

Original Poster
Rep: Reputation: 30
Thanx for all your help. With the help you provided and some googling I've managed to do what I wanted.
 
Old 09-25-2007, 12:46 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by chandru.in View Post
Hi,

My ISP provides me a free static IP. But they have assigned it to the router instead of my system.

I'd like to use the static IP facility to run some network apps to allow things like direct file transfer from friends and stuff. How can I do this when the static IP is still assigned to the router itself?

I know this is not directly related to Linux but since I use Kubuntu 7.04, I thought by posting here, I can get Linux specific configuration steps.
Hi,

You could reference the Linux Networking HOWTO.

Last edited by onebuck; 09-25-2007 at 12:47 PM.
 
Old 09-25-2007, 01:01 PM   #7
chandru.in
Member
 
Registered: Jun 2005
Posts: 167

Original Poster
Rep: Reputation: 30
That site provides good amount of info on networking. Thanx for that.
 
Old 09-25-2007, 01:39 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by chandru.in View Post
That site provides good amount of info on networking. Thanx for that.
Hi,

Yes, very useful to setup your network.
 
  


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
Home Network with mixed static ip and dynamic ip clients using linksys wrt54gs router ghostrider.002 Linux - Networking 6 05-14-2007 01:01 PM
Set IP address to static from DHCP assigned address jborn Linux - Networking 4 02-02-2007 08:38 PM
Debian eth pulling DHCP even after Static is assigned pork_salad Linux - Networking 2 03-30-2006 06:46 PM
how to config. network settings for having a static ip with a router kkeith Linux - Newbie 2 10-19-2005 05:00 AM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM

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

All times are GMT -5. The time now is 01:10 PM.

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