System Administration
Guide: IP Services
gedit /etc/hosts
192.168.56.xx database database.com
gedit /etc/nodename
database
gedit
/etc/hostname.e1000g0 //lan name
database
putty login
1. add user then login through user
groupadd oinstall
groupadd dba
groupadd oper
useradd –g oinstall –G dba
–m –d /export/home/oracle oracle
passwd oraclesvcamd restart ssh
2. alternate
gedit /etc/ssh/sshd_config
PermitRootLogin yes
How
to Add a Physical Interface After Installation in Solaris 10 3/05 ONLY
Note –
The next procedure
contains applies to users of the Solaris 10 3/05 OS only. If you are using an
update to Oracle Solaris 10, refer to How to Configure a Physical Interface After System
Installation.
how many physical network card on your machine, you should run
# dladm show-link
You will see hidden card which not yet plumb up. After that you can plum up by run
# ifconfig plumb up
And then
# ifconfig netmask
1. On the system with the interfaces to be configured, assume the Primary Administrator role or become superuser.
# dladm show-link
You will see hidden card which not yet plumb up. After that you can plum up by run
# ifconfig plumb up
And then
# ifconfig netmask
1. On the system with the interfaces to be configured, assume the Primary Administrator role or become superuser.
The Primary Administrator role includes the Primary
Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console
(Tasks), in System Administration Guide: Basic Administration.
# ifconfig interface plumb up
|
For example, for qfe0 you would type:
# ifconfig hostname.e1000g0 plumb up
Note –
Interfaces that are
explicitly configured with the ifconfig command do not
persist across a reboot.
3.
Assign an IPv4 address and netmask to the interface.
# ifconfig interface IPv4-address netmask+netmask
|
For example, for qfe0
you would type:
# ifconfig hostname.e1000g0
10.0.0.32 netmask + 255.255.255.0
|
4.
Verify that the newly configured interfaces are plumbed and
configured, or “UP.”
# ifconfig –a
|
Check the status line
for each interface that is displayed. Ensure that the output contains an UP
flag on the status line, for example:
qfe0:
flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
|
5.
(Optional) To make the interface configuration persist across
reboots, perform the following steps:
For example, to add a qfe0 interface, you would
create the following file:
# vi /etc/hostname.qfe0
|
b.
Edit the /etc/hostname.interface file.
At a minimum, add the IPv4 address of the interface to the file.
You can also add a netmask and other configuration information to the file.
Note –
To add an IPv6 address
to an interface, refer to Modifying an IPv6 Interface Configuration for Hosts and
Servers
c.
Add entries for the new interfaces into the /etc/inet/hosts file.
d.
Perform a reconfiguration boot.
# reboot -- -r
|
e.
Verify that the interface you created in the /etc/hostname.interface file has been configured.
# ifconfig –a
|
Example 5–10
Configuring an Interface After System Installation
The following example
shows how to add two interfaces, qfe0 and qfe1. These interfaces are
attached to the same network as the primary network interface, hme0.
Note that this interface configuration exists until you reboot the system. For
an example that shows how to make interface configurations persist across reboots,
see Example 6–2. However, the dladm
command that is used in that example is only available starting with the
Solaris 10 1/06 OS.
# ifconfig qfe0 plumb up
# ifconfig qfe1 plumb up
# ifconfig qfe0 10.0.0.32 netmask 255.0.0.0
# ifconfig qfe1 10.0.0.33 netmask 255.0.0.0
|
# ifconfig -a
lo0:
flags=1000849 <UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0:
flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.0.0.14 netmask ff000000
broadcast 10.255.255.255
ether 8:0:20:c1:8b:c3
qfe0:
flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.0.0.32 netmask ff000000
broadcast 10.255.255.255
ether 8:0:20:c8:f4:1d
qfe1:
flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 10.0.0.33 netmask ff000000
broadcast 10.255.255.255
ether 8:0:20:c8:f4:1e
|
See Also
·
To configure an IPv6 address onto an interface, refer to How to Enable an IPv6 Interface for the Current Session.
·
To set up failover detection and failback for interfaces using
Network Multipathing (IPMP), refer to Chapter 31, Administering IPMP (Tasks).
Note –
The next procedure
contains applies to users of the Solaris 10 3/05 OS only. If you are using an
update to Oracle Solaris 10, refer to How to Remove a Physical Interface.
1.
On the system with the interface to be removed, assume the
Primary Administrator role, or become superuser.
The Primary Administrator role includes the Primary
Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console
(Tasks), in System Administration Guide: Basic Administration.
Use the following form of the ifconfig command:
# ifconfig interfacedown unplumb
|
For example, you would remove the interface eri1
as follows:
# ifconfig eri1 down unplumb
|
2 comments:
Hi, i saw your post. And i think it lack some content. Fist, if you want to know exactly how many physical network card on your machine, you should run '# dladm show-link' . You will see hidden card which not yet plumb up. After that you can plum up by run '# ifconfig plumb up' . And then # ifconfig netmask .
Ok thanx Tran for your comment and some editing on this note.
Post a Comment