LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-16-2003, 12:08 PM   #1
rekkert
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 192.168.0.1".


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)
/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.1
BROADCAST=192.168.0.255
MTU=1500
ONBOOT=no
MODE=Managed
CHANNEL=6
RATE=22M
KEY=1234567890
ESSID="xxxxxxx"

and the /etc/sysconf/network

NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.0.1
 
Old 11-16-2003, 02:54 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

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

Rep: Reputation: 46
Try putting this in /etc/sysconfig/network.
GATEWAYDEV=eth0

Also in /etc/sysconfig/network-scripts/ifcfg-eth0 change the NETWORK=192.168.0.1 to this:
NETWORK=192.168.0.0
 
Old 11-16-2003, 07:56 PM   #4
BlackCell
Member
 
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 ur.gw.adr.ess 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, 12:18 PM   #5
rekkert
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.
 
  


Reply


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 11:02 PM
How to add additional hard disc after installation osward Linux - Newbie 10 03-28-2004 07:01 PM
Add Additional Hard Drives rawdave Linux - Newbie 3 03-17-2004 10:47 AM
D-Link DWL-650+ pdepass Linux - Networking 1 11-07-2003 08:43 AM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 06:22 PM


All times are GMT -5. The time now is 04:58 AM.

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