1. 程式人生 > >使用Spirent配置IS-IS,Device

使用Spirent配置IS-IS,Device

int enc 實現 style gate resolv 只為 idt nal

Spirent的大體配置可以分為一下幾個部分

1,配置Device

  GUI給定的配置流程:

  select Ports

  select Protocols

  select Encapsulation

  (configure Vlans)

  configure Device  見表一    

  configure IS-IS   Network Type: P2P

  preview

表一( 兩個儀表對接,只為測試環境使用)

Router ID Vlan IPv4 Gateway Mac
spt-1 11.11.11.11 402 66.66.1.2 66.66.1.1 00:10:94:00:00:66
spt-2 44.44.44.44 402 66.66.1.1 66.66.1.2 00:10:94:00:00:88

2,配置Generator Routes

  select IS-IS level

  select Routes

  configure Topology  Total number of simulated routes: 1, Max Interfaces: 0

  configure IS-IS

  configure IPv4 Internal Routes

  configure IPv4 External Routes

3,編輯IS-IS LSPs,添加IPv4 Routes

  Edit LSPs

    LSPs add Devices

      Start IPv4 Prefix  Spt-1: 10.10.10.1 , Spt-2: 40.40.40.1

      Prefix length     32

4,啟動Device

  Router State        Up

  Three-Way P2P Adjacency  Up

5,學習ARP

  IPv4 Gateway Mac Resolve State  Resolved

6,添加Bound Stream Blocks

  Ports

  Endpoints   Select IS-IS Devices

  Frame Size

  Frame

  Traffic Load

  Rx Port

我們自動化函數則由四個函數實現

tcl_SPT_EmulatedDevice_Set

tcl_SPT_ISISIPV4_set

tcl_SPT_StartDevice

tcl_SPT_IPV4BoundStream_Set

eg:

tcl_SPT_Connect 200.200.1.210
tcl_SPT_port_set 1:10:1 10fiber
tcl_SPT_port_set 1:10:2 10fiber
tcl_SPT_generator_set 1:10:1 -SchedulingMode RATE_BASED -DurationMode CONTINUOUS -LoadMode FIXED
tcl_SPT_generator_set 1:10:2 -SchedulingMode RATE_BASED -DurationMode CONTINUOUS -LoadMode FIXED
tcl_SPT_EmulatedDevice_set 1:10:1:402:device1 -routerid 11.11.11.11 -ipaddr 66.66.1.2 -gateway 66.66.1.1 -vlan 402
tcl_SPT_ISISIPV4_set 1:10:1:402:device1 -IpVersion "IPV4" -Level "LEVEL2" -NetworkType "P2P" -ip "10.10.10.1" -mask 32 -count 1
tcl_SPT_EmulatedDevice_set 1:10:2:402:device1 -routerid 44.44.44.44 -ipaddr 66.66.1.1 -gateway 66.66.1.2 -vlan 402
tcl_SPT_ISISIPV4_set 1:10:2:402:device1 -IpVersion "IPV4" -Level "LEVEL2" -NetworkType "P2P" -ip "40.40.40.1" -mask 32 -count 1
tcl_SPT_StartDevice 1:10:1:402:device1 1:10:2:402:device1
tcl_SPT_IPV4BoundStream_set 1:10:1:402:device1 1:10:2:402:device1

總結

在使用GUI配置Spirent時,能夠明顯感受到其ISIS,Device,Port之間的依賴關系。

使用Spirent配置IS-IS,Device