• No results found

Creating an Active-Active IPMP Configuration

In document D72965GC10_ag Solaris11 Adnace LAB (Page 104-107)

Practices for Lesson 5: Configuring Network and

Task 1: Creating an Active-Active IPMP Configuration

In this task, you configure an active-active IPMP group that consists of two network interfaces. 1. Verify that the Sol11-SuperServer and Sol11-Server1 virtual machines are running. This

can be determined by viewing the Oracle VM VirtualBox Manager window and checking the run status for each virtual machine. If the virtual machines are not running, start them now. 2. Log in to the Sol11-Server1 virtual machine as the oracle user and su to root.

3. Use the ipadm command to display the IP network interfaces that are currently configured

in the system.

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

IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok yes --

Note: If you performed the previous practice, you will not see net0 in this display. This step is shown here in case you perform this practice independently

4. Delete the net0 network interface and display the results.

root@s11-serv1:~# ipadm delete-ip net0

Aug 19 10:29:27 s11-serv1 in.ndpd[799]: Interface net0 has been removed from kernel. In.ndpd will no longer use it

Note: If you performed the previous practice, you will not see net0 in this display. This step is shown here in case you perform this practice independently

.

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

IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes --

Oracle Internal & Or

When configuring IPMP, you must assign all network interfaces that are attached to the same LAN to an IPMP group. In this step, you delete the net0 interface in preparation for configuring it in an IPMP group.

5. Rename the net0 data link to link0_ipmp0 and the net1 data link to link1_ipmp0.

Show the results.

root@s11-serv1:~# dladm rename-link net0 link0_ipmp0 root@s11-serv1:~# dladm rename-link net1 link1_ipmp0 root@s11-serv1:~# dladm show-link

LINK CLASS MTU STATE OVER link0_ipmp0 phys 1500 unknown -- link1_ipmp0 phys 1500 unknown -- net2 phys 1500 unknown -- net3 phys 1500 unknown --

6. Create IP interfaces for the link0_ipmp0 and link1_ipmp0 data links. Show the results. root@s11-serv1:~# ipadm create-ip link0_ipmp0

root@s11-serv1:~# ipadm create-ip link1_ipmp0 root@s11-serv1:~# ipadm show-if

IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- link0_ipmp0 ip down no -- link1_ipmp0 ip down no -- 7. Create an IPMP group named ipmp0.

root@s11-serv1:~# ipadm create-ipmp ipmp0

8. Add the link0_ipmp0 and link1_ipmp0 IP interfaces to the ipmp0 IPMP group and

show the results.

root@s11-serv1:~# ipadm add-ipmp –i link0_ipmp0 –i link1_ipmp0 \ ipmp0

root@s11-serv1:~# ipmpstat –g

GROUP GROUPNAME STATE FDT INTERFACES

ipmp0 ipmp0 ok -- link1_ipmp0 link0_ipmp0 9. Assign two static IP addresses to the IPMP interface to be used for data access.

root@s11-serv1:~# ipadm create-addr –T static \ –a 192.168.0.112/24 ipmp0/v4add1

root@s11-serv1:~# ipadm create-addr –T static \ –a 192.168.0.113/24 ipmp0/v4add2

10. Assign a static IP address to each IPMP subinterface to be used for link testing. root@s11-serv1:~# ipadm create-addr –T static \

–a 192.168.0.142/24 link0_ipmp0/test

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

Oracle Internal & Or

11. Display the data and test the IP addresses.

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

ADDROBJ TYPE STATE ADDR

lo0/v4 static ok 127.0.0.1/8 link0_ipmp0/test static ok 192.168.0.142/24 link1_ipmp0/test static ok 192.168.0.143/24 ipmp0/v4add1 static ok 192.168.0.112/24 ipmp0/v4add2 static ok 192.168.0.113/24 lo0/v6 static ok ::1/128

link0_ipmp0/_a static ok fe80::a00:27ff:fec0:b88a/10 link1_ipmp0/_a static ok fe80::a00:27ff:fe35:4321/10

12. Use the ipmpstat command to display the IPMP address information. root@s11-serv1:~# ipmpstat -an

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

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

Note: The INBOUND traffic is restricted to one interface depending on the IP address that is used. The OUTBOUND traffic is spread across both interfaces.

13. Use the ipmpstat command to display the IP interface information. root@s11-serv1:~# ipmpstat -i

INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE link1_ipmp0 yes ipmp0 --- up ok ok link0_ipmp0 yes ipmp0 --mbM-- up ok ok The interface FLAGS are defined as:

i = Unusable due to being INACTIVE s = Masked STANDBY

m = Nominated to send/receive IPv4 multicast for its IPMP group b = Nominated to send/receive IPv4 broadcast for its IPMP group M = Nominated to send/receive IPv6 multicast for its IPMP group d = Unusable due to being down

h = Unusable due to being brought OFFLINE by in.mpathd (IPMP daemon) because of a duplicate hardware address

14. Use the ipmpstat command to display information about test address targets.

root@s11-serv1:~# ipmpstat -nt

INTERFACE MODE TESTADDR TARGETS

link1_ipmp0 multicast 192.168.0.143 192.168.0.100 192.168.0.111 link0_ipmp0 multicast 192.168.0.142 192.168.0.100 192.168.0.111

Oracle Internal & Or

15. Use the ipmpstat command to display the current probe information. root@s11-serv1:~# ipmpstat -pn

TIME INTERFACE PROBE NETRTT RTT RTTAVG TARGET

0.49s link0_ipmp0 i195 0.70ms 1.29ms 0.71ms 192.168.0.100 0.73s link1_ipmp0 i145 0.68ms 0.96ms 1.94ms 192.168.0.100 1.38s link0_ipmp0 i196 0.59ms 0.73ms 0.71ms 192.168.0.100 2.11s link1_ipmp0 i146 0.51ms 0.69ms 1.78ms 192.168.0.100 3.25s link0_ipmp0 i197 0.50ms 0.58ms 0.70ms 192.168.0.100 3.70s link1_ipmp0 i147 0.60ms 1.01ms 1.69ms 192.168.0.100 4.58s link0_ipmp0 i198 0.56ms 0.72ms 0.70ms 192.168.0.100 5.16s link1_ipmp0 i148 0.43ms 0.60ms 1.55ms 192.168.0.100 6.04s link0_ipmp0 i199 0.53ms 0.60ms 0.69ms 192.168.0.100 6.61s link1_ipmp0 i149 0.77ms 0.84ms 1.46ms 192.168.0.100 ^C

Your display may be different.

In document D72965GC10_ag Solaris11 Adnace LAB (Page 104-107)