Monday, 31 March 2014

Initial Network Configuration for Solaris 10

Solaris initial network configuration for multiple networks and for oracle database private communication.

Console                                        
-bash-3.2#
-bash-3.2# dladm show-dev
bge0            link: down      speed: 0     Mbps       duplex: unknown
bge1            link: down      speed: 0     Mbps       duplex: unknown
nxge0           link: unknown   speed: 0     Mbps       duplex: unknown
nxge1           link: unknown   speed: 0     Mbps       duplex: unknown
nxge2           link: up        speed: 1000  Mbps       duplex: full
nxge3           link: up        speed: 1000  Mbps       duplex: full

Remarks
dladm show-dev displays all network interfaces internal or external. It also shows the state and speed of each interface.


-bash-3.2# ifconfig plumb nxge1 up
Use ifconfig plumb nxe1 up to bring interface up. Once up interface will show speed if network cables are connected.

-bash-3.2# vi /etc/hostname.nxge3
10.46.191.51 netmask 255.255.255.240 broadcast + up
To assign IP address to an interface configure its hostfile as mentioned, this way the IP assigned permanently. Just type mentioned line and erase everything else.

-bash-3.2# svcadm restart network/physical
To apply new settings restart network services

-bash-3.2# netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
10.46.191.48         10.46.191.50         U         1          0 nxge2    
10.46.193.48         10.46.193.50         U         1          1 nxge3    
191.168.53.96        191.168.53.106       U         1          0 bge0     
191.169.53.96        191.169.53.107       U         1          0 bge1     
224.0.0.0            191.168.53.106       U         1          0 bge0     
127.0.0.1            127.0.0.1            UH        1          0 lo0 

Check routing table.

-bash-3.2# ping 10.40.29.11
-bash-3.2# route add -p default 10.46.191.62
add net default: gateway 10.46.191.62

Add Host’s FE gateway as default route, put –p to make it persistent

-bash-3.2# netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default                    10.46.191.62         UG        1          0          
10.46.191.48         10.46.191.50           U         1          1 nxge2    
10.46.193.48         10.46.193.50           U         1          1 nxge3    
191.168.53.96       191.168.53.106       U         1          0 bge0     
191.169.53.96       191.169.53.107       U         1          0 bge1     
224.0.0.0                191.168.53.106       U         1          0 bge0     
127.0.0.1                127.0.0.1                 UH        1          0 lo0      

You may also need to configure other routes for AD and other connectivity.