You can specify an MTU value from 1500 to 16000 bytes. The specified MTU must match the MTU of the physical network device that is assigned to the virtual switch.
Do one of the following:
Enable jumbo frames on a new virtual switch device in the service domain by specifying its MTU as a value of the mtu property.
primary# ldm add-vsw net-dev=device mtu=value vswitch-name ldom
In addition to configuring the virtual switch, this command updates the MTU value of each virtual network device that will be bound to this virtual switch.
Enable jumbo frames on an existing virtual switch device in the service domain by specifying its MTU as a value of the mtu property.
primary# ldm set-vsw net-dev=device mtu=value vswitch-name
In addition to configuring the virtual switch, this command updates the MTU value of each virtual network device that will be bound to this virtual switch.
The following example shows how to add a new virtual switch device that uses an MTU value of 9000. This MTU value is propagated from the virtual switch device to all of the client virtual network devices.
First, the ldm add-vsw command creates the virtual switch device, primary-vsw0, with an MTU value of 9000. Note that instance 0 of the network device nxge0 is specified as a value of the net-dev property.
primary# ldm add-vsw net-dev=nxge0 mtu=9000 primary-vsw0 primary
Next, the ldm add-vnet command adds a client virtual network device to this virtual switch, primary-vsw0. Note that the MTU of the virtual network device is implicitly assigned from the virtual switch to which it is bound. As a result, the ldm add-vnet command does not require that you specify a value for the mtu property.
primary# ldm add-vnet vnet01 primary-vsw0 ldom1
Depending on the version of the Oracle Solaris OS that is running, do the following:
Oracle Solaris 10 OS: The ifconfig command creates the virtual switch interface in the service domain, primary. The ifconfig vsw0 command output shows that the value of the mtu property is 9000.
primary# ifconfig vsw0 plumb primary# ifconfig vsw0 192.168.1.100/24 up primary# ifconfig vsw0 vsw0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 9000 index 5 inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255 ether 0:14:4f:fa:0:99
The ifconfig command creates the virtual network interface in the guest domain, ldom1. The ifconfig vnet0 command output shows that the value of the mtu property is 9000.
primary# ifconfig vnet0 plumb primary# ifconfig vnet0 192.168.1.101/24 up primary# ifconfig vnet0 vnet0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 9000 index 4 inet 192.168.1.101 netmask ffffff00 broadcast 192.168.1.255 ether 0:14:4f:f9:c4:13
Oracle Solaris 11 OS: Use the ipadm command to view the mtu property value of the primary interface.
# ipadm show-ifprop -p mtu net0 IFNAME PROPERTY PROTO PERM CURRENT PERSISTENT DEFAULT POSSIBLE net0 mtu ipv4 rw 9000 -- 9000 68-9000
The ipadm command creates the virtual network interface in the guest domain, ldom1. The ipadm show-ifprop command output shows that the value of the mtu property is 9000.
primary# ipadm create-ip net0 primary# ipadm create-addr -T static -a 192.168.1.101/24 net0/ipv4 primary# ipadm show-ifprop -p mtu net0 IFNAME PROPERTY PROTO PERM CURRENT PERSISTENT DEFAULT POSSIBLE net0 mtu ipv4 rw 9000 -- 9000 68-9000
The following example shows how to change the MTU of the interface to 4000.
Note that the MTU of an interface can only be changed to a value that is less than the MTU of the device that is assigned by the Logical Domains Manager. This method is useful when VLANs are configured and each VLAN interface requires a different MTU.
Oracle Solaris 10 OS: Use the ifconfig command.
primary# ifconfig vnet0 mtu 4000 primary# ifconfig vnet0 vnet0: flags=1201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS,FIXEDMTU> mtu 4000 index 4 inet 192.168.1.101 netmask ffffff00 broadcast 192.168.1.255 ether 0:14:4f:f9:c4:13
Oracle Solaris 11 OS: Use the ipadm command.
primary# ipadm set-ifprop -p mtu=4000 net0 primary# ipadm show-ifprop -p mtu net0 IFNAME PROPERTY PROTO PERM CURRENT PERSISTENT DEFAULT POSSIBLE net0 mtu ipv4 rw 4000 -- 9000 68-9000