Click to See Complete Forum and Search --> : assigning ip address on boot


CaptainPinko
04-08-2003, 10:49 PM
know that to assign an IP to an iterface you do:

ifconfig eth0 10.0.0.10

but i don't know what start up file to put this in

this is on a non-gui machine

serz
04-08-2003, 11:12 PM
I guess you using Redhat, so.. you can edit your /etc/rc.d/rc.local and add your ifconfig line there, and it will load when your system boots.

CaptainPinko
04-09-2003, 01:05 AM
actually i found a curses based program that worked fine: /usr/sbin/netconfig

chrism01
04-09-2003, 09:32 AM
The file (RH) is /etc/sysconfig/network-scripts/ifcfg-etho
:)

DMR
04-09-2003, 05:49 PM
Originally posted by chrism01
The file (RH) is /etc/sysconfig/network-scripts/ifcfg-etho
:) Yup.

Well, almost... it's ifcfg-eth0, not ifcfg-etho.

;)

chrism01
04-09-2003, 07:12 PM
picky, picky, picky...
just 'cos they're next to each other on the keybd and my typing is iffy... ;)

Magueta
04-09-2003, 11:37 PM
As long as we're being picky ;)

It's actually /etc/sysconfig/network-scripts/ifcfg-eth0

not

/etc/sysconfig/network-scripts/ifcfg-etho

Joe :)

Sorry for the lame post, I wanted to play too.

DMR
04-10-2003, 12:25 AM
Originally posted by chrism01
picky, picky, picky...
just 'cos they're next to each other on the keybd and my typing is iffy... ;) Hey crism01,

If I can post correct info when I'm roaring drunk, you should at least be able to figure out which key is which on your keyboard.

:D:D

chrism01
04-10-2003, 05:59 AM
y; but if you look at the num of posts, you'll see that you've had a LOT more practice ;)

DMR
04-10-2003, 03:56 PM
Originally posted by chrism01
y; but if you look at the num of posts, you'll see that you've had a LOT more practice ;) ...and a LOT more beers.

mmm, beer.

:D