Networking :: small netowrk question



if ifup doesnt work try
Code Sample
ifconfig eth0 up


does your server box need to be dhcp??

Brian
AwPhuch

nope, i want it to have a static address, in fact i net card configed it to have one.

when i ifup eth0 then it adopts the static addressing i gave it at the time of install.

ifconfig eth0 up
ifconfig eth0 192.168.1.10 (or whatever)

if you do a ifconfig -a it will show you what you have

you can also create a script to auto-input all this for you

Code Sample
touch /usr/sbin/ethernet.setup

inside that file add
Quote

#!/bin/bash
# setting up eth0 with static ip
ifconfig eth0 up
ifconfig eth0 192.168.1.10 <---change this to whatever ip you want


Then in the /etc/rc5.d/S99localboot put in the command line /usr/sbin/ethernet.setup
You also have to make it executable
Code Sample
chmod 700 /usr/sbin/ethernet.setup


You can either reboot to test or type /usr/sbin/ethernet.setup and it will run it

P.S. "ifconfig --help" gives you the output of what you can set with the ifconfig command

Brian
AwPhuch

thanks for this.

did all you told me to and after a reboot i got a message just above the login prompt saying...

/etc/rc5.d/S99bootlocal: line 4: /usr/sbin/ethernet.setup: permission denied.

i assigned all permissions to the ethernet.setup file just in case (rwxrwxrwx)

hmmm at least you are managing to get some response out of it!

regards.

steve.

Quote (realpc @ Oct. 21 2004,14:43)
thanks for this.

did all you told me to and after a reboot i got a message just above the login prompt saying...

/etc/rc5.d/S99bootlocal: line 4: /usr/sbin/ethernet.setup: permission denied.

i assigned all permissions to the ethernet.setup file just in case (rwxrwxrwx)

hmmm at least you are managing to get some response out of it!

regards.

steve.

is it owned by root or another account?
Code Sample
cd /usr/sbin :  ls -lah

chown root:root /usr/sbin/ethernet.setup


I just tested on mine and it works fine...

Brian
AwPhuch

Next Page...
original here.