标签:ber number base ice col evel ase p2p select
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之间的依赖关系。
标签:ber number base ice col evel ase p2p select
原文地址:http://www.cnblogs.com/hazemaker/p/7652814.html