dsl won't keep netcard configForum: Laptops Topic: dsl won't keep netcard config started by: sarge Posted by sarge on May 11 2005,17:43
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.1It's kind of a pain in the butt always having to re-set the config. ;) Thanks for your time! Posted by sarge on May 13 2005,08:06
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. |