cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
855
Views
0
Helpful
4
Replies

Default route in cisco router

lakhwaraa
Level 1
Level 1

I am new to cisco and here is my question

I have a branch router which is connected to MPLS and Internet. A tunnel uses the internet and connects to my main office.

The configuration is 

 

interface Tunnel1
ip address 10.2.1.41 255.255.255.0 (This is tunnel IP)




interface FastEthernet8 (This is My Internet Interface)
ip address 192.168.8.2 255.255.255.0 (This is Internet IP)
ip nat outside


interface GigabitEthernet0 (This is My MPLS Interface)
ip address 192.168.20.218 255.255.255.252 (This is my MPLS)
ip nat outside


interface Vlan1 (This is my Local Lan)
description $ETH-SW-LAUNCH$$INTF-INFO-FE 1$
ip address 172.20.41.1 255.255.255.0
ip nat inside




router eigrp 10 (Protocol for Tunnel Connectivity)
network 10.2.1.0 0.0.0.255
network 172.20.41.0 0.0.0.255
passive-interface Vlan1
eigrp stub connected




router bgp 64525 (Configuration for MPLS)
bgp log-neighbor-changes
network 172.20.41.0 mask 255.255.255.0
neighbor 192.168.20.2 remote-as 64525
neighbor 192.168.20.217 remote-as 38264




ip route 0.0.0.0 0.0.0.0 192.168.8.1 50
ip route 8.8.4.4 255.255.255.255 192.168.8.1
ip route 192.168.20.2 255.255.255.255 192.168.20.217


ip sla 50 (Ip sla for MPLS)
icmp-echo 192.168.20.2 source-interface GigabitEthernet0
threshold 1000
timeout 1000
frequency 5

ip sla schedule 50 life forever start-time now


ip sla 8844 (Ip sla for Internet)
icmp-echo 8.8.4.4 source-interface FastEthernet8
threshold 1000
timeout 1000
frequency 5
ip sla schedule 8844 life forever start-time now


now the question is, how will i know whether the traffic is going through tunnel or MPLS. 

Presently after tracer, traffic is going through MPLS.

which line in configuration is telling traffic to go through MPLS. Configuration for IP SLA is same for both connections.

 

3 Accepted Solutions

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame
Show ip route 

will give you more information, what path is prefered here, since you running EIGRP and BGP,

 

Technically eBGP is prefered  here

 

you will see

show ip route

  (why that is using MPLS, if you looking to use Tunnel then you need to play with Traffic engineering with costing).

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

Hi

Looking your config, your traffic should go to the internet due this line right here:

ip route 0.0.0.0 0.0.0.0 192.168.8.1 50

 

However, you have a eBGP with the MPLS:

 

router bgp 64525 (Configuration for MPLS)
bgp log-neighbor-changes
network 172.20.41.0 mask 255.255.255.0
neighbor 192.168.20.2 remote-as 64525
neighbor 192.168.20.217 remote-as 38264

 

So, you need to run the command "show ip route".  Probably you are receiving a default route from ISP via MPLS.  "show ip route" command, will show the complete routing table, which is not shown on "show run" command.

The default route present on the "show run" have Administrative Distance of 50, which is higher the the eBGP Administrative distance which is 20. Lower Administrative Distance wins.

 

Conclusion, your traffic is using MPLS due this eBGP and you can check it by using "show ip route" command.

 

 

View solution in original post

Hello

Can you elaborate on what you are trying to achieve?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame
Show ip route 

will give you more information, what path is prefered here, since you running EIGRP and BGP,

 

Technically eBGP is prefered  here

 

you will see

show ip route

  (why that is using MPLS, if you looking to use Tunnel then you need to play with Traffic engineering with costing).

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi

Looking your config, your traffic should go to the internet due this line right here:

ip route 0.0.0.0 0.0.0.0 192.168.8.1 50

 

However, you have a eBGP with the MPLS:

 

router bgp 64525 (Configuration for MPLS)
bgp log-neighbor-changes
network 172.20.41.0 mask 255.255.255.0
neighbor 192.168.20.2 remote-as 64525
neighbor 192.168.20.217 remote-as 38264

 

So, you need to run the command "show ip route".  Probably you are receiving a default route from ISP via MPLS.  "show ip route" command, will show the complete routing table, which is not shown on "show run" command.

The default route present on the "show run" have Administrative Distance of 50, which is higher the the eBGP Administrative distance which is 20. Lower Administrative Distance wins.

 

Conclusion, your traffic is using MPLS due this eBGP and you can check it by using "show ip route" command.

 

 

Thanks Flavio Miranda. very well taught.

now my second questions is

i want to send my CCTV traffic only through mpls and stop it from passing through internet. what i will do next. do i have to make adjustments in configuration.

Hello

Can you elaborate on what you are trying to achieve?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul