Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show route source-gateway

    Syntax

    show route source-gateway address <brief | detail | extensive | terse><logical-system (all | logical-system-name)>

    Syntax (EX Series Switches)

    show route source-gateway address <brief | detail | extensive | terse>

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Description

    Display the entries in the routing table that were learned from a particular address. The Source field in the show route detail command output lists the source for each route, if known.

    Options

    brief | detail | extensive | terse
    —

    (Optional) Display the specified level of output. If you do not specify a level of output, the system defaults to brief.

    address
    —

    IP address of the system.

    logical-system (all | logical-system-name)
    —

    (Optional) Perform this operation on all logical systems or on a particular logical system.

    Required Privilege Level

    view

    List of Sample Output

    show route source-gateway
    show route source-gateway detail
    show route source-gateway extensive

    Output Fields

    For information about output fields, see the output field tables for the show route command, the show route detail command, the show route extensive command, or the show route terse command.

    Sample Output

    show route source-gateway

    user@host> show route source-gateway 10.255.70.103
    inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden)
    Restart Complete
    
    inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    Restart Complete
    
    private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden)
    
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Restart Complete
    
    mpls.0: 7 destinations, 7 routes (5 active, 0 holddown, 2 hidden)
    Restart Complete
    
    inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
    Restart Complete
    
    private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    
    green.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Restart Complete
    + = Active Route, - = Last Active, * = Both
    
    10.255.70.103:1:3:1/96                
                       *[BGP/170] 12:12:24, localpref 100, from 10.255.70.103
                          AS path: I
                        > via so-0/3/0.0, label-switched-path green-r1-r3
    
    red.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
    Restart Complete
    + = Active Route, - = Last Active, * = Both
    
    10.255.70.103:2:3:1/96                
                       *[BGP/170] 12:12:24, localpref 0, from 10.255.70.103
                          AS path: I
                        > via so-0/3/0.0, label-switched-path green-r1-r3
    
    bgp.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Restart Complete
    + = Active Route, - = Last Active, * = Both
    
    10.255.70.103:1:3:1/96                
                       *[BGP/170] 12:12:24, localpref 100, from 10.255.70.103
                          AS path: I
                        > via so-0/3/0.0, label-switched-path green-r1-r3
    
    10.255.70.103:2:3:1/96                
                       *[BGP/170] 12:12:24, localpref 0, from 10.255.70.103
                          AS path: I
                        > via so-0/3/0.0, label-switched-path green-r1-r3
    

    show route source-gateway detail

    user@host> show route source-gateway 10.255.70.103 detail
    inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden)
    Restart Complete
    
    inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    Restart Complete
    
    private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden)
    
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Restart Complete
    
    mpls.0: 7 destinations, 7 routes (5 active, 0 holddown, 2 hidden)
    Restart Complete
    
    inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
    Restart Complete
    green.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    
    Restart Complete
    10.255.70.103:1:3:1/96 (1 entry, 1 announced)
            *BGP    Preference: 170/-101
                    Route Distinguisher: 10.255.70.103:1
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Secondary Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:14:00   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    Announcement bits (1): 0-green-l2vpn 
                    AS path: I
                    Communities: target:11111:1 Layer2-info: encaps:VPLS, 
                    control flags:, mtu: 0
                    Label-base: 800008, range: 8
                    Localpref: 100
                    Router ID: 10.255.70.103
                    Primary Routing Table bgp.l2vpn.0
    
    red.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
    Restart Complete
    
    10.255.70.103:2:3:1/96 (1 entry, 1 announced)
            *BGP    Preference: 170/-1
                    Route Distinguisher: 10.255.70.103:2
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Secondary Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:14:00   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    Announcement bits (1): 0-red-l2vpn 
                    AS path: I
                    Communities: target:11111:2 Layer2-info: encaps:VPLS, 
                    control flags:Site-Down, mtu: 0
                    Label-base: 800016, range: 8
                    Localpref: 0
                    Router ID: 10.255.70.103
                    Primary Routing Table bgp.l2vpn.0
    
    bgp.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Restart Complete
    
    10.255.70.103:1:3:1/96 (1 entry, 0 announced)
            *BGP    Preference: 170/-101
                    Route Distinguisher: 10.255.70.103:1
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:14:00   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    AS path: I
                    Communities: target:11111:1 Layer2-info: encaps:VPLS, control flags:, mtu: 0
                    Label-base: 800008, range: 8
                    Localpref: 100
                    Router ID: 10.255.70.103
                    Secondary Tables: green.l2vpn.0
    10.255.70.103:2:3:1/96 (1 entry, 0 announced)
            *BGP    Preference: 170/-1
                    Route Distinguisher: 10.255.70.103:2
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:14:00   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    AS path: I
                    Communities: target:11111:2 Layer2-info: encaps:VPLS,
                    control flags:Site-Down,
                    mtu: 0
                    Label-base: 800016, range: 8
                    Localpref: 0
                    Router ID: 10.255.70.103
                    Secondary Tables: red.l2vpn.0
    

    show route source-gateway extensive

    user@host> show route source-gateway 10.255.70.103 extensive
    inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden)
    Restart Complete
    
    inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    Restart Complete
    
    private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden)
    
    iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Restart Complete
    
    mpls.0: 7 destinations, 7 routes (5 active, 0 holddown, 2 hidden)
    Restart Complete
    
    inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
    Restart Complete
    
    green.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Restart Complete
    10.255.70.103:1:3:1/96 (1 entry, 1 announced)
            *BGP    Preference: 170/-101
                    Route Distinguisher: 10.255.70.103:1
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Secondary Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:15:24   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    Announcement bits (1): 0-green-l2vpn 
                    AS path: I
                    Communities: target:11111:1 Layer2-info: encaps:VPLS, 
                    control flags:, mtu: 0
                    Label-base: 800008, range: 8
                    Localpref: 100
                    Router ID: 10.255.70.103
                    Primary Routing Table bgp.l2vpn.0
    
    red.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
    Restart Complete
    
    10.255.70.103:2:3:1/96 (1 entry, 1 announced)
            *BGP    Preference: 170/-1
                    Route Distinguisher: 10.255.70.103:2
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Secondary Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:15:24   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    Announcement bits (1): 0-red-l2vpn 
                    AS path: I
                    Communities: target:11111:2 Layer2-info: encaps:VPLS, 
                    control flags:Site-Down, mtu: 0
                    Label-base: 800016, range: 8
                    Localpref: 0
                    Router ID: 10.255.70.103
                    Primary Routing Table bgp.l2vpn.0
    
    bgp.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    Restart Complete
    
    10.255.70.103:1:3:1/96 (1 entry, 0 announced)
            *BGP    Preference: 170/-101
                    Route Distinguisher: 10.255.70.103:1
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:15:24   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    AS path: I
                    Communities: target:11111:1 Layer2-info: encaps:VPLS, 
                    control flags:, mtu: 0
                    Label-base: 800008, range: 8
                    Localpref: 100
                    Router ID: 10.255.70.103
                    Secondary Tables: green.l2vpn.0
                    Indirect next hops: 1
                            Protocol next hop: 10.255.70.103 Metric: 2
                            Indirect next hop: 2 no-forward
                            Indirect path forwarding next hops: 1
                    Next hop:        via so-0/3/0.0 weight 0x1
                            10.255.70.103/32 Originating RIB: inet.3
                              Metric: 2                       Node path count: 1
                              Forwarding nexthops: 1
                                    Nexthop: via so-0/3/0.0
    
    10.255.70.103:2:3:1/96 (1 entry, 0 announced)
            *BGP    Preference: 170/-1
                    Route Distinguisher: 10.255.70.103:2
                    Next-hop reference count: 7
                    Source: 10.255.70.103
                    Protocol next hop: 10.255.70.103
                    Indirect next hop: 2 no-forward
                    State: <Active Int Ext>
                    Local AS:    69 Peer AS:    69
                    Age: 12:15:24   Metric2: 1 
                    Task: BGP_69.10.255.70.103+179
                    AS path: I
                    Communities: target:11111:2 Layer2-info: encaps:VPLS, 
                    control flags:Site-Down,
                    mtu: 0
                    Label-base: 800016, range: 8
                    Localpref: 0
                    Router ID: 10.255.70.103
                    Secondary Tables: red.l2vpn.0
                    Indirect next hops: 1
                            Protocol next hop: 10.255.70.103 Metric: 2
                            Indirect next hop: 2 no-forward
                            Indirect path forwarding next hops: 1
                    Next hop:        via so-0/3/0.0 weight 0x1
                            10.255.70.103/32 Originating RIB: inet.3
                              Metric: 2                       Node path count: 1
                              Forwarding nexthops: 1
                                    Nexthop: via so-0/3/0.0
    

    Published: 2013-08-15