dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
3749
share rss forum feed


RyanG1
Premium
join:2002-02-10
San Antonio, TX
kudos:1

[Config] PPPoE default route

Is there a way to get IPCP to install a default route for a Dialer (pppoe) interface?

i.e. my end of the sessions is 1.1.1.1 and the remote end is 1.1.1.2, rather then set a static route to 0.0.0.0 0.0.0.0 dialer1 have it do like DHCP does and instate a default route based on IP negotiation.

Either that or a way to have the static route stay down whent he Dialer interface loses its PPPoE session.

Reason being i have dial back up enabled on my router, and
when the PPPoE session drops, the modem dials out, and as soon as traffic is sent to the router, the pppoe session tries to dialout which reactivates the 0.0.0.0 route out Dialer1.

Ryan
--
Oh I wish i was an oscar meyer wiener, then everyone would be in love with me....


Covenant
Premium,MVM
join:2003-07-01
England
A way round it is use to use the output of show caller ip:

vpnv800693-e7-01-e-01#sh caller ip
Line User IP Address Local Number Remote Number <->
Vi3 - 62.x.x.z - - in
vpnv800693-e7-01-e-01#sh run | incl ip route 0.0.0.0
ip route 0.0.0.0 0.0.0.0 62.x.x.x
ip route 0.0.0.0 0.0.0.0 62.x.x.y
ip route 0.0.0.0 0.0.0.0 62.x.x.z

Basically, you are determing the aggregator's IP address from the output of show caller ip and then setting up a default route out with the aggregator as the next hop. In the example above, there are 3 aggregators which can be peered with but seeing that only one is active at any one time, you will have only one default route. To find out how many aggregators your ISP has, you may have to shut/no shut the ATM interface multiple times and make a note of all of them if there are more than one.

So if the PPPoE session is down, then the floating static default route with any AD above 1 will kick in.

I am also looking at an alternative, more "cool" way of doing this but require a show version from you first to see if it supports first of all, and then see whether i can get it working here.

--
If only my employers can see how much effort I put into the Cisco forum. They would then understand why I sleep at my desk. :p


RyanG1
Premium
join:2002-02-10
San Antonio, TX
kudos:1
reply to RyanG1
Router#sh version
Cisco Internetwork Operating System Software
IOS (tm) C1700 Software (C1700-K9O3SY7-M), Version 12.2(11)T10, RELEASE SOFTWARE (fc3)
TAC Support: »www.cisco.com/tac
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Thu 23-Oct-03 11:43 by eaarmas
Image text-base: 0x80008124, data-base: 0x80D52B4C

ROM: System Bootstrap, Version 12.0(3)T, RELEASE SOFTWARE (fc1)
ROM: C1700 Software (C1700-K9O3SY7-M), Version 12.2(11)T10, RELEASE SOFTWARE (fc3)

Router uptime is 1 day, 19 hours, 1 minute
System returned to ROM by reload at 23:01:55 CST Sun Jan 15 2006
System restarted at 23:03:27 CST Sun Jan 15 2006
System image file is "flash:c1700-k9o3sy7-mz.122-11.T10.bin"

cisco 1720 (MPC860T) processor (revision 0x501) with 27853K/4915K bytes of memory.
Processor board ID JAD04230XZH (894135065), with hardware revision 0000
MPC860T processor: part number 0, mask 32
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
1 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read/Write)

Configuration register is 0x3922
--
Oh I wish i was an oscar meyer wiener, then everyone would be in love with me....


Covenant
Premium,MVM
join:2003-07-01
England
I unfortunately started working on this alternative solution before i saw your show version and see that the new syntax is not supported in your current IOS.

I have included it below anyway and will try to port the config to pre-ip sla monitor, hence rtr.

12.3(14)T Onwards

ip sla monitor 1
type echo protocol ipIcmpEcho 4.2.2.1 source-interface FastEthernet0/0.1
timeout 2000
owner TEs3
frequency 20
distributions-of-statistics-kept 20
enhanced-history interval 20 buckets 100
ip sla monitor schedule 1 life forever start-time now
!
!
track 1 rtr 1
delay down 20
!
ip route 0.0.0.0 0.0.0.0 82.x.x.x track 1
ip route 0.0.0.0 0.0.0.0 Loopback0 100
ip route 4.2.2.1 255.255.255.255 82.x.x.x
!
!
route-map Watch-Default-Route permit 10
set ip next-hop verify-availability 4.2.2.1 1 track 1
!

WHEN UP

vpnv800693-e7-01-e-01#sh route-map Watch-Default-Route
route-map Watch-Default-Route, permit, sequence 10
Match clauses:
Set clauses:
ip next-hop verify-availability 4.2.2.1 1 track 1 [up]
Policy routing matches: 0 packets, 0 bytes
vpnv800693-e7-01-e-01#sh ip ro 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
Known via "static", distance 1, metric 0, candidate default path
Routing Descriptor Blocks:
* 82.x.x.x
Route metric is 0, traffic share count is 1

vpnv800693-e7-01-e-01#

WHEN DOWN

vpnv800693-e7-01-e-01#sh route-map Watch-Default-Route
route-map Watch-Default-Route, permit, sequence 10
Match clauses:
Set clauses:
ip next-hop verify-availability 4.2.2.1 1 track 1 [down]
Policy routing matches: 0 packets, 0 bytes
vpnv800693-e7-01-e-01#sh ip ro 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
Known via "static", distance 100, metric 0 (connected), candidate default path
Routing Descriptor Blocks:
* directly connected, via Loopback0
Route metric is 0, traffic share count is 1

vpnv800693-e7-01-e-01#

I will post a detailed explanation within my next post for both this config and the the pre-12.3(14)T config.

--
If only my employers can see how much effort I put into the Cisco forum. They would then understand why I sleep at my desk. :p


RyanG1
Premium
join:2002-02-10
San Antonio, TX
kudos:1
reply to RyanG1
i appreciate your help in this problem that im having and as it seems, a few others in the past as well.

Ryan
--
Oh I wish i was an oscar meyer wiener, then everyone would be in love with me....


Covenant
Premium,MVM
join:2003-07-01
England
I loaded up a 1721 running the same feature set but "slightly" different IOS version (same train) and I couldnt get this to work as the track keyword in the ip route statement was only integrated into Cisco IOS Release 12.3(8)T and added to 12.3(9) so an IOS upgrade is in order here if you can. It seems that Cisco bolted the required commands at different times rather than all at one time.

Anyway, as promised, I will try and explain what the config statements above mean...



# = comments and can be pasted into the config with no side-effects.

!
ip sla monitor 1
# This command starts the configuration for an IP SLA operation and sets the ID number for the process.
type echo protocol ipIcmpEcho 4.2.2.1 source-interface FastEthernet0/0.1
# seting the type to be an "echo" or ping and setting the protocol to be IP with the target as 4.2.2.1 and sourced from fas0/0.1
timeout 2000
# (OPTIONAL) Timeout of the ping is set to 2000msec or 2s.
owner TEs3
! (OPTIONAL) self explanatory.
frequency 20
# (OPTIONAL) I want this operation or task to occur every 20s, default is 60s.
!
distributions-of-statistics-kept 20
# (OPTIONAL) Sets the number of statistics distributions kept per hop and is used for statistical analysis using SNMP amongst other things.
enhanced-history interval 20 buckets 100
# (OPTIONAL) Performance statistics are stored in "buckets" that separate the accumulated data. Each bucket consists of data accumulated over the specified time interval. Used for stats.
ip sla monitor schedule 1 life forever start-time now
# Schedule the IP SLA's process life time and when it should run.
!
!
track 1 rtr 1
# track 1 is married to rtr 1 or ip sla monitor 1.
delay down 20
# Delay counting the tracked object as down for 20 seconds.
!
ip route 0.0.0.0 0.0.0.0 82.x.x.x track 1
# route to be tracked.
ip route 0.0.0.0 0.0.0.0 Loopback0 100
# backup route with floating AD.
ip route 4.2.2.1 255.255.255.255 82.x.x.x
# Ensure that the IP being tested in the IP SLA Monitor process is ONLY reachable from the primary interface.
!
!
route-map Watch-Default-Route permit 10
# Create a route-map
set ip next-hop verify-availability 4.2.2.1 1 track 1
# Verify the availability of 4.2.2.1 with the help of the IP SLA process and match it to the route being tracked.
!



Hope that helps mate and if you have any questions, just ask. BTW, try and get an IOS upgrade, your IOS is not even available on CCO anymore hence it has not only been deferred but withdrawn from general circulation.
--
If only my employers can see how much effort I put into the Cisco forum. They would then understand why I sleep at my desk.


RyanG1
Premium
join:2002-02-10
San Antonio, TX
kudos:1
reply to RyanG1
unfortunately i cannot get any IOS upgrades because i do not have a CCO account and this router is EOS so i cannot register it for support.

:\

Ryan
--
Oh I wish i was an oscar meyer wiener, then everyone would be in love with me....


Covenant
Premium,MVM
join:2003-07-01
England
Your router is underspecced as regards Flash and RAM anyway so before doing anything, upgrade the hardware or get a new box.