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: Lose connectivity to the net after reboot< Next Oldest | Next Newest >
pcdoctor Offline





Group: Members
Posts: 52
Joined: Mar. 2008
Posted: April 19 2008,08:12 QUOTE

I'm used to using ubuntu/kubuntu so DSL is a little new to me.

I have this in my \etc\network\interfaces file

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

auto eth0
iface eth0 static ip
address 192.168.0.2
netmask 255.255.255.0
sudo eth0 autoneg off speed 100 duplex full

I have to type these three commands in order to get my internet connection working after a reboot.  This pc is sharing the internet with another one, at least until I give it to my cousin.  Once I give the pc to my cousin, it will be connected to a router.

Here are my three commands that I type in the terminal:

ifconfig eth0 192.168.0.2
route add default gw 192.168.0.1
echo nameserver 192.168.0.1 > /etc/resolv.conf

I've even done a sudo /etc/init.d/networking restart but nothing works until I type the three lines in.
What file do I need to modify so that my internet connection works after reboot and/or restart?
Basically, what can I do so that I don't have to issue the three commands above all the time?  
thx.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: April 19 2008,09:36 QUOTE

How to manually assign a static ip is a  common question with answer in the wiki; place your commands in /opt/bootlocal.sh.

Or better yet use the gui tool provided in DSL which does this for you.
Back to top
Profile PM WEB 
pcdoctor Offline





Group: Members
Posts: 52
Joined: Mar. 2008
Posted: April 19 2008,12:14 QUOTE

thx. (as always)
Back to top
Profile PM 
2 replies since April 19 2008,08:12 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Lose connectivity to the net after reboot

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