File: auto

package info (click to toggle)
vpcs 0.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 724 kB
  • sloc: ansic: 11,809; sh: 323; makefile: 40
file content (127 lines) | stat: -rw-r--r-- 2,707 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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