beautypg.com

H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 375

background image

361

[AC1] ipsec proposal tran1

# Configure the IPsec proposal to use security protocol ESP and authentication algorithm SHA-1.

[AC1-ipsec-proposal-tran1] esp authentication-algorithm sha1

[AC1-ipsec-proposal-tran1] quit

# Create a DPD named dpd.

[AC1] ike dpd dpd

[AC1-ike-dpd-dpd] quit

# Create an IKE peer named peer1.

[AC1] ike peer peer1

# Apply dpd to IKE peer peer1.

[AC1-ike-peer-peer1] dpd dpd

# Configure a plaintext pre-shared key 123456 for IKE negotiation.

[AC1-ike-peer-peer1] pre-shared-key simple 123456

# Specify the security gateway IP address as 133.1.1.33.

[AC1-ike-peer-peer1] remote-address 133.1.1.33

[AC1-ike-peer-peer1] quit

# Create an IPsec policy template named pt with the sequence number 1.

[AC1] ipsec policy-template pt 1

# Reference the IPsec proposal tran1 for the IPsec policy template.

[AC1-ipsec-policy-template-pt-1] proposal tran1

# Specify the IKE peer peer1 for the IPsec policy template.

[AC1-ipsec-policy-template-pt-1] ike-peer peer1

[AC1-ipsec-policy-template-pt-1] quit

# Create an IPsec policy named map with the sequence number 1 by referencing IPsec policy template
pt.

[AC1] ipsec policy map 1 isakmp template pt

# Apply the IPsec policy to VLAN-interface 1.

[AC1] interface Vlan-interface 1

[AC1-Vlan-interface1] ipsec policy map

[AC1-Vlan-interface1] quit

# Create an AP template named ap with the model WA2620-AGN, specify the AP serial number as
210235A35V0088000005, specify the IP address of the backup AC, and configure the connection

priority for the AP.

[AC1] wlan ap ap model WA2620-AGN

[AC1-wlan-ap-ap] serial-id 210235A35V0088000005

[AC1-wlan-ap-ap] backup-ac ip 133.1.1.2

[AC1-wlan-ap-ap] priority level 7

# Create and enter the provision view for the AP.

[AC1-wlan-ap-ap] provision

# Configure the IPsec pre-shared key as 123456 for the AP.

[AC1-wlan-ap-ap-prvs] tunnel encryption ipsec pre-shared-key simple 123456

# Enable IPsec encryption for the AP data tunnel.

[AC1-wlan-ap-ap-prvs] data-tunnel encryption en