Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: small netowrk question, ifup< Next Oldest | Next Newest >
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: Oct. 21 2004,18:03 QUOTE

if ifup doesnt work try
Code Sample
ifconfig eth0 up


does your server box need to be dhcp??

Brian
AwPhuch


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
realpc Offline





Group: Members
Posts: 6
Joined: Oct. 2004
Posted: Oct. 21 2004,18:08 QUOTE

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.
Back to top
Profile PM 
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: Oct. 21 2004,18:22 QUOTE

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


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
realpc Offline





Group: Members
Posts: 6
Joined: Oct. 2004
Posted: Oct. 21 2004,18:43 QUOTE

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.
Back to top
Profile PM 
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: Oct. 21 2004,20:20 QUOTE

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


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
9 replies since Oct. 21 2004,09:23 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: small netowrk question

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code