Monday, 11 April 2011

Basic HP Switch Configuration

HP switch commands are very similar to Cisco commands, however SH is show and not shutdown (worth remember when you go back to configuring a cisco device).

If you get stuck at any point pressing tab will show you a list of possible commands or syntax for the command you’ve already entered.

Basic commands provide information or change configuration modes:

sh vlan                                                                                  ; Shows Vlan
sh run                                                                                   ; Shows running config
sh save                                                                                 ; Shows saved config
en / exit                                                                               ; Back to enable mode
conf                                                                                       ; Enter config mode
write mem                                                                          ; Write the running config to memory

And here’s a typical config, in this example there’s 2 VLANs for servers and workstations, a trunk to a server network device, two servers which host virtual workstations on ports 5-6, a DHCP/DNS/SNMP server on 192.168.1.5 and another DNS/SNMP server on 192.168.1.4, finally there’s a gateway to another network that traffic needs to route to.

hostname "ProCurve Switch xxxxx"                                        ; Set the name of the switch
trunk 47-48 Trk1 Trunk                                                                   ; Create a static trunk group on port 47-48 called Trk1
ip default-gateway 192.168.1.254                                             ; Set the default gateway for the switch
ip routing                                                                                             ;
vlan 1                                                                                                    ; Modify VLAN1
   name "Servers"                                                                             ; Set the name of the VLAN
   untagged 1-6,Trk1                                                                        ; Untag port 1-6 and Trk1 (our trunk)
   ip helper-address 192.168.1.5                                                  ; Set the IP helper address for DHCP
   ip address 192.168.1.1 255.255.255.0                                    ; Set the switches IP address on the VLAN
   no untagged 7-46                                                                          ; Set ports 7-46 not to be untagged on this VLAN (VLAN 1 only requires this)
   ip igmp                                                                                              ; Allow IGMP packets
exit                                                                                                        ; Stop modifying VLAN1
vlan 2                                                                                                    ; Modify VLAN2
   name "Workstations"                                                                 ; Set the name of the VLAN
   untagged 7-46                                                                                ; Untag port 7-46
   ip helper-address 192.168.1.5                                                  ; Set the IP helper address for DHCP
   ip address 192.168.2.1 255.255.255.0                                    ; Set the switches IP address on the VLAN
   tagged 5-6                                                                                        ; Set ports 5-6 as tagged on VLAN2
   ip igmp                                                                                              ; Allow IGMP packets
exit                                                                                                        ; Stop modifying VLAN1
fault-finder bad-driver sensitivity high                                   ; Fault-finder highly sensitive undersized/giant packets
fault-finder bad-transceiver sensitivity high                         ; Fault-finder highly sensitive excessive jabbering
fault-finder bad-cable sensitivity high                                     ; Fault-finder highly sensitive CRC/alignment errors
fault-finder too-long-cable sensitivity high                           ; Fault-finder highly sensitive late collisions
fault-finder over-bandwidth sensitivity high                        ; Fault-finder highly sensitive high collision or drop rate
fault-finder broadcast-storm sensitivity high                       ; Fault-finder highly sensitive excessive broastcasts
fault-finder loss-of-link sensitivity high                                  ; Fault-finder highly sensitive loss of link
fault-finder duplex-mismatch-HDx sensitivity high           ; Fault-finder highly sensitive duplex mismatches (reconfigure to full duplex)
fault-finder duplex-mismatch-FDx sensitivity high            ; Fault-finder highly sensitive duplex mismatches (reconfigure to auto)
timesync sntp                                                                                    ; Set the time protocol to SNTP
sntp server priority 1 192.168.1.5 3                                           ; Set SNTP server and priority
sntp server priority 2 192.168.1.4 3                                           ; Set SNTP server and priority
ip dns domain-name "domain.local"                                        ; Set network DNS domain name
ip dns server-address priority 1 192.168.1.5                          ; Set DNS servers and priority
ip dns server-address priority 2 192.168.1.4                          ; Set DNS servers and priority
ip route 0.0.0.0 0.0.0.0 192.168.1.254                                       ; Set default gateway
ip route 192.168.50.0 255.255.255.0 192.168.1.253             ; Set gateway to a specific subnet
snmp-server community "public" unrestricted                   ; Set SNMP community name
snmp-server host 192.168.1.5 community "public"           ; Set SNMP servers for the community
snmp-server host 192.168.1.4 community "public"           ; Set SNMP servers for the community
snmp-server contact "IT Dept." location "Server Room" ; Set SNMP published contact details
spanning-tree                                                                                   ; Enable spanning tree protocol
spanning-tree Trk1 priority 4                                                       ; Set spanning tree priority for Trk1

3 comments:

  1. The basic knowledge of the HP switch configuration can get from this place which is a good thing. Hold your voice and achieve a better idea about this. With the help of NinjaEssays you can change the configuration modes.

    ReplyDelete
  2. If you have any assignment requirement then you are at the right place. We will provide you with supreme quality papers at the cheapest price. 100% Plagiarism Free Content. We help students in assignments of all essay writer business subjects. We have more than 5 years of post-qualification experience in helping the students in solving their academic assignments.
    Get assignment help from Professional.

    ReplyDelete

Correction, question or suggestion, it's all welcome here.