Network management on NetApp Data OnTAP.
Related commands:
ifconfig
ifstat
netstat
route
routed
Related configuration:
/etc/rc
/etc/hosts: 1021 characters per line and 34 entries total are hard limits
/etc/resolv.conf
/etc/nsswitch.conf
Config samples:
ifconfig {if_name} {IP_Addr} [(mask {subnet_mask})|(prefixlen {prefix_length})]: if neither subnet mask nor prefix length is specified, default subnet will be automatically assigned by class boundary in IPv4.
ifconfig {if_name} {trusted|untrusted}: untrusted interface can’t be remote managed by SSH/Telnet, but will reply ICMP request. BUT it can’t ping others actively.
ifconfig {if_name} mtusize 9000: MTU size set to 9000 (Jumbo frame)
Hostname change:
- modify /etc/hosts
- hostname {new_name}
options dns.domainname {domain_name}
options dns.enable {on|off}
options dns.cache.enable {on|off}
Status viewing:
ifconfig -a: display status of interfaces
ifconfig {if_name} {up|down}
ifstat -a: display counters of all interfaces
ifstat -z -a:clear all counters
netstat -aM: mapping context of each TCP connection
netstat -aB: Number of bytes of data sent and recieved over each TCP connection
route -sn (netstat -rn): display the current routes
U: Up, G: Gateway, H: the route to a host, R: Reject when an ARP expired or can’t be resolved, D: dynamic route by router redirect or RIP, M: route modified by router redirect, C: cloning, L: data-link layer information, S: static
routed [-n] status
dns {info|flush}
Troubleshooting:
netdiag
ping
pktt
pktt start {if_name} -d {path} -s {max_file_size} -b {buffer_size}: begin a packet sent/recieved sniffer. The file can be openen by Wireshark
pktt stop {all|if_name}
traceroute
traceroute -n {ip_addr}
ping6
ndp
traceroute6