Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solaris IPMP Link mode

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

IPMP can be configured with Link mode after Solaris 10.

In a Solaris 10-bit environment, configure

Configure the network card ce1. The interface has not been configured before, if any

Ifconfig ce1 unplumb

All are cleared, and all subinterfaces such as ce1:1 are also deleted.

Configure the ce1 interface:

Ifconfig ce1 plumb 192.168.1.10 netmask + broadcast + group IPMP0 up

When you configure the home interface, the IP address of the service is 192.168.1.10 the Probe link mode differs from the IP address and is unique. If there is a definition in the hosts file, the ip address can be replaced by a name. Netmask is already defined in the file / etc/inet/netmasks, and the name of the group is IPMP0. Finally, with a click of up, start

Configure the ce5 interface:

Ifconfig ce5 plumb group IPMP0 up

Ce5 interface is also empty configuration, do not configure anything, just join the IPMP0 group.

After configuration, use ifconfig-a to have a look.

# ifconfig-a

Lo0: flags=2072000749 [UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1

Inet 127.0.0.1 netmask ff000000

Ce1: flags=1000793 [UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 2

Inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255

Groupname IPMP0

Ether 0:14:4f:2a:ef:67

Ce5: flags=1000563 [UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 3

Inet 0.0.0.0 netmask ff000000

Groupname IPMP0

Ether 0:14:4f:2a:ef:71

You can see that there is no IP address on the ce5 interface. Check it through the switch.

Cisco switches: sh arp and sh mac addr

You can see that the mac address corresponding to ip address 192.168.1.10 is on the switch interface corresponding to ce1.

Shut down the interface corresponding to switch ce1

View server log

Tail / var/adm/messages

In.mpathd process

You can see the ce1 interface down, and then the ipmp group detects the action, resulting in a migration from ce1 to ce5

At this time, look at the network card information.

# ifconfig-a

Lo0: flags=2072000749 [UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1

Inet 127.0.0.1 netmask ff000000

Ce1: flags=1000793 [UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 2

Inet 0.0.0.0 netmask ffffff00 broadcast 192.168.1.255

Groupname IPMP0

Ether 0:14:4f:2a:ef:67

Ce5: flags=1000563 [UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 3

Inet 0.0.0.0 netmask ff000000

Groupname IPMP0

Ether 0:14:4f:2a:ef:71

Ce5:1 flags=1000563 [UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 3

Inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255

The ip address of interface ce1 has disappeared (inet 0.0.0.0). Instead of changing the ip address, ce5 has a subinterface of ce5:1 configured with the IP address that should appear.

If the configuration is only in memory, the restart of the machine will be gone, and the configuration needs to be written to / etc/hostname to save. In the interface

This is / etc/hostname.ce1.

192.168.1.10 netmask + broadcast + group IPMP0 up

And / etc/hostname.ce5

Group IPMP0 up

The above configuration is in dual active mode, and active and standby can be configured.

Ifconfig ce5 group IPMP0 standby up

The interface becomes a standby interface, such as a long-term one, save / etc/hostname.ce5

Sometimes it is necessary to temporarily remove an interface from the group

Ifconfig ce5 group ""

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report