{"id":1947,"date":"2025-02-12T09:46:35","date_gmt":"2025-02-12T09:46:35","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=1947"},"modified":"2025-02-12T09:49:02","modified_gmt":"2025-02-12T09:49:02","slug":"advance-junos-troubleshooting","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2025\/02\/12\/advance-junos-troubleshooting\/","title":{"rendered":"Advance Junos Troubleshooting"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">SWITCHING<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">inter-vlan<br>- verify network settings for each user: ip, mac, gw<br>- verify gw reachability<br>- verify MAC table: <br>       show ethernet-switching table (control plane)<br>       show route forwarding-table family ethernet-switching (forwarding plane - PFE) both should be in sync<br>- verify STP: show spanning-tree interface<br>- verify vlan-interface association: show vlans X [detail]<br>- verify interface config: show configuration interface XXX<br>- where is gw: show route table inet.0<br>- fw session: show security flow session protocol icmp source-prefix IP<br><br>Route \"rejected\" for irb => check vlan config has l3-interface configured<br><br>LAG not coming up but config looks ok -> show configuration chassis aggregated-devices => device-count!<\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">EVPN<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">east-west<br><br>- verify network settings for each user: ip, mac, gw<br>- verify gw reachability<br><br>- evpn-vxlan:<br>-- underlay: IGP (ospf-isis) or eBGP (loopbacks exchanged, peers up, etc)<br>   ---show bgp summary \/ show route receive\/advertised-protocol bgp IP table inet.0<br>   ---show evpn databases<br><br>-- overlay: iBGP up, EVPN peers up<br>   --- show evpn instance extensive<br>   --- show evpn database<br>   --- show route table inet.0 protocol evpn<br><br>-- VXLAN: VTEPs established, up, EVPN routes (typ2\/5 exchanged?<br>   --- show interfaces vtep<br>     type source: for the locally attached networks<br>     type Remote: for remote networks<br>   --- show vlan (mapping vlan-vni)<br>   --- show vlan X details -> l3-irbs, mapped interfaces, etc<br><br>-- communication between same vlan\/vni? vlan-vni mapping identical in all devices?, IRB using commong VGA, IRB bound to VLANs<br>   --- show ethernet-switching vxlan-tunnel-end-point source<br>   --- show ethernet-switching vxlan-tunnel-end-point remote<br>   --- show interfaces terse irb<br>   --- show configuration interfaces irb<br>   --- show configuration vlans<br>   --- show ethernet-switching table<br><br>show bgp summary<br>   - bgp.evpn.0 receives all EVPN routes (LE and SP)<br>   - default-switch.evpn.0 - typ1,2,3 copied here (only LE, no in SP)<br>   - default_evpn.evpn.0 - typ4 copied here (only LE, no in SP)<br><br>show route summary<br>   :vxlan.inet.0 - holds the routes to remote VTEPs and uses inet.0 for route selection (because it has : in the name)<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">OSPF<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">ospf operational<br>   show ospf neighbor<br>   show ospf interface (loopbacks are in??)<br>   show interfaces x | match mtu<br>   show ospf overview<br>   show ospf statistics<br>   set protocols ospf traceoptions file X size 5m files 3 flag all<br>   show log X<br>   show configuration interface Y<br>   monitor traffic interface Y detail matching \"proto ospf\"<br>   request system decrypt password \"xxxx\" (onlu for $8$ or $9$ hashes)<br><br>adj state full<br>   show ospf database (* = entries generated by the local router)<br>   show route protocol ospf table inet.0<br><br>spf stable: duplicate RID?, flapping links?<br><br>routes in RIB: lsdb, asbr over non-bb area, 0\/0 in nssa and stubs, prefix export limit, import\/export policies<br>   - show route table inet.0<br>   - abr: nssa no-summaries -&gt; routes in that area dont see any summary LSA for other areas =&gt; you may need to advertise a default (set protocols ospf area X nssa default-lsa default-metric 1)<br>   - show configuration protocols ospf<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">ISIS<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">(initializing -> mtu issue (at least 1492)<br><br>isis operational<br>   show isis adjacency<br>   show isis interface (loopbacks are in??)<br>   show interfaces x | match mtu<br>   show isis overview (if attached bit evaluation disabled -> default route (sent by L1L2) is not installed<br>   show isis statistics<br>   set protocols isis traceoptions file X size 5m files 3 flag error detail flag hello detail<br>   show log X<br>   show configuration interface Y<br>   monitor traffic interface Y detail matching \"proto isis\"<br>   request system decrypt password \"xxxx\" (onlu for $8$ or $9$ hashes)<br><br>adj state full<br>   show isis database (* = entries generated by the local router)<br>   show isis route<br>   show route protocol isis table inet.0<br><br>spf stable: duplicate NET?, flapping links?<br><br>routes in RIB: lsdb, levels?, 0\/0 in l1, prefix export limit, import\/export policies<br>   show route table inet.0<br>   abr: nssa no-summaries -> routes in that area dont see any summary LSA for other areas => you may need to advertise a default (set protocols ospf area X nssa default-lsa default-metric 1)<br>   show configuration protocols ospf<br>   show isis hostname<br>   show route table iso.0 &lt;-- NET addresses!<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">BGP<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">iBGP<br>-ibgp established: security policies, fw rules, IGP routing, local address, auth, logs<br>set protocols bgp group int-group traceoptions file X size 5m files 3 flap open detail<br>show system connections<br><br>-ibgp stable: IGP stable? MTU, TCP MSS<br><br>-ibgp adverts: export policy, inactive routes, no-advertise community, bgp family<br><br>-ibgp receives: BGP next-hop, recursive routing<br><br>-routes in RIB: import policy<\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">ROUTING LOOPS<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">take several traceroute<br>check where route redistribution takes place<br>set cli timestamp<br>show bgp summary (several times to see flapping)<br>show route received-protocol bgp PEER_IP table x.0 (several times to see flapping)<br>show route NET\/MASK (several times)<br>show route hidden detail table x.0<\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">MPLS L3VPN<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">control plane:<br>- pe-ce routing protocols<br>   -- show route table inet.0 (for P and PE Lo)<br>   -- show isis database detail<br><br>- ldp\/rsvp<br>   -- show route table inet.3 (table with ingress LSPs from this router<br>   -- show route table mpls.0 (next LSR in each LSP). Loop-up LSPs and VPN labels<br>   -- show ldp session\/neighbor<br>   -- show ldp database<br>*RT mismatch -&gt; drop (no stored neither hiddne =&gt; go to the other peer and show route advertisedd-protocol bgp PE-IP)<br><br>- bgp<br>   -- show bgp summary<br>   -- show route table X.inet.0 (l3vpn table)<br>   -- show route advertising-protocol bgp PE-IP<br>   -- show route receive-protocol bgp PE-IP (is bgp.l3vpn.0 table???)<br>   -- show route receive-protocol bgp PE-IP detail table bgp.l3vpn.0<br>   -- *vrf-table-lable -&gt; a LSI logical interface label is created and mapped to the VRF routing table.<br><br>data plane:<br>   -- ping mpls<br>   -- traceroute mpls ldp PE-Lo<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Stateful FW<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">srx -&gt; session-based<br>- show security flow status -&gt; flow\/packet-based<br>- show security flow session<br>- set security flow traceoptions file X size 2m files 3 flag basic-datapath packet-filter f1 protocol icmp destination-prefix FW-IP\/32<br>- show interface X -&gt; check security zone (Null drops all packets)<br>- show interface x detail | find Flow<br>- show security zones NAME<br>- show security screen statistics zone untrust | except 0<br>- show log messages | match RT_SCREEN or RT_IDS<br>- show security screen ids-option untrust-screen<br>- show configuration security screen<br>- set security zones security-zone X host-inbound-traffic system-override traceroute ping \u2026<\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">CHASSIS CLUSTER<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">OOB<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">fxp0: oob mgmt interface<br>fxp1\/em0 - cp interface<br>fab - dp interace<br>swfab - switching dp interface<br>reth - redundant interface<br><br>show chassis cluster status<br>show chassis cluster interfaces<br>show interfaces terse | grep fxp<br>show configuration | display set | match apply-groups<br>  set apply-groups ${node}<br>show system users<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">fabric link<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">show chassis cluster interfaces<br>show chassis cluster status<br>show chassis cluster statistics (sent\/received??)<br>show interfaces terse | grep fab<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">data-plane<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">show chassis cluster status<br>show chassis cluster interfaces<br>show interfaces terse | grep reth<br>show configuration chassis cluster<br><br>*routing table is not running in secondary node<\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">CoS<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">CoS-Based IPSec VPN<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">show security ike security-associations<br>show security ipsec security-associations<br>show security ipsec inactive-tunnels<br>show configuration security ipsec vpn X<br>show class-of-service forwarding-class<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">CoS implementation<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">show interfaces X detail | find Egress -&gt; check counters in queues<br><br>show configuration firewall family inet -&gt; check filtes<br>show interfaces filters | match X<br>show class-of-service interface Y<br>show class-of-service rewrite-rule type dscp<br>                      scheduler-map X | match \"Scheduler|Transmit\"<br>                      classifier type dscp name X<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SWITCHING inter-vlan- verify network settings for each user: ip, mac, gw- verify gw reachability- verify MAC table: show ethernet-switching table (control plane) show route forwarding-table family ethernet-switching (forwarding plane &#8211; PFE) both should be in sync- verify STP: show spanning-tree interface- verify vlan-interface association: show vlans X [detail]- verify interface config: show configuration interface XXX- &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2025\/02\/12\/advance-junos-troubleshooting\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Advance Junos Troubleshooting&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1947","post","type-post","status-publish","format-standard","hentry","category-networks"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/1947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1947"}],"version-history":[{"count":4,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/1947\/revisions"}],"predecessor-version":[{"id":1951,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/1947\/revisions\/1951"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=1947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=1947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}