LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-15-2001, 12:32 AM   #1
Bashkir
LQ Newbie
 
Registered: Mar 2001
Posts: 12

Rep: Reputation: 0

I'm on a school network and the ip isn't static, so how do I find out my ip in linux...? I'm a linux newbie, just running it for a counter-strike server, although it'll probably be a good skill for jobs later if I'm ambitious in learning it..
 
Old 03-15-2001, 05:29 AM   #2
bretthoward
Member
 
Registered: Mar 2001
Location: Klamath Falls
Posts: 62

Rep: Reputation: 15
Finding your IP addy

Try running "/sbin/ifconfig"

You should get an output like the following:
eth0 Link encap:Ethernet HWaddr 00:A0:C9:DB:AB:E6
inet addr:140.211.139.173 Bcast:140.211.139.255
(With more down below this)

ETH0 is the first network card! I didnt show the rest because there are a few network cards in this machine. You will notice an interface called lo at the bottom that is your loopback interface but the value you are looking for is (inet addr:) as you can see at the moment the IP address of my first network card is 140.211.139.173 hope this helps.
 
Old 03-20-2001, 08:18 PM   #3
ejtbrown
Member
 
Registered: Mar 2001
Location: Santa Maria CA USA
Distribution: RedHat 6.0 & RedHat 7.0
Posts: 36

Rep: Reputation: 15
Chances are that your school is using DHCP (Dynamic Host Contiguration Protocol) or BOOTP (I can't remember what this one stands for) which are mostly compatible. DHCP is a newer, slicker version of the same protocol. I know that Linux supports both of these protocols, but there *is* a mini-HOW-TO on DHCP (check http://www.linuxdoc.org).
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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