Posts

How to create IPMP in Solaris 11

Introduction

This article is aimed to give a walk through of how to create a Ldom in SUN/SPARC M6-32 machines. It provides a complete step to step procedure from scratch to the end.

Pre-requisites

Following steps should be taken care of before creating a Logical Domain.

# ipadm
NAME              CLASS/TYPE STATE        UNDER      ADDR
lo0               loopback   ok           --         --
   lo0/v4         static     ok           --         127.0.0.1/8
   lo0/v6         static     ok           --         ::1/128
net0              ip         ok           --         --
   net0/v4        static     ok           --         172.21.20.100/24
# ipadm delete-ip net0
# ipadm delete-ip net1
# ipadm create-ip net0
# ipadm create-ip net1
   
# ipadm create-ipmp ipmp0
# ipadm add-ipmp -i net0 -i net1 ipmp0
# ipadm create-addr -T static -a 172.21.100.20/26 ipmp0/v4

How to Change the IP address in LINUX

Method 1: Command Line

Step 1: Edit in /etc/sysconfig/network File

In order to change the IP address edit the following files:

# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=tecdistro.com

Step 2: Modify in Interface

To change the interface edit the following file:
# vim /etc/network/interfaces
Also change the network script file:

# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
HWADDR=06:b8:60:e2:ad:3f
IPADDR=10.104.254.244
NETMASK=255.255.255.192

Step 3: Restart Network

Now restart the network:

/etc/init.d/network restart

Method 2: GUI Environment

Step 1: Execute setup Command

# setup

Select Network Configuration Tab
setup1

Step 2: Select Device Configuration

setup2

Step 3: Select ethernet

setup3

Step 4: Modify Network Configurations

setup4
Once the changes have made, Select SAVE & QUIT and press ENTER key from keyboard.

How to Change Hostname in Linux

Method 1: Command Line

Step 1: Edit in /etc/sysconfig/network File

In order to change the hostname edit the following file:

# sudo nano /etc/sysconfig/network
HOSTNAME=server.tecdistro.com

Step 2: Modify /etc/hosts File

Edit /etc/hosts File and enter the hostname along with IP Address of server for local use.

# vi /etc/hosts
127.0.0.1 tecdistro.com localhost.localdomain localhost
159.8.18.70 tecdistro.com tecdistro.com

Step 3: Modify the Hostname

# hostname tecdistro.com
# hostname
tecdistro.com

Step 4: Restart Network

Now restart the network:

/etc/init.d/network restart

Method 2: GUI Environment

Step 1: Execute setup Command

# setup

Select Network Configuration Tab
setup1

Step 2: Select DNS Configuration

setup5

Step 3: Modify the Hostname

setup6
Once the changes have made, Select SAVE & QUIT and press ENTER key from keyboard.