LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2004, 06:24 PM   #1
tenmiles
Member
 
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43

Rep: Reputation: 15
ip address


i recently added a dlink router between my comp and the modem so that i can have my comp and my xbox on the internet at the same time. however, i need to configure the router so that i can have people still access my site and to do this i need to know my ip address. how do i find it and how do i keep it from changing. thanks
 
Old 11-21-2004, 06:40 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Check your router's configuration page. It should tell you everything you need to know. Your router will have your external public IP address, and it probably has a DHCP server that hands out private IPs to computers on your internal LAN. You should be able to input your Linux box's IP and make sure it always gets the same internal IP, or simply assign your Linux box an IP outside the range given by DHCP on your subnet. You'll want to set up port forwarding between your router and your Linux box -- again, check the router configuration.

As for getting a permanent public IP address, if your ISP uses DHCP you can't unless you upgrAade to a plan with a static public IP.
 
Old 11-21-2004, 10:23 PM   #3
tenmiles
Member
 
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43

Original Poster
Rep: Reputation: 15
i think the last guy got confused, what i need is the ip address of the linux box itself, that is the only thing i dont know. basically the linux equivelent of the ipconfig command from windows
 
Old 11-21-2004, 10:36 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Oh, well in that case ifconfig (one letter difference ). Your initial post was vague, though, as to which IP address you needed. You should be specific as to exactly what you need.
 
Old 11-21-2004, 10:40 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,259

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
/sbin/ifconfig

Use the redhat-network-config script to reconfigure a static IP address. Make sure it isn't in the range that would be assigned by the router's DHCP server.

Configure the router to forward the appropriate ports to the static IP address you assigned.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 10:33 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM
problem to print source address and destination address jooboo Programming 2 11-26-2003 04:24 PM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 09:54 AM


All times are GMT -5. The time now is 05:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration