0% found this document useful (0 votes)
51 views15 pages

Cisco Vs HP Switch Comparison Commands

The document provides a comprehensive comparison of command-line interface (CLI) commands for Cisco and HP networking devices, detailing commands for configuration, management, and troubleshooting. It includes commands for setting hostnames, viewing configurations, managing VLANs, and configuring SSH, among others. Additionally, it covers link aggregation, spanning tree protocol, and VRRP configurations for both platforms.

Uploaded by

yaya konate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views15 pages

Cisco Vs HP Switch Comparison Commands

The document provides a comprehensive comparison of command-line interface (CLI) commands for Cisco and HP networking devices, detailing commands for configuration, management, and troubleshooting. It includes commands for setting hostnames, viewing configurations, managing VLANs, and configuring SSH, among others. Additionally, it covers link aggregation, spanning tree protocol, and VRRP configurations for both platforms.

Uploaded by

yaya konate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Remark Cisco HP Extra CISCO /HP Extra CISCO /HP

To enter in enable mode enable system-view


To set hostname hostname xxx sysname xxx
display current-configuration or
To view config sh running-config / show startup-config display interface ten-gigabitethernet 1/0/1

To view version show ver display version


To view sr. no. of sw show diag / show inventory display device manuinfo
For saving config write save
For erasing config write erase reset saved config
To Go out Exist quit
To View logs show log display logbuffer display interface GigabitEthernet0/0
show flash show flash dir
configure config terminal system-view
show history show history display history
show tech show tech-support display diagnostic-information
show show display
no no undo
end return end
exit quit exit
access list acl access-list
ip route ip route-static ip route
To reboot sw reload reboot display interface GigabitEthernet0/1
SW(config)#int gigbit eth 1/0/1 [sw-1]interface GigabitEthernet 1/0/8
Port Enable SW(config-int)#no shutdown [sw-1 GigabitEthernet 1/0/8]undo shutdown reset counters interface GigabitEthernet0/1
SW(config)#int gigbit eth 1/0/1 [sw-1]interface GigabitEthernet 1/0/8
Port Disable
SW(config-int)#shutdown [sw-1 GigabitEthernet 1/0/8]shutdown
Sw#config t
<sw-1> system-view
SW(config)#vlan 20
Create a VLAN [sw-1] vlan 2
SW(config-vlan)#exit
[sw-1-vlan2] quit
SW1(config)#int vlan 1 system-view
SW1(config-if)#ip address 10.0.0.2 255.0.0.0 [HPE] interface M-GigabitEthernet0/0/0
Set up Management Ethernet interface
SW1#show int vlan 1 [HPE-M-GigabitEthernet0/0/0] ip address x.x.x.x 255.255.255.0
[HPE-M-GigabitEthernet0/0/0] quit
To view Interface IP add. sh ip interface brief display ip interface brief
Switch> enable
Switch# configure terminal
Switch(config)# hostname your_hostname Sysetm view
Switch(config)# ip domain-name your_domain [HPE] line vty 0 4
Switch(config)# crypto key generate rsa [HPE-line-vty0-4] authentication-mode scheme
To set up SSH
Switch(config)# ip ssh version 2 [HPE-line-vty0-4] user-role network-admin
Switch(config)# ip ssh timeout 90 authentication-retries 2 [HPE-line-vty0-4] protocol inbound ssh and public-key local create { dsa| rsa | ecdsa } [ namekey-name ]
Switch(config)# line vty 0 4 [HPE-line-vty0-4] quit
Switch(config)# transport input ssh

To view ARP entry sh arp dis arp


To clear ARP entry clear arp reset arp
To clear interface counters clear counters reset counters
To set default route ip route 0.0.0.0 0.0.0.0.0 x.x.x.x ip route-static 0.0.0.0 0.0.0.0.0 x.x.x.x
Go to Switchport mode switchport port link-mode bridge
Go to Router mode no switchport port link-mode route
Go to Access Mode switchport mode access port link-type access
switchport access vlan x port access vlan x
Go to Trunk Mode port link-type trunk switchport mode trunk
port trunk permit vlan x switchport trunk allowed vlan x
Ether channel port link-aggregation group x channel-group x
interface Bridge-Aggregation x int port-channel x
dis stp brief and
System view
Spanning Tree sh spanning tree
Set the spanning tree mode.stp mode { mstp |pvst | rstp | stp }

STP enable Default enable stp enable (By default is enable):to disable undo stp enable
spanning-tree portfast bpduguard default system-view
Enable BPDU-Guard
stp bpdu-protection
system view
interface interface-type interface-number
Enable Root -Guard spanning-tree guard root
stp root-protection(By Default disable)

system view
interface interface-type interface-number
Enable Loop-Guard spanning-tree loopguard default
stp loop-protection(By Default disable)

interface Gigabit ethernet 0/1


Enable portfast spanning-tree portfast stp edged-port enable

lay information about primary VLANs and the secondary VLANs associated withprivate
show each primary
vlan VLAN. display private-vlan [ primary-vlan-id
VTP VTP #sh vtp GVRP show gvrp (GARP VLAN Registration Protocol) &GARP (Generic Attribute Registration Protocol.)
Description Purpose
A port that belongs to a unique VLAN and is untagged. access mode untagged
A port that carries multiple VLANs using 802.1q tags. trunk mode tagged
etherchannel or channel-group
Aggregated links to support additional bandwidth and link redundancy trunk-group
Configuration Purpose
untagged VLAN traffic switchport mode access switchport access VLAN untagged
tagged VLAN traffic switchport trunk encapsulationswitchport mode trunkswitchport allowed VLAN tagged
aggregated links channel-group trunk (trk)
Neighbor Details #sh cdp neighbor/detail lldp and display lldp neighbor list & display lldp status
NTP enable #sh ntp status ntp-service enable #display ntp-service status
Cisco#show inventory <HP>display device manuinfo
Cisco#show version <HP>display device verbose
Cisco#show env fan <HP>display fan
System and Envoronment Cisco#show env power <HP>display power
Cisco#show env temperature <HP>display environment
Cisco# show users <HP>display users

show ip route show ip route display ip routing-table


1.show switch stack-ports represents the stack wise ports status A switch stack is a set of Cisco Ether Switch service HP’s Intelligent Resilient Framework (IRF) is an
of switch. modules or Catalyst 3750 switches connected through advanced technology that allows one to virtualize
2.show switch neighbors how switches are connected in the their Cisco Stack Wise ports. 2 or more switches into a single switching and
1 display interface -Displays interface information.
switch or simply above output helps in understanding topology of routing system also known as a “virtual switch”
-To verify that each IRF port has a minimum of one physical interface in up state
switches connected in stack.
2 display irf -Displays IRF fabric information, including the member ID, role, priority,
3.show switch Output shows priority & MAC address of switches
bridge MAC address, and description of each IRF member.
in stack.
3 display irf configuration
IRF for HP SW &Stack for Cisco -Displays basic IRF settings, including the current member ID, new
member ID, and physical interfaces bound to the IRF ports on each IRF
member device. The new member IDs take effect at reboot.
4 display irf topology - Displays the IRF fabric topology, including the member IDs, IRF port state,
and adjacencies of IRF ports.
5 display version -Displays system version information.
6 irf-port-configuration active -Activates IRF configuration on IRF ports.
7 undo shutdown - Brings up an Ethernet interface or subinterface
Follow the below steps to configure layer 2
dynamic link aggregation:
1. Enter system view:system-view
2. Set the system LACP priority:lacp system-
priority system-priority
3. Create a Layer 2 aggregate interface and enter
Layer 2 aggregate interface view.
Command: interface bridge-aggregation interface-
number
4. Configure the aggregation group to operate in
dynamic aggregation mode.
switch# configure terminal Command: link-aggregation mode dynamic
1.display current-configuration interface Displays interface configuration.
switch(config)# interface fastethernet 0/1 5. Exit to system view:quit
2.display interface Displays Ethernet interface information.
switch(config-if)# channel-group 5 mode active 6. Assign an interface to the specified Layer 2
3.display link-aggregation verbose Display detailed information about the aggregation groups that
switch# configure terminal aggregation group.
Link aggregation correspond to the existing aggregate interfaces.
switch(config)# interface fastethernet 0/1 a. Enter Layer 2 Ethernet interface view:
switch(config-if)# channel-group 5 mode paasive interface interface-type interface-number
4.link-aggregation selected-port maximum Configure the maximum number of Selected ports
#show etherchannel summary--To verify if ports are bundled b. Assign the interface to the specified Layer 2
allowed in an aggregation group
aggregation group: port link-aggregation group
number
7. Set the LACP operating mode for the interface.
Set LACP to operate in passive mode: lacp
mode passive
Set LACP to operate in active mode: undo lacp
mode
8. Configure the port priority for the interface:
link-aggregation port-priority port-priority
9. Set the short LACP timeout interval (3
seconds) for the interface.
Command: lacp period short
1.debugging arp packet Enables ARP packet debugging.
2.display arp Displays ARP entries.
Layer 3 forwarding failure 3.display ip routing-table Displays brief information about active routes in the routing
table.
4.display mac-address Display MAC address entries
display fib Display FIB entries
1.display interface Displays Ethernet interface information.
2.display packet-filter Displays whether an ACL has been successfully
applied to an interface for packet filtering.
3.display qos policy Displays user-defined QoS policy configuration
information.
4.display qos policy interface Displays information about the QoS policies applied
to an interface or all interfaces.
5.display qos vlan-policy Displays information about QoS policies applied to
VLANs.
6.display qos policy global Displays information about global QoS policies.
7.display this Displays the running configuration in the current
view.
Layer 2 forwarding failure 8.display ip source binding/display ipv6 source binding Displays source guard binding entries.
9.display portal interface Displays portal configuration and portal running
state on an interface.
10.display mac-forced-forwarding vlan Displays the MFF configuration information for a
VLAN.
11.display link-aggregation verbose Displays detailed information about the aggregation
groups that correspond to the aggregate interfaces.
12.display smart-link group Displays information about the specified or all smart
link groups.
13.display mac-address blackhole Displays blackhole MAC address entries.
14.display qos lr interface Displays the rate limit configuration and statistics on
a specified interface or all the interfaces.
15.splay qos queue-statistics interface Displays traffic statistics collected for an interface on
a per-queue basis
#show process cpu-- to display CPU and core processor usage.
# show process cpu detailed --To find CPU usage due to the display cpu-usage Displays the current CPU usage statistics.
subprocesses and tasks operating under a specific process. display memory Displays memory usage statistics.
High memory utilization # show process cpu sorted -- To sort for high activity usage. display process cpu Displays the CPU usage statistics for jobs. This
#sh process cpu history-- to display a graph of sustained CPU command is available in probe view.
utilization. display system internal kernel memory pool Displays memory block usage statistics. This command
is available in probe view.
[HPE]display ip routing-table statistics:Knowing that the maximum amount of routes
Route Entries #sh ip route
[HPE]disp ip rout summary
SW(config)#interface gi 1/0/1
SW(config-int)#interface mode trunk Interface GigabitEthernet 1/0/48
Configure an uplink in trunk mode &allow all VLANs
SW(config-int)#switchport trunk allowed vlan 1,2,3,4 port link-type trunk
port trunk permit vlan all
<Sw>System-view
Switch(config)#interface Vlan2 [SW]#Vlan 10
Create an SVI for a vlan Switch(config-if)#ip address 10.1.2.1 255.255.255.0 {SW}#interface Vlan-interface 10
Switch(config-if)#no shutdown ip address 10.0.0.252 24

Native vlan is possible when the port is operating in hybrid


mode (you will have to first put the port on access mode, then
activate hybrid mode).

[HPE-5700-Ten-GigabitEthernet1/0/53:1]port link-type hybrid First you have to create Vlan 100


Please set the link type of the port to access first. SW1(config)#vlan 100
[HPE-5700-Ten-GigabitEthernet1/0/53:1]port link-type access SW1(config)#interface gi0/1
Configure a native vlan on a trunk port [HPE-5700-Ten-GigabitEthernet1/0/53:1]port link-type hybrid SW1(config-if)#switchport mode trunk
Set native vlan SW1(config-if)#switchport trunk native vlan 100
[HPE-5700-Ten-GigabitEthernet1/0/53:1]port hybrid vlan 500 SW2#show interface Gi0/1 switchport
untagged
Add a vlan to a trunk port
[HPE-5700-Ten-GigabitEthernet1/0/53:1]port hybrid vlan 502
tagged

<SwitchA> system-view
[SwitchA] vlan 2
SwitchA(config)# vlan 100 [SwitchA-vlan2] port ten-gigabitethernet 1/0/5
SwitchA(config)# interface vlan 100 [SwitchA-vlan2] quit
SwitchA(config-if)# ip address 192.168.100.2 [SwitchA] interface vlan-interface 2
SwitchA(config-if)# vrrp 100 ip 192.168.100.1 [SwitchA-Vlan-interface2] ip address 10.1.1.1 255.255.255.0
SwitchA(config-if)# vrrp 100 priority 120 # Create VRRP group 1 on VLAN-interface 2, and set its virtual IP address to 10.1.1.111.
VRRP [SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111
SwitchA(config-if)# vrrp 100 preempt
SwitchA(config-if)# vrrp 100 authentication MYVRRPPASS # Assign Switch A a higher priority than Switch B in VRRP group 1, so Switch A can become the master.
SwitchA(config-if)# exit [SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
SwitchA#sh vrrp # Configure Switch A to operate in preemptive mode, so it can become the master whenever it operates correctly. Set
the preemption delay to 500 centiseconds to avoid frequent status switchover.
[SwitchA-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500
[SwitchA-Vlan-interface2] display vrrp verbose

Belongs to Router
Remark Cisco HP
To configure BGP router bgp xxxx bgp xxxx
To advertise Network network xx.xx.xx.xx mask yy.yy.yy.yy network xx.xx.xx.xx
To set neighbor IP & AS no. neighbor yy.yy.yy.yy remote-as zzzz peer yy.yy.yy.yy as-number zzzz
no auto-summary

To view BGP Neighborship sh ip bgp sum dis bgp peer ipv4 / dis bgp peer
To shut BGP Neighbor neighbor xx.xx.xx.xx shut neighbor xx.xx.xx.xx ignore
To unshut BGP Neighbor no neighbor xx.xx.xx.xx shut undo neighbor xx.xx.xx.xx ignore

To show advertised routes by BGP show ip bgp neighbors x.x.x.x advertised-routes display bgp routing-table ipv4 peer x.x.x.x advertised-routes
To show received routes by BGP neighbors show ip bgp neighbors x.x.x.x routes display bgp routing-table ipv4 peer x.x.x.x received-routes
To reset BGP neighbor clear bgp ipv4 unicast x.x.x.x reset bgp x.x.x.x ipv4 unicast

To view OSPF neighbor sh ip ospf neighbor dis ospf peer show startup-config
dis ospf peer Tunnel x

Netflow Config ip flow-cache timeout active 1 ip netstream timeout active 1


ip flow-export source Loopback100 ip netstream timeout inactive 15 authorization-attribute user-role network-admin
ip flow-export version 9 peer-as ip netstream export version 5 authorization-attribute user-role network-operator
ip flow-export destination x.x.x.x 9995 ip netstream export host x.x.x.x 9995
ip flow-export destination y.y.y.y 9995 ip netstream export host y.y.y.y 9995
ip netstream export source interface LoopBack100 tracert

On interface side ip flow ingress ip netstream inbound


ip flow egress ip netstream outbound

SNMP Config snmp-server community xxxx RW snmp-agent community write xxxx


snmp-server community yyyy RO snmp-agent community read yyyy
snmp-server trap-source Loopback 100 snmp-agent target-host trap address udp-domain xx.xx.xx.xx udp-port 161 params securityname xxxx
snmp-server host xx.xx.xx.xx xxxx

To specify reload interval reload in 5 (Router will be reboot after 5 min.) schedular reboot delay 5
To cancel reload interval reload cancel undo schedular reboot

Rakesh

e understanding new technologies. I developed this posts to assist and share all of the knowledge I’ve obtained as a holder of certifications and a high level of understanding in Cloud, routing, automation, security, and more. I hope you find success in your profession in IT while reading through my posts.Follow me for morehttps://www.linkedin.com/in/rakesh-sa-b2b664167

Follow me for more updates https://www.linkedin.com/in/rakesh-sa-b2b664167


com/in/rakesh-sa-b2b664167

You might also like