This shows you the differences between two versions of the page.
| network_stuff:juniper:mx [2021/03/09 08:57] – jotasandoku | network_stuff:juniper:mx [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| Example eBGP config | Example eBGP config | ||
| + | set routing-options autonomous-system 65000 | ||
| set protocols bgp group PEER type external | set protocols bgp group PEER type external | ||
| set protocols bgp group PEER local-address x.x.x.x | set protocols bgp group PEER local-address x.x.x.x | ||
| Line 279: | Line 280: | ||
| set cli timestamp | set cli timestamp | ||
| + | request system storage cleanup dry-run # Verify space is enough for the upgrade. /var partition need to be ~1G available | ||
| request support information | no-more | request support information | no-more | ||
| show interfaces terse | except down | no-more | show interfaces terse | except down | no-more | ||
| Line 341: | Line 343: | ||
| show chassis routing-enginen # both re will show (Master and Backup states) | show chassis routing-enginen # both re will show (Master and Backup states) | ||
| - | * 5.-**RE0 (ZERO)** | + | * 5.-** IN RE1 |
| activate chassis redundancy graceful-switchover | activate chassis redundancy graceful-switchover | ||
| Line 348: | Line 350: | ||
| commit synchronize | commit synchronize | ||
| - | * 6.- **RE1 (ONE)** | + | * 6.- **RE0 (ROUTING ENGINE ZERO): still backup** |
| show chassis routing-engine | show chassis routing-engine | ||
| Line 384: | Line 386: | ||
| IN EVENT OF FAILED UPGRADE: | IN EVENT OF FAILED UPGRADE: | ||
| request system snapshot recovery | request system snapshot recovery | ||
| + | OR | ||
| + | request system software delete jinstall | ||
| ---- | ---- | ||
| Line 445: | Line 449: | ||
| * Junos OS chooses the OSPF route, because of the default preference 10 for an internal OSPF route and 150 for an external OSPF route | * Junos OS chooses the OSPF route, because of the default preference 10 for an internal OSPF route and 150 for an external OSPF route | ||
| * **In our case OSPF is less preferred than xBGP set protocols ospf external-preference 200** | * **In our case OSPF is less preferred than xBGP set protocols ospf external-preference 200** | ||
| - | * IOS follows Rfc 1771 and eBGP routes are advertised to iBGP peers. Junos: Not by default (on purpose as rfc behaviour might clog ibgp and even traffic loops).to make junos compliant with rfc and IOS we can do advertise inactive. | + | * IOS follows Rfc 1771 and eBGP routes are advertised to iBGP peers. Junos: Not by default (on purpose as rfc behaviour might clog ibgp and even traffic loops).In order to make Junos compliant |
| * Juniper created a compatibility knob for this situation, called advertise-inactive. When applied to an EBGP peering session, this knob results in the advertisement of the best BGP route that happens to be inactive because of IGP preference. | * Juniper created a compatibility knob for this situation, called advertise-inactive. When applied to an EBGP peering session, this knob results in the advertisement of the best BGP route that happens to be inactive because of IGP preference. | ||
| * junos 'route preferences': | * junos 'route preferences': | ||
| Line 655: | Line 659: | ||
| IPSEC VPN (MS-MIC MS-MPC):\\ | IPSEC VPN (MS-MIC MS-MPC):\\ | ||
| - | * [[https:// | + | * [[https:// |
| - | * [[https:// | + | * [[https:// |
| - | * [[https:// | + | * [[https:// |
| * [[https:// | * [[https:// | ||
| Line 669: | Line 673: | ||
| set firewall family inet filter vpn-filter term admin-services-esp then accept | set firewall family inet filter vpn-filter term admin-services-esp then accept | ||
| - | TROUBLESHOOT:\\ | + | TROUBLESHOOTING IPSEC:\\ |
| show services ipsec-vpn ipsec security-associations detail | show services ipsec-vpn ipsec security-associations detail | ||
| show services ipsec-vpn ipsec statistics | show services ipsec-vpn ipsec statistics | ||
| show services ipsec-vpn ipsec security-associations ipsec_ss_ms_5_2_01 # # like 'sho crypto ipsec ' # like 'sho crypto ipsec sa' | show services ipsec-vpn ipsec security-associations ipsec_ss_ms_5_2_01 # # like 'sho crypto ipsec ' # like 'sho crypto ipsec sa' | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | __TROUBLESHOOTING NETFLOW (troubleshooting jflow)__ | ||
| + | \\ | ||
| + | Jflow and Netflow are essentially [[https:// | ||
| + | \\ | ||
| + | cflowd (netflow from alcatel), netstream (netflow from huawei) | ||
| + | |||
| + | show services accounting flow inline-jflow fpc-slot 0 | ||
| + | show services accounting flow inline-jflow fpc-slot 3 | ||
| + | show services accounting flow inline-jflow fpc-slot 7 | ||
| + | From Shell | ||
| + | start shell pfe network fpc0 | ||
| + | debug cos halp show ifds local-only | ||
| + | debug cos halp all_stats non-zero | ||
| + | exit | ||
| + | start shell pfe network fpc3 | ||
| + | debug cos halp show ifds local-only | ||
| + | debug cos halp all_stats non-zero | ||
| + | exit | ||
| + | start shell pfe network fpc7 | ||
| + | debug cos halp show ifds local-only | ||
| + | debug cos halp all_stats non-zero | ||
| + | exit | ||
| + | From mspmand | ||
| + | start shell | ||
| + | vty -s mspmand fpc0 | ||
| + | plugin jflow show statistics | ||
| + | quit | ||
| + | vty -s mspmand fpc3 | ||
| + | plugin jflow show statistics | ||
| + | quit | ||
| + | vty -s mspmand fpc7 | ||
| + | plugin jflow show statistics | ||
| + | quit | ||
| + | |||
| | | ||