Cisco vs Juniper diffs

IOS ADs Vs JUNOS Preferences

Description Juniper Cisco Huawei
Directly Connected 0 0 0
Static Route 5 1 60
EBGP 170 20 255
EIGRP Not Supported 90 Not Supported
IGRP Not Supported 100 Not Supported
OSPF 10 110 10
IS-IS 160 115 15
RIP 100 120 100
IBGP 170 200 255
OSPF ASE 150 - 150




Based from the above values, one may conclude that Juniper and Huawei has almost the same route preferences. The only difference is the route preference on OSPF and Static Route. Huawei preferred OSPF over Static routes, whereas JunOS and IOS preferred Static Routes over OSPF.

For the route preference on eBGP and iBGP, JunOS has the same value for both routes but according to them, eBGP is always preferred over iBGP.



SourceIOS administrative distanceJUNOS protocol preferencePurpose
Local00Local IP of the interface
Connected Interface00Subnet corresponding to the directly connected interface
System Routes4
Static15Static routes
RSVP7Routes learned from the Resource Reservation Protocol used in MPLS
LDF8
LDP9Routes learned from the Label Distribution Protocol used in MPLS
OSPF internal route10OSPF internal routes such as interfaces that are running OSPF
IS-IS Level 1 internal route15IS-IS Level 1 internal routes such as interfaces that are running ISIS
IS-IS Level 2 internal route18IS-IS Level 2 internal routes such as interfaces that are running ISIS
EBGP20
Redirects30Routes from ICMP redirect
Kernel40Routes learned via route socket from kernel
SNMP50Routes installed by NMS through the SNMP
Router discovery55Routes installed by ICMP Router Discovery
Internal EIGRP90Cisco proprietary routing protocol
RIP100Routes from Routing Information Protocol (IPv4)
RIPng100Routes from Routing Information Protocol (IPv6)
IGRP100Internal Gateway Routing Protocol
PIM105Routes from Protocol Independent Multicast
DVMRP110Routes from Distance Vector Multicast
OSPF110
IS-IS115
RIP120Routes from Routing Information Protocol
Aggregate130Aggregate and generated routes
EGP140Routes from Exterior Gateway Protocol
OSPF AS external routes150Routes from OSPF that have been redistributed into OSPF
ODR160On Demand Routing
IS-IS Level 1 external route160Routes from IS-IS Level 1 that have been redistributed into ISIS
IS-IS Level 2 external route165Routes from IS-IS Level 2 that have been redistributed into ISIS
BGP170Routes from BGP
MSDP175
External EIGRP170
iBGP200
Unknown255255

Commands 



Basic CLI Commands
Cisco IOSJuniper
pingping
traceroutetraceroute
show clockshow system uptime
show environmentshow chassis environment
show historyshow cli history
show ip trafficshow system statistics
show loggingshow log
show processesshow system processes
show running configshow configuration
show tech-supportrequest support information
show usersshow system users
show versionshow version
show arpshow arp
show interfaceshow interfaces
show interfaces detail
show interfaces extensive
show ip interface briefshow interfaces terse
show ip routeshow route
show ip route summaryshow route summary
show route-mapshow policy
show tcpshow system connections
clear countersclear interface statistics
clear arp-cacheclear arp
clear line
clear ip route
BGP Commands
Cisco IOSJuniper
show ip bgpshow route protocol bgp
show ip bgp communityshow route community
show ip bgp dampened pathsshow route damping decayed
show ip bgp neighborsshow bgp neighbor
show ip bgp neighbors address
advertised-routes
show route advertising-protocol bgp
address
show ip bgp neighbors address
received-routes
show route receive-protocol bgp address
show ip bgp peer-groupshow bgp group
show ip bgp regexpshow route aspath-regex
show ip bgp summaryshow bgp summary
clear ip bgpclear bgp neighbor
clear ip bgp dampeningclear bgp damping
OSPF Commands
Cisco IOSJuniper
show ip ospf databaseshow ospf database
show ip ospf interfaceshow ospf interface
show ip ospf neighborshow ospf neighbor
IS-IS Commands
Cisco IOSJuniper
show clns neighborshow isis adjacency
show isis databaseshow isis database
show isis routeshow isis routes
show isis topologyshow isis routes
show isis spf-logshow isis spf log
clear clns neighborclear isis adjacency
clear isis *clear isis database



A. Basic CLI and Systems Management Commands:
IOS CommandJUNOS Command
clock setset date
reloadrequest system reboot
sendrequest message
show clockshow system uptime
show environmentshow chassis environment
show historyshow cli history
show ip trafficshow system statistics
show loggingshow log
show log file name
show processesshow system processes
show running configshow configuration
show tech-supportrequest support information
show usersshow system users
show versionshow version
show chassis hardware
terminal lengthset cli screen-length
terminal widthset cli screen-width
tracetraceroute
B. Switching Commands:
IOS CommandJUNOS Command
noneshow ethernet-switching interfaces
show spanning-treeshow spanning-tree bridge
show mac address-tableshow ethernet-switching table
C. Interface Commands:
IOS CommandJUNOS Command
clear countersclear interface statistics
show interfacesshow interfaces
show interfaces detail
show interfaces extensive
show ip interface briefshow interfaces terse
D. Routing Protocol-Independent Commands:
IOS CommandJUNOS Command
clear arp-cacheclear arp
show arpshow arp
show ip routeshow route
show ip route summaryshow route summary
show route-mapshow policy
show policy policy-name
show tcpshow system connections
1. OSPF Commands:
IOS CommandJUNOS Command
show ip ospf databaseshow ospf database
show ip ospf interfaceshow ospf interface
show ip ospf neighborshow ospf neighbor
2. BGP Commands:
IOS CommandJUNOS Command
clear ip bgpclear bgp neighbor
clear ip bgp dampeningclear bgp damping
show ip bgpshow route protocol bgp
show ip bgp communityshow route community
show ip bgp dampened pathsshow route damping decayed
show ip bgp neighborsshow bgp neighbor
show ip bgp neighbors address advertised-routesshow route advertising-protocol bgp address
show ip bgp neighbors address received-routesshow route receive-protocol bgp address
show ip bgp peer-groupshow bgp group
show ip bgp regexpshow route aspath-regex
show ip bgp summaryshow bgp summary


http://carnivalpeanutbutter.blogspot.md/2013/08/as-promised-below-are-route-preference.html
https://jayceechou.wordpress.com/2009/06/26/junos-commands-for-ios-users/