Multi-Vendor CLI Cheat Sheet: Cisco, Juniper, Huawei and Nokia - 夜莺博客

Multi-Vendor CLI Cheat Sheet: Cisco, Juniper, Huawei and Nokia

Managing a multi-vendor network means switching between Cisco IOS, Juniper Junos, Huawei VRP and Nokia SR OS on the same day - and the concepts are identical while the syntax differs just enough to cause mistakes. This cheat sheet lines up the four CLIs task by task: interface configuration, OSPF, BGP peering, VLAN trunking and ACLs, so you can translate between platforms instead of relearning each one.

Interface Configuration Side by Side

# Cisco IOS
interface GigabitEthernet0/1
 description Uplink-to-Core
 ip address 192.168.1.1 255.255.255.0
 no shutdown

# Juniper Junos
set interfaces ge-0/0/1 description "Uplink-to-Core"
set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.1/24

# Huawei VRP
interface GigabitEthernet0/0/1
 description Uplink-to-Core
 ip address 192.168.1.1 255.255.255.0
 undo shutdown

# Nokia SR OS
/configure port 1/1/1 ethernet
/configure router interface "to-core" port 1/1/1
/configure router interface "to-core" address 192.168.1.1/24

Junos applies changes only on commit; Nokia uses slash-navigation with /admin save; Cisco and Huawei apply commands immediately.

OSPF Configuration

# Cisco IOS
router ospf 1
 network 10.0.0.0 0.255.255.255 area 0

# Juniper Junos
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0

# Huawei VRP
ospf 1
 area 0
  network 10.0.0.0 0.255.255.255

# Nokia SR OS
/configure router ospf area 0 interface "to-core"

BGP Peering

# Cisco IOS
router bgp 65001
 neighbor 203.0.113.5 remote-as 65002
 neighbor 203.0.113.5 password Str0ngBGP!

# Juniper Junos
set protocols bgp group EBGP neighbor 203.0.113.5 peer-as 65002
set protocols bgp group EBGP neighbor 203.0.113.5 authentication-key "$9$abc123"

# Huawei VRP
bgp 65001
 peer 203.0.113.5 as-number 65002
 peer 203.0.113.5 password cipher Str0ngBGP!

# Nokia SR OS
/configure router bgp group "EBGP" neighbor 203.0.113.5
/configure router bgp group "EBGP" neighbor 203.0.113.5 peer-as 65002

VLAN Trunking and ACLs

# Huawei VRP trunk
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20

# Nokia SR OS VLAN
/configure vlan 10 ports 1/1/1 tagged

# Cisco ACL
access-list 100 permit tcp any host 10.1.1.1 eq 22
access-list 100 deny ip any any

# Juniper firewall filter
set firewall family inet filter SSH-RULE term 1 from protocol tcp
set firewall family inet filter SSH-RULE term 1 from destination-port 22
set firewall family inet filter SSH-RULE term 1 then accept

Practical Translation Tips

  • Cisco show = Junos/Huawei/Nokia show (Nokia) but Huawei uses display - when in doubt try display on VRP gear.
  • Cisco no prefix = Junos delete = Huawei undo.
  • Junos and Nokia require explicit commit/save before changes persist; Cisco IOS and Huawei apply-and-save separately.

Related Reading on This Site

See the Cisco vs Juniper troubleshooting cheat sheet and H3C vs Huawei CLI comparison for deeper pair-wise references.

原文链接:https://undercodetesting.com/cli-multivendor-cheat-sheet-for-network-engineers-essential-commands-across-cisco-juniper-huawei-and-nokia