Configuring the router – H3C Technologies H3C SecPath F1000-E User Manual
Page 159
147
# Configure the IP address of interface GigabitEthernet 0/1.
[SecPath] interface GigabitEthernet 0/1
[SecPath-GigabitEthernet0/1] ip address 172.16.0.1 255.255.255.0
[SecPath-GigabitEthernet0/1] quit
# Configure a static route to the branch LAN.
[SecPathA] ip route-static 192.168.0.0 255.255.255.0 GigabitEthernet 0/2
Configuring the router
# Specify a name for the local security gateway.
[Router] ike local-name routerb
# Configure an ACL.
[Router] acl number 3101
[Router-acl-adv-3101] rule 0 permit ip source 192.168.0.0 0.0.0.255 destination 172.16.0.0
0.0.0.255
[Router-acl-adv-3101] quit
# Configure an IKE proposal.
[Router] ike proposal 1
[Router-ike-proposal-1] authentication-algorithm sha
[Router-ike-proposal-1] authentication-method pre-share
[Router-ike-proposal-1] encryption-algorithm 3des-cbc
[Router-ike-proposal-1] dh group2
# Configure an IKE peer.
[Router] ike peer peer
[Router-ike-peer-peer] exchange-mode aggressive
[Router-ike-peer-peer] pre-shared-key abc
[Router-ike-peer-peer] id-type name
[Router-ike-peer-peer] remote-name SecPath
[Router-ike-peer-peer] remote-address 100.1.1.1
[Router-ike-peer-peer] nat traversal
[Router-ike-peer-peer] quit
# Create an IPsec proposal named prop.
[Router] ipsec proposal prop
[Router-ipsec-proposal-prop] encapsulation-mode tunnel
[Router-ipsec-proposal-prop] transform esp
[Router-ipsec-proposal-prop] esp encryption-algorithm 3des
[Router-ipsec-proposal-prop] esp authentication-algorithm sha1
[Router-ipsec-proposal-prop] quit
# Create an IPsec policy that uses IKE.
[Router] ipsec policy policy 10 isakmp
# Configure the IPsec policy to reference the IKE peer.
[Router-ipsec-policy-isakmp-policy-10] ike-peer peer
# Configure the IPsec policy to reference ACL 3101.
[Router-ipsec-policy-isakmp-policy-10] security acl 3101
# Configure the IPsec policy to reference IPsec proposal prop.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS