Table of Contents

NetApp Data ONTAP 7-Mode CLI Commands [Old Device]

Netapp :: Network

Basic Knowlege

About VIF

types of VIFs
Types Note
Single-mode VIF only one of the interfaces in the vif is active.
The other interfaces are on standby, ready to take over if the active interface fails.
Multi-mode VIF all interfaces in the vif are active and share a common MAC address.
This mode is also in compliance with the IEEE 802.3ad (dynamic) standard which is the Link aggregation control protocol (LACP).


Commands

IP Address

Operation Command Complement
Check Network Configuration ifconfig -a
IP Address Setting ifconfig e0 IPADDRESS
ifconfig e0a IPADDRESS
Delete IP Address ifconfig e0 0
subnetmask Setting ifconfig e0a netmask SUBNET_MASK_ADDRESS
ifconfig e3a netmask 255.255.255.0
broadcast Setting ifconfig e0a BROADCAST_ADDRESS
ifconfig e3a broadcast 192.168.25.250

Routing

Operation Command Complement
Turning routed on or off routed on
routed off
Display routing table netstat -rn
Add routing route add default 192.168.100.1
route add net 10.50.0.0/24 192.168.0.1
route add host 192.168.0.100 192.168.0.1
Delete routing route delete net 10.50.0.0/24 192.168.0.1

VIF (Virtual Interface)

netapp1>vif create multi vif0 e6d e7d
netapp1>ifconfig vif0 172.31.254.10 netmask 255.255.255.0
netapp1>ifconfig vif0 up

netapp1>vif status vif0

VLAN

> vlan create vif0 201 202 
> ifconfig vif0-201 192.168.5.6 netmask 255.255.255.0 partner vif0-201 
> ifconfig vif0-202 192.168.15.6 netmask 255.255.255.0 partner vif0-202 
> vif create lacp vif0a -b ip e0a e0b
> vlan create vif0a 112 113
> ifconfig vif0a-112 172.16.33.45 netmask 255.255.255.0
> ifconfig vif0a-113 10.10.23.12 netmask 255.255.255.0

Displaying network interface statistics

Operation Command Complement
packets sent and received
collisions and other errors
ifstat

Etc

Operation Command Complement
Check hosts rdfile /etc/hosts


Examples

ifconfig -a

> ifconfig -a
e0a: flags=0x9f0c867<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        ether 02:a0:98:31:xx:aa (auto-1000t-fd-up) flowcontrol full
        trunked int1
e0b: flags=0x9f0c867<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        ether 02:a0:98:31:xx:aa (auto-1000t-fd-up) flowcontrol full
        trunked int1
e0c: flags=0x9f0c867<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        ether 02:a0:98:31:xx:aa (auto-1000t-fd-up) flowcontrol full
        trunked int1
e0d: flags=0x9f0c867<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        ether 02:a0:98:31:xx:aa (auto-1000t-fd-up) flowcontrol full
        trunked int1
e0M: flags=0x2b4c867<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM,MGMT_PORT> mtu 1500
        inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255 noddns
        partner e0M (not in use)
        ether 00:a0:98:31:xx:bb (auto-100tx-fd-up) flowcontrol full
e0P: flags=0x2b4c867<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM,ACP_PORT> mtu 1500 PRIVATE
        inet 192.168.2.11 netmask 0xfffffc00 broadcast 192.168.2.255 noddns
        ether 00:a0:98:31:xx:cc (auto-100tx-fd-up) flowcontrol full
lo: flags=0x1b48049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu 8160
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1
        ether 00:00:00:00:00:00 (VIA Provider)
losk: flags=0x40a400c9<UP,LOOPBACK,RUNNING> mtu 9188
        inet 127.0.20.1 netmask 0xff000000 broadcast 127.0.20.1
int1: flags=0x22f4c863<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        inet 192.168.0.250 netmask 0xffffff00 broadcast 192.168.0.255
        ether 02:a0:98:31:xx:aa (Enabled interface groups)