• No results found

Setting the virtual Ethernet adapters and trunk priority

In document AN304XSTUDHINT (Page 85-92)

EXempty Exercise 6. SEA failover setup

Part 1: Setting the virtual Ethernet adapters and trunk priority

At this point, the SEAs defined on your team's virtual I/O servers do not bridge the same VLAN ID. Your existing SEA must be removed in order to modify your virtual Ethernet adapter VLAN ID configuration. In part one, you work alone on your assigned virtual I/O server.

__ 1. Your client LPAR must be shut down before performing these steps. Open a virtual terminal or a Telnet session on your assigned AIX client LPAR, and perform a shutdown.

» Run the shutdown -F command.

__ 2. Open a console terminal window on your assigned Virtual I/O server and record the IP address, host name, network mask, default gateway, and configured DNS server IP address. Record the information here.

__ 3. Before removing the SEA configuration from your assigned VIO server, you must remove the IP address on its interface. In your virtual I/O server partition's console session, use the lsdev command to find out the SEA name. Write down the adapter name here: _______________

» Run the lsdev command. You should see the SEA name ent3 (if you have followed the steps in the previous exercises).

$ lsdev -virtual | grep Shared

Course materials may not be reproduced in whole or in part

6-6 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» Run the command:

$ rmtcpip -interface en3 Parameters to be reset:

Host name: No Name server: No

Effective immediately: Yes Routing: No

Answer y to Are you sure?

__ 5. In your Virtual I/O Server partition's console session, use the rmdev command to remove the existing SEA, and its associated interface devices. Use the SEA adapter name you wrote down in Step 3.

» If the SEA device is ent3, then run the following command sequence:

$ rmdev -dev ent3

$ rmdev -dev en3

$ rmdev -dev et3

__ 6. Edit your assigned VIO server's Normal profile and modify the virtual Ethernet adapter to use the new virtual LAN ID and priority value determined from Table 11.

Set the Trunk priority value according to your Virtual I/O Server function (primary or secondary). Keep the Access external network flag checked.

» Select your assigned VIO server and then run the Configuration > Manage Profiles task.

» Select the Normal profile, and use the Edit option on the Actions menu to edit the profile.

EXempty » On the Virtual Adapters tab, select the virtual Ethernet adapter (the adapter ID should be 11), and use the Edit option on the Actions menu to edit the Ethernet adapter properties.

» In the Virtual Ethernet Adapter Properties window, change the VLANID (Port Virtual Ethernet) to the value specified in Table 11. Set the Trunk priority to the correct value. (If your Virtual I/O Server is primary, then the Trunk priority is 1. If your Virtual I/O Server is secondary, the Trunk priority is 2.) Keep the Access external network check box selected.

» Do not close the Logical Partition Profile Properties window yet.

__ 7. Create an additional virtual Ethernet adapter. This adapter must belong to a unique VLAN on the system. It will be used as a control channel between the two SEAs to determine when a failover should take place. Use the Adapter ID 13 and set the VLAN ID as specified in Table 11 on page 6-4. Be sure to use the default VSwitch ETHERNET0(Default).

» On the Virtual Adapters tab, use the Create Virtual Adapter > Ethernet Adapter... option on the Actions menu to create a virtual adapter.

Course materials may not be reproduced in whole or in part

6-8 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» When the Create Virtual Ethernet Adapter window opens, set the Adapter ID and VLAN ID as specified in Table 11 on page 6-4. Do not check the Use this adapter for Ethernet bridging check box. Here is an example for vios1:

» Click OK to save the profile changes; then close the Profile Properties window.

__ 8. Shut down your assigned VIO server. In your virtual I/O server partition's console session, run the shutdown -force command. When shut down, use the HMC to activate it using the Normal profile.

» To activate the Virtual I/O Server, select your assigned VIO server and the Operations > Activate > Profile task.

» Select the Normal profile; then click OK.

__ 9. When activated, open a virtual terminal on your assigned Virtual I/O Server, and run the lsdev -virtual | grep ent command. You should see two virtual Ethernet adapters. If not, do not proceed. Check your partition profile.

» Here is an example command and its output, which shows ent2 and ent3. The Ethernet adapters might have different names in your environment.

$ lsdev -virtual | grep ent

ent2 Available Virtual I/O Ethernet Adapter (l-lan) ent3 Available Virtual I/O Ethernet Adapter (l-lan)

__ 10. In order to be sure that you use the proper virtual Ethernet device names when creating the SEA, run the entstat -all entX | grep VLAN command (where X is the adapter number) in your VIO server partition's console session to check the VLAN ID of each virtual Ethernet adapter. Record which virtual adapter will be used for bridging your VLAN and which one will be used as the control channel adapter.

Virtual adapter to use for creating the SEA: _______________________________

EXempty Virtual adapter to use as control channel: ________________________________

If your VLAN IDs do not match with the values in Table 11 on page 6-4, do not proceed. Check your VIO server profile configuration.

» Here is an example command and its output, which shows the VLAN IDs for the ent2 and ent3 devices. In this example, ent2 will be used as the virtual Ethernet adapter for creating the SEA, and ent3 will be used as the control channel adapter.

$ entstat -all ent2 | grep VLAN Invalid VLAN ID Packets: 0

Port VLAN ID: 10 VLAN Tag IDs: None

$ entstat -all ent3 | grep VLAN Invalid VLAN ID Packets: 0

Port VLAN ID: 19 VLAN Tag IDs: None

__ 11. Use the entstat -all entX | grep Switch command to check that both virtual Ethernet adapters are using the default virtual switch ID ETHERNET0. If not, do not proceed. Check your VIO server profile configuration.

» Here is an example command and its output, which shows ent2 and ent3 using the switch ID ETHERNET0.

$ entstat -all ent2 | grep Switch Switch ID: ETHERNET0

$ entstat -all ent3 | grep Switch Switch ID: ETHERNET0

__ 12. Modify your client LPAR VLAN ID. Edit your assigned LPAR's Normal profile, and modify the virtual Ethernet adapter to use the new virtual LAN ID value. Refer to Table 11 on page 6-4 for VLAN ID. Do not check the Access external network flag.

» Select your assigned LPAR and the Configuration > Manage Profiles task.

» Select the Normal profile, and use the Edit option on the Actions menu to edit the profile.

Course materials may not be reproduced in whole or in part

6-10 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» On the Virtual Adapters tab, select the virtual Ethernet adapter (the adapter ID should be 11), and use the Edit option on the Actions menu to edit the Ethernet adapter properties.

» In the Virtual Ethernet Adapter Properties window, change the VLANID to the value specified in Table 11. Do not check the Use this adapter for Ethernet bridging flag. Here is an example with lpar1:

» Select OK to save the profile; then close the Properties window.

EXempty __ 13. Activate your client LPAR using the Normal profile. When up and running, open a virtual console and run an entstat command to check the VLAN ID of your virtual Ethernet adapter. The value should reflect your change.

» Run the following command to see the VLAN ID of the virtual Ethernet adapter on your client partition. Here is an example with VLAN 30 on lpar3:

$ entstat -d ent0 | grep "Port VLAN ID"

Port VLAN ID: 30

Course materials may not be reproduced in whole or in part

6-12 Power Virtualization I © Copyright IBM Corp. 2009, 2013

In document AN304XSTUDHINT (Page 85-92)