Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-16-2003, 11:08 AM   #1
LQ Newbie
Registered: Sep 2003
Location: NW United States
Distribution: SLACKWARE!!!!!
Posts: 10

Rep: Reputation: 0
Question D-Link 650+ (ARRRGGGG!) Additional Questions--How to add default gw to script?

Ok, here's another question about the acx100 chipset. (Aren't we all getting tired of this?)
Kudos to Craig's ACX100 HOWTO

I compiled the driver (pre5), and installed it, works great!!! (First Try even), however, to get the card
actually to ping http/ftp I have to su - and manually type "route add default gw".

My question, then, is where/how do I add this command to my network-scripts so that I don't have to
manually type this everytime I have to reboot (It's my laptop, so I continuously have to shut down, and reboot, as I haven't configured it for standby or hibernate yet).

Here's my network-script

(Redhat 8.0 kernel 2.4.18-14)


and the /etc/sysconf/network

Old 11-16-2003, 01:54 PM   #2
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Put the GATEWAY= entry in the ifcfg-eth0 file.
Old 11-16-2003, 06:15 PM   #3
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Try putting this in /etc/sysconfig/network.

Also in /etc/sysconfig/network-scripts/ifcfg-eth0 change the NETWORK= to this:
Old 11-16-2003, 06:56 PM   #4
Registered: Nov 2003
Location: Netherlands
Distribution: Debian Unstable
Posts: 61

Rep: Reputation: 15
... a complete different thingy

Hi, I am fairly new to debian and I don't know if we have a similar thing as to your network sysconfig thing, looks really cool :-)

If all else fails you can try the following, I know of more people doing it this way

so what we do is this, since hotplug loads the module for me i created a script with the same name as the module (acx100_pci) and put it in the /etc/hotplug/pci/ directory, it works for me :-) (don't mind the first line in the script as i put it there since when I modprobe the module normally it won't get inserted into the kernel, even if I have mentioned the module options in modules.conf. The last two lines are there since otherwise he will not accept my gateway for wlan0 for some strange reason)

here's an example

rmmod acx100_pci
modprobe acx100_pci firmware_dir=/etc/acx100fw debug=0x01
ifconfig wlan0 ur.ip.adr.ess mtu 576
iwconfig wlan0 mode managed
sleep 1
iwconfig wlan0 essid default
sleep 1
iwconfig wlan0 key xxxx-xxxx-xx
route add default gw wlan0
ifconfig eth0 down
ifconfig eth0 up

BTW: The guys from the acx100 project are doing a real good job! without them we would still be plugged and 60 eur lighter!
Old 11-18-2003, 11:18 AM   #5
LQ Newbie
Registered: Sep 2003
Location: NW United States
Distribution: SLACKWARE!!!!!
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

Just wanted to say thanks for all the help.
Changed my ifcfg-eth0 script and all works well.
Actually, it's rather easy to configure once you get the hand of it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add additional checking edhan Linux - Newbie 9 06-11-2005 10:02 PM
How to add additional hard disc after installation osward Linux - Newbie 10 03-28-2004 06:01 PM
Add Additional Hard Drives rawdave Linux - Newbie 3 03-17-2004 09:47 AM
D-Link DWL-650+ pdepass Linux - Networking 1 11-07-2003 07:43 AM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 05:22 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration