User Tools

Site Tools


hpe:switch:5500:configuration:script:dhcp_server_configuration_example

DHCP Server of the 5500 (script)

Next we will present an example of DHCP Server of the 5500 - script

#
 sysname 5500G-CORE-SWITCH
#
 undo password-control aging enable
 undo password-control length enable
 undo password-control history enable
 password-control login-attempt 3 exceed lock-time 120
#
local-server nas-ip 127.0.0.1 key 3com
#
 igmp-snooping enable
#
 fabric member-auto-update software enable
#
radius scheme system
#
domain system
#
local-user admin
 password simple 1234567890
 service-type telnet terminal
 level 3
local-user manager
 password simple manager
 service-type telnet terminal
 level 2
 local-user monitor
 password simple monitor
 service-type telnet terminal
 level 1
local-user user
#
dhcp server ip-pool location_1
 network 192.168.6.0 mask 255.255.255.0
 gateway-list 192.168.6.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_2
 network 192.168.10.0 mask 255.255.255.128
 gateway-list 192.168.10.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_3
 network 192.168.8.0 mask 255.255.255.0
 gateway-list 192.168.8.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_4
 network 192.168.10.128 mask 255.255.255.128
 gateway-list 192.168.10.129
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_5
 network 192.168.11.0 mask 255.255.255.128
 gateway-list 192.168.11.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_6
 network 192.168.11.128 mask 255.255.255.128
 gateway-list 192.168.11.129
 dns-list 192.168.0.5
 domain-name youdomain.com
#
dhcp server ip-pool location_7
 network 192.168.9.128 mask 255.255.255.128
 gateway-list 192.168.9.129
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_8
 network 192.168.5.128 mask 255.255.255.128
 gateway-list 192.168.5.129
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_9
 network 192.168.5.0 mask 255.255.255.128
 gateway-list 192.168.5.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_10
 network 192.168.9.0 mask 255.255.255.128
 gateway-list 192.168.9.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_11
 network 192.168.3.0 mask 255.255.255.0
 gateway-list 192.168.3.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_12
 network 192.168.7.0 mask 255.255.255.0
 gateway-list 192.168.7.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
 domain-name youdomain.com
#
dhcp server ip-pool location_12
 network 192.168.4.0 mask 255.255.255.0
 gateway-list 192.168.4.1
 dns-list 192.168.0.5 200.75.51.132 200.75.51.133 190.242.48.4
domain-name youdomain.com
#
dhcp server ip-pool location_13
 network 192.168.12.0 mask 255.255.255.0
 gateway-list 192.168.12.1
 dns-list 192.168.0.5
 domain-name youdomain.com
#
acl number 3997
 rule 0 permit ip dscp ef
 rule 1 permit tcp destination-port eq www
 rule 2 permit udp destination-port eq snmp
 rule 3 permit udp destination-port eq snmptrap
 rule 4 permit ip dscp cs6
 rule 5 permit ip dscp cs7
#
acl number 4999
 rule 0 permit type 8868 ffff
 rule 1 permit source 00e0-bb00-0000 ffff-ff00-0000
 rule 2 permit source 0003-6b00-0000 ffff-ff00-0000
 rule 3 permit source 00e0-7500-0000 ffff-ff00-0000
 rule 4 permit source 00d0-1e00-0000 ffff-ff00-0000
 rule 5 permit source 0001-e300-0000 ffff-ff00-0000
 rule 6 permit source 000f-e200-0000 ffff-ff00-0000
 rule 7 permit source 0060-b900-0000 ffff-ff00-0000
 rule 8 deny dest 0000-0000-0000 ffff-ffff-ffff
#
qos-profile default
 packet-filter inbound link-group 4999 rule 8
 traffic-priority inbound ip-group 3997 rule 0 cos voice
 traffic-priority inbound ip-group 3997 rule 4 cos network-management
 traffic-priority inbound ip-group 3997 rule 5 cos network-management
 traffic-priority inbound link-group 4999 rule 0 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 1 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 2 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 3 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 4 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 5 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 6 dscp ef cos voice
 traffic-priority inbound link-group 4999 rule 7 dscp ef cos voice
#
vlan 1
 igmp-snooping enable
#
vlan 2
 name vlan_2
#
vlan 3
 name vlan_3
#
vlan 4
 name vlan_4
#
vlan 5
 name vlan_5
#
vlan 6
 name vlan_6
#
vlan 7
 name vlan_7
#
vlan 8
 name vlan_8
#
vlan 9
name vlan_9
#
vlan 10
 name vlan_10
#
vlan 11
 name vlan_11
#
vlan 12
 name vlan_12
 #
vlan 13
 name vlan_13
#
vlan 14
 name vlan_14
#
vlan 15
 name vlan_15
#
vlan 16
 name vlan_16
#
interface Vlan-interface1
description Name_1
ip address 192.168.0.100 255.255.255.0
#
interface Vlan-interface2
 description Name_2
 ip address 192.168.2.240 255.255.255.0
#
interface Vlan-interface3
 description Name_3
 ip address 192.168.3.1 255.255.255.0
#
interface Vlan-interface4
 description Name_4
 ip address 192.168.4.1 255.255.255.0
#
interface Vlan-interface5
 description Name_5
 ip address 192.168.5.1 255.255.255.128
#
interface Vlan-interface6
 description Name_6
 ip address 192.168.5.129 255.255.255.128
#
interface Vlan-interface7
description Name_7
ip address 192.168.6.1 255.255.255.0
#
interface Vlan-interface8
 description Name_8
 ip address 192.168.7.1 255.255.255.0
#
interface Vlan-interface9
 description Name_9
 ip address 192.168.8.1 255.255.255.0
#
interface Vlan-interface10
 description Name_10
 ip address 192.168.9.1 255.255.255.128
#
interface Vlan-interface11
 description Name_11
 ip address 192.168.10.1 255.255.255.128
#
interface Vlan-interface13
 description Name_12
 ip address 192.168.10.129 255.255.255.128
#
interface Vlan-interface14
 description Name_13
 ip address 192.168.11.1 255.255.255.128
#
interface Vlan-interface15
 description Name_14
 ip address 192.168.11.129 255.255.255.128
#
interface Vlan-interface16
 description Name_15
 ip address 192.168.12.1 255.255.255.0
#
interface Aux1/0/0
#
interface GigabitEthernet1/0/1
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/2
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/3
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/4
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/5
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/6
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/7
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/8
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/9
 stp edged-port enable
 broadcast-suppression pps 3000
 port access vlan 2
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/10
 stp edged-port enable
 broadcast-suppression pps 3000
 port access vlan 7
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/11
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/12
 stp edged-port enable
 broadcast-suppression pps 3000
 port access vlan 7
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/13
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/14
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/15
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/16
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
apply qos-profile default
#
interface GigabitEthernet1/0/17
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/18
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/19
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/20
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/21
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/22
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/23
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 shutdown
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/24
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/25
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/26
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/27
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/28
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/29
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/30
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/31
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/32
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/33
 stp edged-port enable
 broadcast-suppression pps 3000
 port access vlan 3
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/34
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/35
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/36
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/37
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/38
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/39
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/40
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/41
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/42
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/43
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/44
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/45
 stp edged-port enable
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/46
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/47
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 shutdown
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/48
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 shutdown
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/49
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/50
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 shutdown
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/51
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 shutdown
 undo jumboframe enable
 apply qos-profile default
#
interface GigabitEthernet1/0/52
 stp edged-port enable
 port link-type trunk
 port trunk permit vlan all
 broadcast-suppression pps 3000
 shutdown
 undo jumboframe enable
 apply qos-profile default
#
interface Cascade1/2/1
#
interface Cascade1/2/2
#
interface NULL0
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000 description Siemens AG phone
 voice vlan mac-address 0004-0d00-0000 mask ffff-ff00-0000 description Avaya phone
 voice vlan mac-address 0013-1900-0000 mask ffff-ff00-0000 description Cisco 7960 phone
 voice vlan mac-address 0015-2b00-0000 mask ffff-ff00-0000 description Cisco 7940 phone
 voice vlan mac-address 0060-b900-0000 mask ffff-ff00-0000 description Philips and NEC AG phone
#
 ip route-static 0.0.0.0 0.0.0.0 192.168.0.4 preference 60
#
 snmp-agent
 snmp-agent local-engineid 8000002B00186E4A26006877
 snmp-agent community read public
 snmp-agent community write private
 snmp-agent sys-info version all
#
user-interface aux 0 7
 authentication-mode scheme
 screen-length 22
 user-interface vty 0 4
 authentication-mode scheme
#
return

David Gonzalez 2021/03/05 17:08

hpe/switch/5500/configuration/script/dhcp_server_configuration_example.txt · Last modified: 2021/08/27 12:15 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki