LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-03-2008, 10:50 AM   #1
Valkyr1e
LQ Newbie
 
Registered: Jul 2008
Location: Earth
Distribution: Debian/Kubuntu
Posts: 12

Rep: Reputation: 0
Quagga default route not showing in kernel default route (netstat -nr)


at the gateway machine i have done a:

ip route 0.0.0.0/0 192.168.1.2

default-information originate

which does cause everything behind the machine to receive the default route within quagga but they(running quagga .99.5) and the gateway(running quagga .99.9) itself do not install the default route into the kernel. All other routes are installed but as you can see the default is not there:

Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.6.0 11.1.0.8 255.255.255.252 UG 0 0 0 eth3.2
192.168.4.64 11.1.0.5 255.255.255.252 UG 0 0 0 eth3.2
192.168.4.68 192.168.4.49 255.255.255.252 UG 0 0 0 eth1
192.168.4.60 11.1.0.5 255.255.255.252 UG 0 0 0 eth3.2
172.16.0.8 192.168.4.49 255.255.255.252 UG 0 0 0 eth1
192.168.4.48 0.0.0.0 255.255.255.248 U 0 0 0 eth1
172.17.8.0 192.168.4.49 255.255.255.248 UG 0 0 0 eth1
192.168.4.32 0.0.0.0 255.255.255.240 U 0 0 0 eth2
192.168.4.0 0.0.0.0 255.255.255.224 U 0 0 0 eth0
69.156.3.0 11.1.0.8 255.255.255.224 UG 0 0 0 eth3.2
192.168.3.0 192.168.4.1 255.255.255.0 UG 0 0 0 eth0
11.1.8.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3.6
11.1.6.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3.5
11.1.4.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3.4
11.1.2.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3.3
11.1.0.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3.2
Arm1tage:~#

but the default route is within the quagga- via vtysh:

Arm1tage.hiigara.hm# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route

O 0.0.0.0/0 [110/10] via 192.168.4.1, eth0, 04:14:03
K>* 0.0.0.0/0 via 192.168.4.1, eth0
O 11.1.0.0/23 [110/10] is directly connected, eth3.2, 22:06:46
C>* 11.1.0.0/23 is directly connected, eth3.2
O 11.1.2.0/23 [110/10] is directly connected, eth3.3, 22:07:33
C>* 11.1.2.0/23 is directly connected, eth3.3
O 11.1.4.0/23 [110/10] is directly connected, eth3.4, 22:07:28
C>* 11.1.4.0/23 is directly connected, eth3.4
O 11.1.6.0/23 [110/10] is directly connected, eth3.5, 22:07:28
C>* 11.1.6.0/23 is directly connected, eth3.5
O 11.1.8.0/23 [110/10] is directly connected, eth3.6, 22:07:28
C>* 11.1.8.0/23 is directly connected, eth3.6
O>* 69.156.3.0/27 [110/84] via 11.1.0.8, eth3.2, 22:06:46
C>* 120.0.0.1/32 is directly connected, lo
C>* 127.0.0.0/8 is directly connected, lo
O>* 172.16.0.8/30 [110/20] via 192.168.4.49, eth1, 04:14:04
O>* 172.17.8.0/29 [110/30] via 192.168.4.49, eth1, 04:14:04
O>* 192.168.3.0/24 [110/20] via 192.168.4.1, eth0, 04:14:04
O 192.168.4.0/27 [110/10] is directly connected, eth0, 04:14:04
C>* 192.168.4.0/27 is directly connected, eth0
O 192.168.4.32/28 [110/10] is directly connected, eth2, 04:14:04
C>* 192.168.4.32/28 is directly connected, eth2
O 192.168.4.48/29 [110/10] is directly connected, eth1, 04:14:04
C>* 192.168.4.48/29 is directly connected, eth1
O>* 192.168.4.60/30 [110/20] via 11.1.0.5, eth3.2, 04:14:04
* via 192.168.4.33, eth2, 04:14:04
O>* 192.168.4.64/30 [110/20] via 11.1.0.5, eth3.2, 04:14:04
* via 192.168.4.33, eth2, 04:14:04
* via 192.168.4.49, eth1, 04:14:04
O>* 192.168.4.68/30 [110/20] via 192.168.4.49, eth1, 04:14:04
O>* 192.168.6.0/30 [110/74] via 11.1.0.8, eth3.2, 22:06:46
Arm1tage.hiigara.hm#
The gateway itself runs Kubuntu 7.10 while everything else is Debian 4.0r3
would you all have any ideas?

An edit:
This is NOT a business network, this is a network I have set up at home. some of it is cisco the rest is all host-based. I am using this network to help me in getting my CCNA. yes, I suppose it is overly, insanely overdone, but I want to really, REALLY learn networking, plus I find that I enjoy this research. The other benefit is getting the equipment from ebay in the entirety instead of going host-based would be fairly expensive, this way it is much more fun. Besides there's more than just Cisco equipment out there. The network consists of 6 host-based, 4(or 5?) cisco/linksys routers and 2 cisco switches, oh and a small trendnet and linksys switch too. It also has some servers hooked up to it for DNS, DHCP, smb, etc... This is just some clarification to let yall know WHY I have such a huge network. If you all want I will attempt (somehow?????) to post the configs and layouts if you all are curious, mind you I have a long way to go on learning how all the protocols work, just doing my best. Let me know if you all want to see them.

Last edited by Valkyr1e; 08-03-2008 at 11:40 AM. Reason: some clarification on size, and WHY
 
Old 08-03-2008, 03:56 PM   #2
Valkyr1e
LQ Newbie
 
Registered: Jul 2008
Location: Earth
Distribution: Debian/Kubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
Question Well, this method works... but not exactly the method preferred

via NAT via shorewall my gateway works and everything behind it gets the default route and can reach the internet just fine. Only thing is it is not a static route controlled by Quagga. It is a static KERNEL route.

The implementation is thus:
cat /etc/network/interfaces
-output omitted-
# The internet interface #
iface eth3 inet static
address 192.168.1.50
netmask 255.255.255.0
gateway 192.168.1.2

cat /etc/shorewall/masq
#INTERFACE SOURCE ADDRESS PROTO PORT(S) IPSEC MARK
eth3 eth0
eth3 eth2

in quagga:
show run (partial)
router ospf
ospf router-id 120.0.0.5
passive-interface eth1
passive-interface eth3
network 192.168.3.0/24 area 0.0.0.0
network 192.168.4.0/27 area 0.0.0.0
default-information originate
!
ip route 0.0.0.0/0 192.168.1.2
!
ip forwarding

show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route

S 0.0.0.0/0 [1/0] via 192.168.1.2, eth3
K>* 0.0.0.0/0 via 192.168.1.2, eth3

if I try to do without the gateway entry in the interfaces file and the entries in the masq file the internet becomes unreacheable despite the fact that the commands given in quagga have been given. Any ideas?
 
Old 08-03-2008, 05:41 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You're probably much better off asking your question on a Quagga mailing list or forum. This forum is mostly home enthusiasts, and most of those don't even know what Quagga is, let alone have experience running it.
 
Old 08-03-2008, 09:20 PM   #4
Valkyr1e
LQ Newbie
 
Registered: Jul 2008
Location: Earth
Distribution: Debian/Kubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
Wink Thanks!

Thank you kindly, I will do that! I think, though that I will have fun here as a home enthusiast I truly enjoy working with Linux, and bringing back supposedly dead/ ancient hardware back to life. Most of what I use to run quagga and everything else is six years + . Thx.
 
  


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
iproute2 (ip route), pppoe and default route lorddoskias Linux - Networking 0 05-09-2007 11:04 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04:59 AM
Default route disappears from kernel routing table second after adding it eli_pack Linux - Networking 2 03-13-2006 03:39 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 03:48 PM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
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