Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-03-2005, 01:24 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
[Slax]Change network config

Hi, I am using Slax 5.0.5 and I am wondering how to change the network configuration (especially the GATEWAY) since I can change the IP using ifconfig, change the name server by editing the /etc/resolv.conf. But how can I change the gateway?? I can edit the /etc/rc.d/rc.inet1.conf, but should I need a reboot?But in using Slax, the rebooted settings are not saved. How can I change the gateway without reboot?
If I run the /etc/rc.d/rc.inet1, then it will automatically use the DHCP server.
Also, I've tried to use the /bin/netconfig command, but it also does not work.
I'm desperate with this one

Thanx alot for the helps.

Old 07-03-2005, 01:27 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Use the route command:

route del default

to delete the existing default gateway (if needed), and:

route add default gw <gateway IP address>
Old 07-03-2005, 11:22 AM   #3
LQ Newbie
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Oh okay, I'll try it. Thanx alot for the 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
How to change to the config directory brianbritz Linux - General 1 10-20-2005 10:00 PM
sendmail for internal network and network config questions RedHat123 Linux - Networking 0 04-06-2005 03:15 PM
Proftp on Slax Change Anonymous Home DIR Linux - Networking 0 05-02-2004 09:20 PM
cannot change mouse config elrorro Linux - Newbie 1 11-15-2003 09:44 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 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