View previous topic :: View next topic |
Author |
Message |
corey_ n00b
Joined: 30 Nov 2002 Posts: 49
|
Posted: Thu Dec 19, 2002 2:07 am Post subject: where to add these two lines... |
|
|
Everytime I reboot, I must type the following two lines:
/sbin/ifconfig eth0 192.168.1.10 broadcast 192.168.1.255 netmask 255.255.255.0
/sbin/route add -net default gw netmask 0.0.0.0 metric 1
Where can I add these so I do not have to type them everytime I reboot and want to access my network? |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Dec 19, 2002 2:21 am Post subject: fixing your network config |
|
|
Code: |
vi /etc/conf.d/net
rc-update add net.eth0 default
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
SillyPants Apprentice
Joined: 02 Sep 2002 Posts: 154
|
Posted: Sat Dec 21, 2002 1:28 am Post subject: |
|
|
ok, /etc/conf.d/net has iface_eth0 for ifconfig arguments, but how to you add route arguments? |
|
Back to top |
|
|
rtn Guru
Joined: 15 Nov 2002 Posts: 427
|
Posted: Sat Dec 21, 2002 2:06 am Post subject: |
|
|
SillyPants wrote: | ok, /etc/conf.d/net has iface_eth0 for ifconfig arguments, but how to you add route arguments? |
You probably won't need to. Just set the default gateway setting
at the bottom of that file.
Code: | # For setting the default gateway
#
gateway="eth0/192.168.1.1"
|
--rtn |
|
Back to top |
|
|
SillyPants Apprentice
Joined: 02 Sep 2002 Posts: 154
|
Posted: Sat Dec 21, 2002 2:34 am Post subject: |
|
|
D'oh! Thanks, I completely mssed that line! |
|
Back to top |
|
|
|