LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > VectorLinux
User Name
Password
VectorLinux This forum is for the discussion of VectorLinux.

Notices


Reply
  Search this Thread
Old 07-05-2009, 12:32 PM   #1
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
How to set (or delete) default gateway at boot?


Hi all.

I just installed VectorLinux 6.0 on an old machine. It works fast and good, but I have an issue with the ADSL connection: every time I use pppoe-start to connect, the connection is established but I cannot access internet. I found that I have to delete the default gateway - which is automatically set-up at boot to 192.168.1.1 - and let pppoe to set it for me (to 0.0.0.0).

Here's the question: since I'd like to avoid to run the route del default command every time, how can I set it up at boot time? I already tried to change the GATEWAY variable in /etc/rc.d/rc.route and /etc/rc.d/function-network, but it doesn't work (the defauly gateway is still 192.168.1.1).

Here's is another question: is there a tool to start the ADSL connection without running pppoe-start from the command line? Something like kinternet for KDE. I'm using XFCE4.

Thank you.
 
Old 07-05-2009, 01:40 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
route add -net 192.168.1.0/24 gw gatewayaddress
add this on /etc/rc.local
is this not suitable for your situation?
 
Old 07-05-2009, 02:03 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Original Poster
Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Nope. It doesn't work. I tried your command but the default gateway is still 192.168.1.1. At this point it looks like it is set after boot, but I cannot find where it is set up. Thanks anyway.
 
Old 07-05-2009, 03:13 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
From what I see in Google, there are two commands to set up networking on Vector. One is netconfig and the other one is netset. Have you tried them?
 
Old 07-05-2009, 03:46 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Original Poster
Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
In vectorlinux it is /sbin/vnetconf. There is also the good ol' netconfig command, but the functionality is exactly the same. It sets the hostname and configures the IP address. Since I have to use DHCP, because the IP address is dinamically assigned by the ADSL modem, I cannot setup a default gateway (and indeed I don't need it). What I need to know at this point is: which application/script is responsible to set-up the default gateway in VectorLinux/Slackware systems? So that I can override it...
 
Old 07-05-2009, 03:52 PM   #6
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
On Slackware it's /etc/rc.d/rc.inet1
 
Old 07-05-2009, 04:15 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Original Poster
Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
I tried to add the gateway 0.0.0.0 in /etc/rc.d/rc.inet1, but it still assigns 192.168.1.1. Anyway, I've just found out that on another system running Opensuse 11.1, the default gateway is assigned the same way at boot:
Code:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.224 U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
and only when I connect to the ADSL using kinternet, it is changed to
Code:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.1   0.0.0.0         255.255.255.255 UH    0      0        0 dsl0
192.168.1.0     0.0.0.0         255.255.255.224 U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 dsl0
So the problem is: how can I set rp-pppoe to assign the correct (null) gateway address upon connection? I will further investigate this issue. Thank you, anyway.
 
  


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
default gateway not set by PPPoE, can't ping internet rproffit Linux - Networking 3 12-17-2007 06:29 AM
Default gateway not being set when using DHCP ret602 Linux - Networking 1 09-20-2007 01:17 PM
How to set default gateway Harlin Linux - Networking 2 02-28-2006 04:17 AM
How can I tell what my default gateway is currently set as? abefroman Linux - Networking 6 09-10-2005 01:15 PM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > VectorLinux

All times are GMT -5. The time now is 08:17 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
Open Source Consulting | Domain Registration