Networking :: problems connecting



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

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.

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

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

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

Next Page...
original here.