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
 

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

reply to topic new topic new poll
Topic: dsl won't keep netcard config< Next Oldest | Next Newest >
sarge Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: May 11 2005,17:43 QUOTE

How do i set things up so that dsl remembers my lan setup on boot?  I have done a hdd install of dsl syslinux 1.1

It's kind of a pain in the butt always having to re-set the config. ;)

Thanks for your time! :)
Back to top
Profile PM 
sarge Offline





Group: Members
Posts: 6
Joined: May 2005
Posted: May 13 2005,08:06 QUOTE

After a whole lotta poking around, I figured out the solution myself...here's how I did it (hope this helps someone else too)

NOTE: this is for connecting your machine to a LAN, not directly to the internet.

1. open the file /opt/bootlocal.sh

2. at the end of the existing entries, on a new line, add the following (DO NOT INCLUDE THE ANGLE-BRACKETS) :

ifconfig eth0 <your desired lan IP> netmask <your lan netmask> broadcast <your broadcast IP> up

EXAMPLE:
ifconfig eth0 192.168.1.33 netmask 255.255.255.0 broadcast 192.168.1.255 up

3. on the next line, add this (DO NOT INCLUDE THE ANGLE-BRACKETS) :

route add default gw <your lan gateway IP>

EXAMPLE:
route add default gw 192.168.1.1

4. Save the file and reboot.

You should be connected to your lan on bootup now.

NOTE: if this gives you problems with your system, reboot, and use this at the "BOOT:" prompt...

dsl 2

that will take you into text mode only.  use the command "sudo nano /opt/bootlocal.sh" to open the file in an editor, then add a "#" (no quotes) at the start of the two lines you added.  Exit the editor (you'll be asked to save) and reboot.
Back to top
Profile PM 
1 replies since May 11 2005,17:43 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: dsl won't keep netcard config

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