HW命令:
bfd LJDX_CXINAN bind peer-ip 192.168.31.10 vpn-instance ChinaMobile_CXINAN interface GigabitEthernet3/0/3.2040 source-ip 192.168.31.9 auto
ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 GigabitEthernet3/0/3.2040 192.168.31.10 track bfd-session LJDX_CXINAN
对应的华三命令是啥?
(0)
最佳答案
在H3C设备上,BFD(Bidirectional Forwarding Detection)和静态路由的配置命令与华为设备有一些不同。以下是将你提供的华为命令翻译成H3C命令的示例:
### 华为命令
```sh
bfd LJDX_CXINAN bind peer-ip 192.168.31.10 vpn-instance ChinaMobile_CXINAN interface GigabitEthernet3/0/3.2040 source-ip 192.168.31.9 auto
ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 GigabitEthernet3/0/3.2040 192.168.31.10 track bfd-session LJDX_CXINAN
```
### H3C命令
#### 1. 配置BFD会话
在H3C设备中,BFD会话的配置命令如下:
```sh
<H3C> system-view
[H3C] bfd
[H3C-bfd] discriminator local 100
[H3C-bfd] discriminator remote 101
[H3C-bfd] commit
[H3C-bfd] quit
[H3C] bfd session init-mode active
[H3C] bfd session lsp-trigger enable
[H3C] bfd session vrf ChinaMobile_CXINAN
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] peer-ip 192.168.31.10
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] interface GigabitEthernet 3/0/3.2040
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] source-ip 192.168.31.9
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] discriminator local 100
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] discriminator remote 101
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] min-tx-interval 100
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] min-rx-interval 100
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] detect-multiplier 3
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] commit
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] quit
```
#### 2. 配置静态路由并关联BFD会话
在H3C设备中,静态路由的配置命令如下,并通过`track`命令关联BFD会话:
```sh
[H3C] ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 192.168.31.10 preference 60
[H3C] track 1 bfd session LJDX_CXINAN
[H3C-track-1] quit
[H3C] ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 192.168.31.10 preference 60 track 1
```
### 完整的H3C配置
```sh
<H3C> system-view
[H3C] bfd
[H3C-bfd] discriminator local 100
[H3C-bfd] discriminator remote 101
[H3C-bfd] commit
[H3C-bfd] quit
[H3C] bfd session init-mode active
[H3C] bfd session lsp-trigger enable
[H3C] bfd session vrf ChinaMobile_CXINAN
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] peer-ip 192.168.31.10
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] interface GigabitEthernet 3/0/3.2040
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] source-ip 192.168.31.9
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] discriminator local 100
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] discriminator remote 101
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] min-tx-interval 100
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] min-rx-interval 100
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] detect-multiplier 3
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] commit
[H3C-bfd-session-vrf-ChinaMobile_CXINAN] quit
[H3C] ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 192.168.31.10 preference 60
[H3C] track 1 bfd session LJDX_CXINAN
[H3C-track-1] quit
[H3C] ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 192.168.31.10 preference 60 track 1
```
### 解释
- **BFD配置**:
- `bfd`:进入BFD配置模式。
- `discriminator local 100` 和 `discriminator remote 101`:配置本地和远端的BFD会话标识符。
- `bfd session vrf ChinaMobile_CXINAN`:指定VRF实例。
- `peer-ip 192.168.31.10`:配置对端IP地址。
- `interface GigabitEthernet 3/0/3.2040`:指定接口。
- `source-ip 192.168.31.9`:配置源IP地址。
- `min-tx-interval 100` 和 `min-rx-interval 100`:设置最小发送和接收间隔。
- `detect-multiplier 3`:设置检测倍数。
- **静态路由配置**:
- `ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 192.168.31.10 preference 60`:配置静态路由。
- `track 1 bfd session LJDX_CXINAN`:创建一个Track项,关联BFD会话。
- `ip route-static vpn-instance ChinaMobile_CXINAN 10.88.31.8 255.255.255.248 192.168.31.10 preference 60 track 1`:配置静态路由并关联Track项。
通过以上配置,H3C设备可以实现类似于华为设备的BFD会话配置和静态路由关联功能。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论