LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-21-2003, 10:28 PM   #1
cirkut5732
Member
 
Registered: Apr 2003
Posts: 94

Rep: Reputation: 15
IP_address question


hi everyone
what is the command that tells me my ip address?? i know windows XP uses "ipconfig" in the run command line but i dont know what it is in slackware 9.0, im sure you ALL can answer this one!!!!!!
 
Old 04-21-2003, 10:30 PM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
ifconfig eth0 (or whatever your NIC is). I'm pretty sure a plain ifconfig will bring it up as well.
 
Old 04-21-2003, 10:35 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
One to stick in a script would be...

/sbin/ifconfig eth0 | grep "inet addr:" | cut -d" " -f12 | cut -d: -f2

It will return just the IP.
 
Old 04-21-2003, 11:18 PM   #4
cirkut5732
Member
 
Registered: Apr 2003
Posts: 94

Original Poster
Rep: Reputation: 15
so i take it "inet address" means internet address and mask is my subnet...right??? so is my ip address supposed to be different from what WinXP tells me it is?? its only off by a few numbers but still??
 
Old 04-22-2003, 05:02 AM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
if u use dhcp
which assigns ip when your computer boots up..
ip will change from time to time.
 
Old 04-22-2003, 04:09 PM   #6
cirkut5732
Member
 
Registered: Apr 2003
Posts: 94

Original Poster
Rep: Reputation: 15
i use dhcp, but with windows it stays the same even after log off
and reboot. i tried configuring network with static cause i know
i have a subnet and a gateway but that wouldnt work, but ok, id like it to be the same, how would i do that
 
Old 04-22-2003, 04:27 PM   #7
gdrobson
Member
 
Registered: Jun 2002
Location: Ontario, Canada
Distribution: RH8.0
Posts: 65

Rep: Reputation: 15
Quote:
Originally posted by cirkut5732
i use dhcp, but with windows it stays the same even after log off
and reboot. i tried configuring network with static cause i know
i have a subnet and a gateway but that wouldnt work, but ok, id like it to be the same, how would i do that
Talk to your ISP.

I had the same scenario with my ISP, when I boot up Windows 2000 I get one IP address (x.x.x.132), and for Redhat my IP is something different (x.x.x.240). To get around it I bought a cheap 4-port linksys router, which is something I wanted, so it all worked out in the end.

fwiw.
 
Old 04-22-2003, 09:17 PM   #8
cirkut5732
Member
 
Registered: Apr 2003
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks I'll look into one of those!!
 
  


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
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 05:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 02:51 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 04:16 PM
Question 1 Firewall Log Question 2 Network Monitor Soulful93 Linux - Networking 4 08-05-2004 12:05 AM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 03:02 PM


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