IP on Ubuntu

Discuss anything about technology or computers here, other than programming.

IP on Ubuntu

Postby zeep on Mon Jul 10, 2006 9:01 pm

When you are on Ubuntu, how do you determine your internal IP? Ex. 192.168.0.1
I need this to setup psybnc to allow a port through my router, it needs the computer that the port wants to access... I could probably Google it but I was on the forums anyway! Smile
I'm sorry I'm very new to Linux and still need to learn the basics.
Thanks
Image
Happiness is like peeing your pants. Everyone can see it, but only you can feel the warmth.
zeep
Regular
Regular
 
Posts: 112
Joined: Sun Jan 08, 2006 8:09 pm
Location: Edmonton, Alberta

Postby daddy2k on Mon Jul 10, 2006 9:03 pm

you open a shell and type in "ifconfig"
there you see it under eth0
daddy2k
Contributer
Contributer
 
Posts: 32
Joined: Mon Jul 10, 2006 3:14 pm
Location: Germany

Postby zeep on Mon Jul 10, 2006 9:19 pm

daddy2k wrote:you open a shell and type in "ifconfig"
there you see it under eth0



thanks alot Very Happy
Image
Happiness is like peeing your pants. Everyone can see it, but only you can feel the warmth.
zeep
Regular
Regular
 
Posts: 112
Joined: Sun Jan 08, 2006 8:09 pm
Location: Edmonton, Alberta

keep in mind...

Postby bat on Tue Jul 11, 2006 12:23 am

Keep in mind that if you have more than one nic card in your box, you will have to look for eth1 2 etc.
Failure is not an option, it comes bundled with your microsoft products.
bat
Regular
Regular
 
Posts: 86
Joined: Tue Jul 04, 2006 2:10 am
Location: canada

Postby s41ted on Tue Jul 11, 2006 2:46 am

daddy2k wrote:you open a shell and type in "ifconfig"
there you see it under eth0


In some distros (ie SUSE) ifconfig is not in the default path. You have to type "/sbin/ifconfig"
-mmm s41ty
s41ted
Contributer
Contributer
 
Posts: 26
Joined: Fri Jul 07, 2006 12:10 pm
Location: Adelaide, Australia

Postby tasosos on Tue Jul 11, 2006 9:14 am

In slackware it's the same /sbin/ifconfig or just login as root and then ifconfig is going to work.This happens because the drectory /sbin is not in the $PATH variable.
Image
tasosos
Contributer
Contributer
 
Posts: 50
Joined: Sun May 28, 2006 10:39 am
Location: Greece-Ioannina

Postby Jeed on Thu Jul 13, 2006 4:17 pm

easy way that works on most distros (definarely on ubuntu)
is type
'ip route'

and the first line ip you see if yours and the second lines ipwould be the routers.
Jeed
Contributer
Contributer
 
Posts: 22
Joined: Tue Jun 27, 2006 11:35 pm
Location: area 52 , also known as north devon UK

Postby Tim on Fri Jul 14, 2006 11:48 am

That actually won't work on alot of distros as 'ip' is part of a (relatively) new pack of networking tools. Quite a few of the more "hard" distros don't include it as default at this stage, however its obscenely easy to install and its actually quite a good set of routing tools.
User avatar
Tim
root
root
 
Posts: 736
Joined: Thu Mar 10, 2005 6:31 am
Location: Australia

Postby zeep on Fri Jul 14, 2006 5:53 pm

Alright thanks for all your help Very Happy
Image
Happiness is like peeing your pants. Everyone can see it, but only you can feel the warmth.
zeep
Regular
Regular
 
Posts: 112
Joined: Sun Jan 08, 2006 8:09 pm
Location: Edmonton, Alberta


Return to Technology

Who is online

Users browsing this forum: No registered users and 2 guests

cron