Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-16-2003, 11:08 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2003
Location: NW United States
Distribution: SLACKWARE!!!!!
Posts: 10
Rep:
|
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
|
|
|
|
11-16-2003, 01:54 PM
|
#2
|
|
Member
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417
Rep:
|
Put the GATEWAY=192.168.0.1 entry in the ifcfg-eth0 file.
|
|
|
|
11-16-2003, 06:15 PM
|
#3
|
|
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802
Rep:
|
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
|
|
|
|
11-16-2003, 06:56 PM
|
#4
|
|
Member
Registered: Nov 2003
Location: Netherlands
Distribution: Debian Unstable
Posts: 61
Rep:
|
... 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!
|
|
|
|
11-18-2003, 11:18 AM
|
#5
|
|
LQ Newbie
Registered: Sep 2003
Location: NW United States
Distribution: SLACKWARE!!!!!
Posts: 10
Original Poster
Rep:
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:50 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|