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: (3) </ [1] 2 3 >/

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

reply to topic new topic new poll
Topic: problems connecting< Next Oldest | Next Newest >
bandito9111 Offline





Group: Members
Posts: 13
Joined: May 2005
Posted: June 07 2005,21:14 QUOTE

I have DSL 1.1 installed.

I am a noobie but have a little knowledge about linux.

I have no problem connecting to internet as long as i run --
netcarcconfig each time i boot into DSL.

I have been looking around to find an automated solution but nothing works. I have looked up manpages of ifconfig, route and other commands but am thoroughly confused

1. How can i automate at boottime the netcard config or ifconfig.
2. Where do i put the script.
i have tried scripting netcardconfig but dosent work.


Here is my static ip specs
Code Sample
Comp IP   192.168.0.40
netmask   255.255.255.0
Broadcast 192.168.0.255
Router      192.168.0.1
DNS #1     192.168.0.1
DNS #2     216.148.227.68


Any scripts,websites or help is appreciated.

P.S. Dont ask if my card isnt working as it is.... and NO I cant/wont use DCHP for security and other networking aspects. SORRY

Thank You
Dan
Back to top
Profile PM 
hawki Offline





Group: Members
Posts: 175
Joined: Jan. 2004
Posted: June 09 2005,02:09 QUOTE

Hi
I use one DSL system as a gateway/firewall.  It has to have the same address every time I boot.  To do that I booted with the nodhcp option.  I used Netcardconfig to set up my ethernet card and got everthing working.  Then I saved the config for the next boot by doing the following.

Add the following lines to the file named /home/dsl/filetool.lst

opt/bootlocal.sh
etc/sysconfig/network-scripts/ifcfg-eth0
etc/network/interfaces

Then added the following line to /opt/bootlocal.sh

ifup eth0

The last thing is to configure the backup/restore location using the DSL control panel.

Now I boot a frugal install with the nodhcp option and the configuration is restored and the interface started every time.

I hope this makes sense and good luck.
Back to top
Profile PM 
hawki Offline





Group: Members
Posts: 175
Joined: Jan. 2004
Posted: June 09 2005,12:50 QUOTE

Hi
I just thought of something else.  If you are using static dns addresses you may have to add the following line to /home/dsl/filetool.lst

/etc/resolv.conf

That should backup/restore the nameserver addresses.

good luck
Back to top
Profile PM 
b1ackmai1er Offline





Group: Members
Posts: 115
Joined: June 2005
Posted: June 19 2005,09:17 QUOTE

Hi. That works great and was exactly what I was looking for, except
the /etc/resolv.conf step does not  get restored.

Any suggestions for that?

regards b1m1
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: June 19 2005,11:17 QUOTE

just add it to your /opt/bootlocal.sh as well ..
Here's an example I use on a static connected server.

ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
route add default gw zzz.zzz.zzz.zzz
echo nameserver aaa.aaa.aaa.aaa > /etc/resolv.conf
echo nameserver bbb.bbb.bbb.bbb >> /etc/resolv.conf
ifup eth0

you could also map your nic address in your router config,
then still use DHCP on your lan, AND have a static IP.

73
ke4nt
Back to top
Profile PM 
13 replies since June 07 2005,21:14 < Next Oldest | Next Newest >

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

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: problems connecting

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