Chapter 5
67
mymachine> ip route
route add testnet2
192.168.102.0 192.168.2.34 ff:ff:ff:00 1 #
MAN 58s/1m via ether *
route add testnet1
192.168.101.0 192.168.2.34 ff:ff:ff:00 1 #
MAN via ether
route add default 0.0.0.0 192.168.2.3 00:00:00:00 1 # MAN via
ether
5.4.7.14 stats
Syntax:
stats arp | icmp | ip | tcp | udp [reset]
stats help [<cmd> | all]
Description:
Displays or clears a subset of IP statistics.
Example:
mymachine> ip stats udp
ip: UDP receptions delivered to users: 0
ip: UDP receptions with no users: 170
ip: Otherwise discarded UDP receptions: 0
ip: Transmitted UDP packets: 35
mymachine> ip stats udp reset
mymachine> ip stats udp
ip: UDP receptions delivered to users: 0
ip: UDP receptions with no users: 0
ip: Otherwise discarded UDP receptions: 0
ip: Transmitted UDP packets: 0
5.4.7.15 subnet
Syntax:
subnet
subnet add <name> <i/f> <IP address> <mask>
subnet delete <name>
subnet flush