好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



 

1.2.3  BFD for ISIS配置举例

 

组网需求

l           两台路由器Router ARouter B通过Hub互连,并且在双方接口上使能BFD应用,之间运行IS-IS,网络层相互可达。

l           当断开Router AHub之间的链路后,BFD能够快速检测并通告IS-IS协议。

           图1  BFD for ISIS配置举例组网图

配置思路

l              配置ISIS基本功能

l              配置BFD for ISIS

 

配置步骤

路由器A的配置

 

# 配置ISIS基本功能

<RouterA> system-view

[RouterA] isis

[RouterA-isis-1] network-entity 10.0000.0000.0001.00

[RouterA-isis-1] quit

[RouterA] interface gigabitEthernet 3/1/1

[SwitchA-GigabitEthernet3/1/1] ip address 10.1.1.102 24

[RouterA-GigabitEthernet3/1/1] isis enable

[RouterA-GigabitEthernet3/1/1] isis bfd enable

 

 

# 配置各路由器接口及BFD参数

<RouterA> system-view

[RouterA] bfd session init-mode active

[RouterA] interface gigabitEthernet 3/1/1

[RouterA-GigabitEthernet3/1/1] bfd min-receive-interval 400

[RouterA-GigabitEthernet3/1/1] bfd min-transmit-interval 400

[RouterA-GigabitEthernet3/1/1] bfd detect-multiplier 7

 

 

                    

路由器B的配置

# 配置ISIS基本功能

<RouterB> system-view

[RouterB] isis

[RouterB-isis-1] network-entity 10.0000.0000.0002.00

[RouterB-isis-1] quit

[RouterB] interface gigabitEthernet 3/1/2

[SwitchB-GigabitEthernet3/1/2] ip address 10.1.1.100 24

[RouterB-GigabitEthernet3/1/2] isis enable

[RouterB-GigabitEthernet3/1/2] isis bfd enable

 

 

# 配置各路由器接口及BFD参数

<RouterA> system-view

[RouterB] bfd session init-mode active

[RouterB] interface gigabitEthernet 3/1/2

[RouterB-GigabitEthernet3/1/2] bfd min-receive-interval 400

[RouterB-GigabitEthernet3/1/2] bfd min-transmit-interval 400

[RouterB-GigabitEthernet3/1/2] bfd detect-multiplier 7

 

 

 

验证结果

可通过以下方式验证上述配置:

[RouterA]dis bfd session ver

 Total Session Num: 1            Init Mode: Active

 Session Working Under Ctrl Mode:

     Local Discr: 4                   Remote Discr: 5

       Source IP: 10.1.1.102     Destination IP: 10.1.1.100

   Session State: Up                     Interface: GigabitEthernet3/1/1

 Min Trans Inter: 400ms            Act Trans Inter: 400ms

  Min Recv Inter: 400ms           Act Detect Inter: 2800ms

  Establish Time: 273:21:34         Last Down Time: 273:21:34

    Last Up Time: 273:21:36              Auth mode: None

    Connect Type: Direct                 Board Num: 3

        Protocol: ISIS_BR_L1/ISIS_BR_L2

       Diag Info: No Diagnostic     

 

           

[RouterB]dis bfd session ver

 Total Session Num: 1            Init Mode: Active

 Session Working Under Ctrl Mode:

     Local Discr: 5                   Remote Discr: 4

       Source IP: 10.1.1.100     Destination IP: 10.1.1.102

   Session State: Up                     Interface: GigabitEthernet3/1/2

 Min Trans Inter: 400ms            Act Trans Inter: 400ms

  Min Recv Inter: 400ms           Act Detect Inter: 2800ms

  Establish Time: 272:56:22         Last Down Time: 272:56:22

    Last Up Time: 272:56:23              Auth mode: None

    Connect Type: Direct                 Board Num: 3

        Protocol: ISIS_BR_L1/ISIS_BR_L2

       Diag Info: No Diagnostic

 

 

配置文件

Router A配置文件

[RouterA]dis cur

#

 version 5.20, Ess 3121

#

 sysname RouterA

#

 password-control login-attempt 3 exceed lock-time 120

#

 domain default enable system

#

 ipv6

#

 telnet server enable

#

 xbar load-single

#

vlan 1

#

vlan 100

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

isis 1

 network-entity 10.0000.0000.0002.00

#

interface NULL0

#

interface GigabitEthernet3/1/1

 port link-mode route

 ip address 10.1.1.102 255.255.255.0

 isis enable 1

 isis bfd enable

 bfd detect-multiplier 7

#

interface GigabitEthernet3/1/5

 port link-mode route

 shutdown

#

interface GigabitEthernet3/1/8

 port link-mode route

#

interface GigabitEthernet3/1/9

 port link-mode route

#

interface GigabitEthernet3/1/10

 port link-mode route

 shutdown

#

interface GigabitEthernet3/1/2

 port link-mode bridge

 shutdown

#

interface GigabitEthernet3/1/3

 port link-mode bridge

#

interface GigabitEthernet3/1/4

 port link-mode bridge

#

interface GigabitEthernet3/1/6

 port link-mode bridge

#

interface GigabitEthernet3/1/7

 port link-mode bridge

#

interface M-Ethernet4/0/0

 ip address 191.1.1.231 255.255.255.0

#

user-interface con 0

 idle-timeout 0 0

user-interface aux 0

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

user-interface vty 0 4

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

#

return    

 

 

Router A配置文件

[RouterB]dis cur

#

 version 5.20, Ess 3121

#

 sysname RouterB

#

 password-control login-attempt 3 exceed lock-time 120

#

 domain default enable system

#

 ipv6

#

 telnet server enable

#

 xbar load-single

#

 bfd echo-source-ip 10.10.10.10

#

vlan 1

#

vlan 100

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

isis 1

 network-entity 10.0000.0000.0001.00

#

interface NULL0

#

interface GigabitEthernet3/1/3

 port link-mode route

#

interface GigabitEthernet3/1/4

 port link-mode route

#

interface GigabitEthernet3/1/6

 port link-mode route

#

interface GigabitEthernet3/1/2

 port link-mode route

 ip address 10.1.1.100 255.255.255.0

 isis enable 1

 isis bfd enable

 bfd detect-multiplier 7

#

interface GigabitEthernet3/1/8

 port link-mode route

#

interface GigabitEthernet3/1/9

 port link-mode route

#

interface GigabitEthernet3/1/10

 port link-mode route

 shutdown

#

interface GigabitEthernet3/1/1

 port link-mode bridge

#

interface GigabitEthernet3/1/7

 port link-mode bridge

#

interface GigabitEthernet3/1/5

 port link-mode bridge

#

interface M-Ethernet4/0/0

 ip address 191.1.1.232 255.255.255.0

 ospf trans-delay 23

#

user-interface con 0

 idle-timeout 0 0

user-interface aux 0

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

user-interface vty 0 4

 authentication-mode none

 user privilege level 3

 idle-timeout 0 0

#

return   

 

 

X Close
X Close