Click to See Complete Forum and Search --> : wack-a-newb: please help


oldbenway
06-19-2002, 04:20 PM
Hello-
Installing text-only Redhat 7.3, and I am having a bit of difficulty. I did an FTP install (so I know my NIC is working fine under RH). Now I boot and login, I have no way of telling what my IP is. I can't find any good online how-to reference either.
I am runnung a minimum linux install in order to learn apache/sql/php etc.
Thanks in advance!

Icarus
07-01-2002, 03:28 PM
As root type "ifconfig" to display your network information. You should have something under eth0, but if you don't that means you'll need to setup your network...

netconfig is good for that.

element-x
07-02-2002, 12:27 PM
This may be a bit much but...


#!/bin/bash
IFCONFIG=`which ifconfig`
EXT_INTERFACE="eth0"
IP=`$IFCONFIG $EXT_INTERFACE | grep inet | cut -b 21-34`

echo $IP
exit 0

DMR
07-03-2002, 01:42 AM
Originally posted by element-x
This may be a bit much but...


#!/bin/bash
IFCONFIG=`which ifconfig`
EXT_INTERFACE="eth0"
IP=`$IFCONFIG $EXT_INTERFACE | grep inet | cut -b 21-34`

echo $IP
exit 0
element-x,

You're right, that is a bit much...

:D