• No results found

Test the Active-Active IPMP Configuration

In document D73488GC11_ag.pdf (Page 131-136)

Task: Exploring the Capabilities of the ipadm Utility Perform these steps to explore the capabilities of the ipadm utility:

Task 2: Test the Active-Active IPMP Configuration

In this task you test the active-active IPMP configuration by causing one of the subinterfaces to fail. Then you verify that the system is still accessible by using the remaining interface.

Perform these steps to test the IPMP configuration:

1. Shut down the Sol11-Server1 virtual machine.

2. Open the VirtualBox Manager GUI and click the Settings utility for the Sol11-Server1 virtual machine.

Oracle University and BOS-it GmbH & Co.KG use only

3. Under the Network settings, select Adapter 2 and set the Attached to: field to Not attached.

4. Start the Sol11-Server1 virtual machine.

5. Log in to virtual machine Sol11-Server1 as user oracle and su to root.

Oracle University and BOS-it GmbH & Co.KG use only

6. Use the ipmpstat command to display IPMP group information.

root@s11-serv1:~# ipmpstat -g

GROUP GROUPNAME STATE FDT INTERFACES

ipmp0 ipmp0 degraded 10.00s link1_ipmp0 [link0_ipmp0]

Note that link0_ipmp0 has been boxed ([link0_ipmp0]) indicated that it has failed.

7. Use the ipmpstat command to display IP interface information.

root@s11-serv1:~# ipmpstat -i

INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE link1_ipmp0 yes ipmp0 --mbM-- up ok ok link0_ipmp0 no ipmp0 --- up failed failed

Interface link0_ipmp0 is no longer active.

8. Use the ipmpstat command to display current probe information.

root@s11-serv1:~# ipmpstat -pn

Note that link0_ipmp0 is failing probe tests.

9. Move to Sol11-Desktop virtual machine and ping the IPMP data IP addresses.

root@s11-desktop:~# ping 192.168.0.112 192.168.0.112 is alive

root@s11-desktop:~# ping 192.168.0.113 192.168.0.113 is alive

10. Shut down the Sol11-Server1 virtual machine.

11. Open the VirtualBox Manager GUI and click the Settings utility for the Sol11-Server1 virtual machine.

12. Under the Network settings, select Adapter 2 and set the Attached to: field to Internal network.

Oracle University and BOS-it GmbH & Co.KG use only

13. Start the Sol11-Server1 virtual machine.

14. Log in to virtual machine Sol11-Server1 as user oracle and su to root.

15. Use the ipmpstat command to verify that the IPMP group ipmp0 STATE is ok.

root@s11-serv1:~# ipmpstat –g

GROUP GROUPNAME STATE FDT INTERFACES

ipmp0 ipmp0 ok -- link1_ipmp0 link0_ipmp0

Task 3: Create an Active-Standby IPMP Configuration

In this task you reconfigure the IPMP group ipmp0 from an active configuration to active-standby configuration.

Perform these steps to configure an active-standby IPMP configuration:

1. On the Sol11-Server1 virtual machine, display the data links.

root@s11-serv1:~# dladm show-link

LINK CLASS MTU STATE OVER link0_ipmp0 phys 1500 up -- link1_ipmp0 phys 1500 up -- net2 phys 1500 unknown -- net3 phys 1500 unknown -- 2. Rename data link net2 to link2_ipmp0 and show the results.

root@s11-serv1:~# dladm rename-link net2 link2_ipmp0 root@s11-serv1:~# dladm show-link

LINK CLASS MTU STATE OVER link0_ipmp0 phys 1500 up --

Oracle University and BOS-it GmbH & Co.KG use only

link1_ipmp0 phys 1500 up -- link2_ipmp0 phys 1500 unknown -- net3 phys 1500 unknown --

3. Create IP interfaces for data links link2_ipmp0 and show the results.

root@s11-serv1:~# ipadm create-ip link2_ipmp0

4. Add IP interfaces link2_ipmp0 to IPMP group ipmp0 and show the results.

root@s11-serv1:~# ipadm add-ipmp –i link2_ipmp0 ipmp0 root@s11-serv1:~# ipmpstat –g

GROUP GROUPNAME STATE FDT INTERFACES

ipmp0 ipmp0 ok 10.00s link2_ipmp0 link1_ipmp0 link0_ipmp0 5. Assign a static IP address to IPMP subinterface link2_ipmp0 to be used for link testing

and show the results.

root@s11-serv1:~# ipadm create-addr –T static \ –a 192.168.0.144/24 link2_ipmp0/test

root@s11-serv1:~# ipadm show-addr

link0_ipmp0/_a static ok fe80::a00:27ff:fe36:a51c/10 link1_ipmp0/_a static ok fe80::a00:27ff:fe05:424a/10 link1_ipmp0/_a static ok fe80::a00:27ff:fe92:67eb/10 6. Show the current setting of the standby property for the link2_ipmp0 interface.

root@s11-serv1:~# ipadm show-ifprop –p standby link2_ipmp0

IFNAME PROPERTY PROTO PERM CURRENT PERSISTENT DEFAULT POSSIBLE link2_ipmp0 standby ip rw off -- off on,off

Note that standby is currently turned off.

7. Set the standby property for the link2_ipmp0 interface to on and show the results.

root@s11-serv1:~# ipadm set-ifprop -p standby=on -m ip \ link2_ipmp0

Oracle University and BOS-it GmbH & Co.KG use only

root@s11-serv1:~# ipadm show-ifprop -p standby link2_ipmp0 IFNAME PROPERTY PROTO PERM CURRENT PERSISTENT DEFAULT POSSIBLE link2_ipmp0 standby ip rw on on off on,off 8. Use the ipmpstat command to display IPMP group information.

root@s11-serv1:~# ipmpstat -g

GROUP GROUPNAME STATE FDT INTERFACES

ipmp0 ipmp0 ok 10.00s link1_ipmp0 link0_ipmp0 (link2_ipmp0)

Note that interface link2_ipmp0 is enclosed in parenthesis. This indicates that the interface is set to standby.

9. Use the ipmpstat command to display IPMP address information.

root@s11-serv1:~# ipmpstat -an

ADDRESS STATE GROUP INBOUND OUTBOUND :: down ipmp0 -- --

192.168.0.113 up ipmp0 link0_ipmp0 link1_ipmp0 link0_ipmp0 192.168.0.112 up ipmp0 link1_ipmp0 link1_ipmp0 link0_ipmp0

Note that interface link2_ipmp0 is not actively used for INBOUND and OUTBOUND traffic.

10. Use the ipmpstat command to display IPMP interface information.

root@s11-serv1:~# ipmpstat -i

INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE link2_ipmp0 no ipmp0 is--- up ok ok link1_ipmp0 yes ipmp0 --- up ok ok link0_ipmp0 yes ipmp0 --mbM-- up ok ok

Note the flags for interface link2_ipmp0. This indicates that the interface is inactive and set to standby.

In document D73488GC11_ag.pdf (Page 131-136)