Cisco Vs HP Switch Comparison Commands
Cisco Vs HP Switch Comparison Commands
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)
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
<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
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