Chapter 1 Oracle ZFS Storage Appliance Overview
Chapter 3 Initial Configuration
Chapter 4 Network Configuration
Network IP MultiPathing (IPMP)
Network Performance and Availability
Network Configuration Using the BUI
Network Configuration Tasks Using the BUI
Creating a single port interface
Creating a single port interface, drag-and-drop
Creating an LACP aggregated link interface
Creating an IPMP group using probe-based and link-state failure detection
Creating an IPMP group using link-state only failure detection
Creating an InfiniBand partition datalink and interface
Creating a VNIC without a VLAN ID for clustered controllers
Creating VNICs with the same VLAN ID for clustered controllers
Network Configuration Tasks Using the CLI
Changing the multihoming property to strict
Chapter 5 Storage Configuration
Chapter 6 Storage Area Network Configuration
Chapter 8 Setting ZFSSA Preferences
Chapter 10 Cluster Configuration
Chapter 12 Shares, Projects, and Schema
Network configuration is under the configuration net, which has sub commands for devices, datalinks, interfaces, and routing. The show command can be used with each to show the current configuration:
caji:> configuration net caji:configuration net> devices show Devices: DEVICE UP SPEED MAC igb0 true 1000 Mbit/s 0:14:4f:9a:b9:0 igb1 true 1000 Mbit/s 0:14:4f:9a:b9:1 igb2 true 1000 Mbit/s 0:14:4f:9a:b8:fe igb3 true 1000 Mbit/s 0:14:4f:9a:b8:ff caji:configuration net> datalinks show Datalinks: DATALINK CLASS LINKS LABEL igb0 device igb0 datalink1 caji:configuration net> interfaces show Interfaces: INTERFACE STATE CLASS LINKS ADDRS LABEL igb0 up ip igb0 192.168.2.80/22 caji caji:configuration net> routing show Properties: multihoming = loose Routes: ROUTE DESTINATION GATEWAY INTERFACE TYPE route-000 0.0.0.0/0 192.168.1.1 igb0 dhcp route-001 192.168.0.0/22 192.168.2.142 igb0 system
Type help in each section to see the relevant commands for creating and configuring datalinks, interfaces, and routes. Subcommands that are valid in this context:
help [topic] => Get context-sensitive help. If [topic] is specified, it must be one of "builtins", "commands","general", "help", "script" or "properties". show => Show information pertinent to the current context commit => Commit current state, including any changes abort => Abort creation of "vnic" done => Finish operating on "vnic" get [prop] => Get value for property [prop]. ("help properties" for valid properties.) If [prop] is not specified, returns values for all properties. set [prop] => Set property [prop] to [value]. ("help properties" for valid properties.) For properties taking list values, [value] should be a comma-separated list of values. available => Get values that can be assigned to the links parameter when creating a network component.
The available command is used to see what values can be assigned to the links parameter when creating a network component. The following shows the output from the CLI command available:
caji:configuration net datalinks> device caji:configuration net datalinks device (uncommitted)> available igb7,igb6 caji:configuration net datalinks> vnic caji:configuration net datalinks vnic (uncommitted)> available igb5,igb4,aggr2,aggr1 caji:configuration net datalinks> vlan caji:configuration net datalinks vlan (uncommitted)> available igb5,igb4,aggr2,aggr1 caji:configuration net datalinks> aggregation caji:configuration net datalinks aggregation (uncommitted)> available igb7,igb6 caji:configuration net interfaces> ip caji:configuration net interfaces ip (uncommitted)> available aggr2,aggr1 caji:configuration net interfaces> ipmp caji:configuration net interfaces ipmp (uncommitted)> available vnic4,vnic3,igb5,igb4
The following demonstrates creating a datalink using the device command, and interface using the ip command:
caji:configuration net> datalinks caji:configuration net datalinks> device caji:configuration net datalinks device (uncommitted)> set links=igb1 links = igb1 (uncommitted) caji:configuration net datalinks device (uncommitted)> set label=datalink2 label = datalink2 (uncommitted) caji:configuration net datalinks device (uncommitted)> set mtu=9000 mtu = 9000 (uncommitted) caji:configuration net datalinks device (uncommitted)> commit caji:configuration net datalinks> show Datalinks: DATALINK CLASS LINKS LABEL igb0 device igb0 datalink1 igb1 device igb1 datalink2 caji:configuration net datalinks> cd .. caji:configuration net> interfaces caji:configuration net interfaces> ip caji:configuration net interfaces ip (uncommitted)> set label="caji2" label = caji2 (uncommitted) caji:configuration net interfaces ip (uncommitted)> set links=igb1 links = igb1 (uncommitted) caji:configuration net interfaces ip (uncommitted)> set v4addrs=10.0.1.1/8 v4addrs = 10.0.1.1/8 (uncommitted) caji:configuration net interfaces ip (uncommitted)> commit caji:configuration net interfaces> show Interfaces: INTERFACE STATE CLASS LINKS ADDRS LABEL igb0 up ip igb0 192.168.2.80/22 caji igb1 up ip igb1 10.0.1.1/8 caji2
The following demonstrates creating a default route via 10.0.1.2 over the new igb1 IP interface:
caji:configuration net routing> create caji:configuration net route (uncommitted)> set family=IPv4 family = IPv4 (uncommitted) caji:configuration net route (uncommitted)> set destination=0.0.0.0 destination = 0.0.0.0 (uncommitted) caji:configuration net route (uncommitted)> set mask=0 mask = 0 (uncommitted) caji:configuration net route (uncommitted)> set interface=igb1 interface = igb1 (uncommitted) caji:configuration net route (uncommitted)> set gateway=10.0.1.2 gateway = 10.0.1.2 (uncommitted) caji:configuration net route (uncommitted)> commit