User Manual
TRex 45 / 113
5.4 IPv6 support
Support for IPv6 includes:
1. Support for pcap files containing IPv6 packets.
2. Ability to generate IPv6 traffic from pcap files containing IPv4 packets.
The --ipv6 command line option enables this feature. The keywords src_ipv6 and dst_ipv6 specify the most
significant 96 bits of the IPv6 address. Example:
src_ipv6 : [0xFE80,0x0232,0x1002,0x0051,0x0000,0x0000]
dst_ipv6 : [0x2001,0x0DB8,0x0003,0x0004,0x0000,0x0000]
The IPv6 address is formed by placing what would typically be the IPv4 address into the least significant 32 bits and copying the
value provided in the src_ipv6/dst_ipv6 keywords into the most signficant 96 bits. If src_ipv6 and dst_ipv6 are not specified, the
default is to form IPv4-compatible addresses (most signifcant 96 bits are zero).
There is IPv6 support for all plugins.
Example:
[bash]>sudo ./t-rex-64 -f cap2l/sfr_delay_10_1g.yaml -c 4 -p -l 100 -d 100000 -m 30 --ipv6
Limitations:
• TRex cannot generate both IPv4 and IPv6 traffic.
• The --ipv6 switch must be specified even when using a pcap file containing only IPv6 packets.
Router configuration:
interface TenGigabitEthernet1/0/0
mac-address 0000.0001.0000
mtu 4000
ip address 11.11.11.11 255.255.255.0
ip policy route-map p1_to_p2
load-interval 30
ipv6 enable ==> IPv6
ipv6 address 2001:DB8:1111:2222::1/64
v
1
ipv6 policy route-map ipv6_p1_to_p2
v
2
!
ipv6 unicast-routing
v
3
ipv6 neighbor 3001::2 TenGigabitEthernet0/1/0 0000.0002.0002
v
4
ipv6 neighbor 2001::2 TenGigabitEthernet0/0/0 0000.0003.0002
route-map ipv6_p1_to_p2 permit 10
v
5
set ipv6 next-hop 2001::2
!
route-map ipv6_p2_to_p1 permit 10
set ipv6 next-hop 3001::2
!
asr1k(config)#ipv6 route 4000::/64 2001::2
asr1k(config)#ipv6 route 5000::/64 3001::2










