set echo on
1
dhcp -d -x -r
sh ip 1

2
ip auto

3
ip 192.168.11.2 192.168.11.1 24
ip 2001:11::2

4
ip 192.168.12.2 /24 192.168.12.1

5
ip 192.168.3.5 255.255.255.0 192.168.3.254

6
ip 192.168.3.6 24

7
ip 192.168.4.7 24

8
ip 192.168.4.8 192.168.4.1 24

9
ip 192.168.3.9 192.168.3.1 24

set echo off
slee 5 "Testing"
1
echo ping VPCS4: 192.168.12.2, all worked
p 192.168.12.2 -1 -c 2 -i 1
p 192.168.12.2 -2 -c 2 -i 1 -l 128
p 192.168.12.2 -3 -c 2
p 192.168.12.2 -3 -f s -c 2
echo ------------------------------------

echo ping VPCS4 gateway: 192.168.12.1, all worked
p 192.168.12.1 -3 -c 2
p 192.168.12.1 -3 -c 2 -p 23
p 192.168.12.1 -3 -f s -c 2
echo ------------------------------------
echo ping nonexist host
p 192.168.12.13 -1 -c 2
p 192.168.12.13 -2 -c 2
p 192.168.12.13 -3 -c 2
p 192.168.111.111 -1 -c 2
p 192.168.111.111 -2 -c 2
p 192.168.111.111 -3 -c 2
p 0.0.0.0 -1 -c 2
p 255.255.255.255 -1 -c 2
echo ------------------------------------

echo ping Google DNS
p 8.8.8.8 -c 2
p 8.8.8.8 -c 2 -2 -p 53
p 8.8.8.8 -c 2 -3 -p 80
p 8.8.8.8 -c 2 -3 -p 80 -f s
echo ------------------------------------

echo ping Google.Com, icmp and tcp:80
set dump detail
p www.google.com -c 2
p www.google.com -c 2 -3 -p 80
set dump off
echo ------------------------------------

echo trace 192.168.12.2
t 192.168.12.2 8
t 192.168.12.2 -P 1 8
t 192.168.12.2 -P 6 -m 8
echo ------------------------------------

echo trace Google.Com
t www.google.com -m 8
echo ------------------------------------

5
echo test icmp redirect
p 192.168.12.2 -c 2
echo ------------------------------------

echo ping in the same vlan
p 192.168.3.254 -c 2
echo ------------------------------------

echo ping different vlan
p 192.168.3.6
echo ------------------------------------

echo ************************************
echo *** test IPV6 ***
7
echo ping fe80::250:79ff:fe66:6807, worked
set dump detail
ping fe80::250:79ff:fe66:6807 -c 2
set d off
echo ------------------------------------

1
echo ping fe80::250:79ff:fe66:6801, not worked
ping fe80::250:79ff:fe66:6801 
echo ------------------------------------

echo -- ping from 2001:11::2 to 2001:11::1 router ----
3
p 2001:11::1 -3 -c 2
p 2001:11::1 -3 -c 2 -p 23
p 2001:11::1 -3 -c 2 -p 23 -f s
echo ------------------------------------

echo -- ping from 2001:11::2 to 2001:1::250:79ff:fe66:6801 ----
p 2001:1::250:79ff:fe66:6801 -1 -c 2
p 2001:1::250:79ff:fe66:6801 -2 -c 2
set dump detail
p 2001:1::250:79ff:fe66:6801 -3 -c 2 -f s -P 80
set dump off
echo ------------------------------------

echo -- tracerouter from PC3, 6801 can be reached, 6904 is not exist  --
t 2001:1::250:79ff:fe66:6801 5
t 2001:1::250:79ff:fe66:6904 5
echo ------------------------------------
quit
