LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-03-2005, 02:24 AM   #1
c_supernova
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.

cheers,
Frans
 
Old 07-03-2005, 02:27 AM   #2
btmiller
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, 12:22 PM   #3
c_supernova
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Oh okay, I'll try it. Thanx alot for the reply
 
  


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 11:00 PM
sendmail for internal network and network config questions RedHat123 Linux - Networking 0 04-06-2005 04:15 PM
Proftp on Slax Change Anonymous Home DIR rusty.bz Linux - Networking 0 05-02-2004 10:20 PM
cannot change mouse config elrorro Linux - Newbie 1 11-15-2003 10:44 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 05:04 PM


All times are GMT -5. The time now is 05:19 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration