RE: confused about tunneling

From: Brian McGahan (bmcgahan@internetworkexpert.com)
Date: Tue Nov 07 2006 - 22:15:29 ART


> 1. can unnumbered tunnel interfaces be advertised into OSPF (does
> this happen automatically if the original interface is in OSPF
already)?

        Look at the "show ip ospf interface" output. Unnumbered links
share the same OSPF area as the numbered link.

> 2. what happens when packet comes out of a tunnel, how are they
> routed? Exactly like any other packets?

        They are routed just like any normal IP packet. Route recursion
out the tunnel interface recurses back to the outgoing interface for the
tunnel destination. I.e if we have the configuration:

interface tunnel0
 ip address 10.0.0.1 255.0.0.0
 tunnel source loopback0
 tunnel destination 20.0.0.2
!
ip route 30.0.0.0 255.0.0.0 tunnel0
ip route 20.0.0.2 255.255.255.255 serial0

        Traffic to the 30.0.0.0 network will be sent out serial0 with a
GRE destination of 20.0.0.2.

> 3. what happens when tunnel configuration is done only on one side?
> The interface comes up, but does it do anything?

        No it doesn't do anything with just a one sided tunnel
configuration. A tunnel will always be up unless keepalives are enabled
and the other end is down.

> 4. if I use policy routing, the set statement would be "set
> interface tunnel 0" or do I need to set next hop as well?

        GRE tunnels are treated like any other point-to-point link so
you don't necessarily need to set the next hop. All traffic sent to the
tunnel is always encapsulated towards the tunnel destination so routes
can point directly to the tunnel without a need for additional layer 3
to layer 2 resolution.

HTH,

Brian McGahan, CCIE #8593 (R&S/SP)
bmcgahan@internetworkexpert.com

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987 x 705
Outside US: 775-826-4344 x 705
24/7 Support: http://forum.internetworkexpert.com
Live Chat: http://www.internetworkexpert.com/chat/

> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Michael Zuo
> Sent: Tuesday, November 07, 2006 6:55 PM
> To: ccielab@groupstudy.com
> Subject: confused about tunneling
>
> Hi Group,
>
>
>
> Anyone knows a good link from doc CD that explains the in and outs of
> GRE tunneling?
>
>
>
> I like to become more knowledgeable on how exactly tunneling work with
> IP routing. Specifically:
>
>
>
> 1. can unnumbered tunnel interfaces be advertised into OSPF (does
> this happen automatically if the original interface is in OSPF
already)?
> 2. what happens when packet comes out of a tunnel, how are they
> routed? Exactly like any other packets?
> 3. what happens when tunnel configuration is done only on one side?
> The interface comes up, but does it do anything?
> 4. if I use policy routing, the set statement would be "set
> interface tunnel 0" or do I need to set next hop as well?
>
>
>
>
>
> Thanks a bunch....!
>
>



This archive was generated by hypermail 2.1.4 : Fri Dec 01 2006 - 08:05:45 ART