beautypg.com

Amer Networks E5Web GUI User Manual

Page 250

background image

Combining -srcif with -srcip

It is possible to combine -srcip with the -srcif option to simulate a packet arriving on a given
interface with a given source IP. This is probably the most common way that both of these
options are used.

In this example it can also be seen how the simulation will also show any pipe rules that are
triggered:

Device:/> ping 10.6.58.10 -srcif=lan -srcip=192.168.3.1 -verbose

Rule and routing information for ping:
PBR selected by rule "iface_member_main" - PBR table "main"

allowed by rule "nat_all_wan"

piped by rule "out_pipe" - Fwd Chain: out

piped by rule "out_pipe" - Ret Chain: in

Sending 1 4-byte ICMP ping to 10.6.58.10 from 192.168.3.20
sent via route "0.0.0.0/0 via lan, gw 192.168.3.1" in PBR table "main"
ICMP Reply from 10.6.58.10

seq=0

time= 10 ms

TTL=247

Ping Results:

Sent: 1, Received:1, Avg RTT: 10.0 ms

The above output shows how a Pipe Rule object called out_pipe is triggered.

These options could also be combined further with the -tcp and port options.

Ping with IPv6

So far, the use of the ping command has been discussed only for IPv4 addresses. IPv6 addresses
can also be pinged and this is discussed in Section 3.2, “IPv6 Support”

Chapter 3: Fundamentals

250

This manual is related to the following products: