site to site 配置命令
时间: 2023-11-17 15:07:46 浏览: 173
Hive配置(Oracle数据库为元数据)
Site-to-Site VPN 配置命令包括以下步骤:
1. 配置 IKE 阶段 1 参数:
```
crypto ikev2 policy 10
encryption aes-256
integrity sha256
group 16
prf sha256
lifetime seconds 28800
exit
```
2. 配置 IKE 阶段 2 参数:
```
crypto ikev2 proposal my-proposal
encryption aes-gcm-256
integrity sha256
group 16
exit
```
3. 建立 IPSec 隧道:
```
crypto ipsec transform-set my-set esp-aes-gcm-256 esp-sha256-hmac
crypto map my-map 10 ipsec-isakmp
set peer <对端公网IP>
set ikev2-profile my-profile
set transform-set my-set
match address <本地子网>
exit
```
4. 指定 IKE 配置文件:
```
crypto ikev2 profile my-profile
match identity remote address <对端公网IP>
authentication remote pre-share key <共享密钥>
authentication local pre-share key <共享密钥>
keyring local my-keyring
exit
```
5. 配置密钥环:
```
keyring local my-keyring
pre-shared-key address <对端公网IP> key <共享密钥>
exit
```
以上是 Cisco IOS 的配置命令示例,具体命令因厂商和设备型号而异,需要根据实际情况进行调整。
阅读全文