A quick way to tell is use dmesg, this will give you information on the physical hardware. Look for le0, iprb0,
elxl0, or rtls0. These are the names assigned to the physical devices.
To get the interface name for ethernet, type dmesg | grep ether. Let's assume that it is elxl0
prtconf -D|grep net" - List of available interfaces
$ grep net /etc/path_to_inst
"/pci@8,700000/pci@5/pci@0/network@0" 0 "ce"
"/pci@8,700000/pci@5/pci@0/network@1" 1 "ce"
"/pci@8,700000/pci@5/pci@4/network@2" 2 "ce"
"/pci@8,700000/pci@5/pci@4/network@3" 3 "ce"
"/pci@8,600000/network@1" 0 "ge"
"/pci@9,700000/network@1,1" 0 "eri"
Setting up Dynamic address
Create an empty file called /etc/hostname.
# ifconfig elx10 plumb; ifconfig elx10 up
Creating this file ensures that the interface gets plumbed.
By plumbing, it implements the TCP/IP stack ie.,
the OS sets up the streams needed for TCP/IP to use the device
and makes it ready for the DHCP software to do its stuff
Behind the scenes: During the boot process, the OS reads all the /etc/hostname.* files and plumbs the devices.
Once plumbed, the devices are configured by reading the /etc/hosts and the /etc/netmasks file
create /etc/dhcp.
It is important to note that the dhcp client daemon,
dhcpagent will be started only if /etc/dhcp.interface file exists.
By default, ifconfig will wait for 30 sec for the DHCP server to respond and then the boot process continues,
while the interface gets configured in the background.
Specifying the wait directive tells ifconfig not to return until the DHCP has responded.
The primary directive indicates to ifconfig that the current interface is the primary one,
if you have more than one interface under DHCP control. If you have only one interface under DHCP control,
then it is automatically the primary one; so primary is redundant, although it's permissible
Setting up Static Address
prtconf -D|grep net" - List of available interfaces
"ifconfig -a" - List of configured interfaces
ifconfig bge1 plumb - Activating the desired interface
ifconfig bge1 10.10.1.2/24 - Configuring the desired interface
ifconfig bge1 up - Bringing the interface up
If you want to make a permanent change then do following editing:
/etc/hosts ( hostname and ip address )
/etc/hostname.bge1 (hostname )
/etc/netmasks (subnetmask )
/etc/nodename (hostname )
/etc/defaultrouter (Gateway address )
and then reboot
Following files are update or edited for configuring Static IP Address
/etc/defaultdomain Set the default NIS domain name, if any, if it changed.
/etc/defaultrouter Set the default router's IP address, if it changed.
/etc/hostname.le0 (change le0) Update if the hostname changed.
/etc/hostname6.le0 (change le0) Ditto, if you use IPv6.
/etc/dhcp.le0 (change le0_ Touch [or remove], if [not] using DHCP
/etc/hostname6.ip.tun0 Update if you use a IPv4/IPv6 tunnel (e.g., 6bone)
/etc/nodename Update if the hostname changed.
/etc/nsswitch.conf Update if your name resolution method/order changed.
Copy /etc/nsswitch.dns to /etc/nsswitch.conf if you
use DNS instead of (rarely used) NIS.
/etc/resolv.conf Update if your name servers/domain changed (DNS only).
/etc/inet/hosts Make sure your IP address is updated or added here.
List your FQDN is first, before the short hostname.
E.g., "192.168.128.64 foo.bar.com foo"
/etc/inet/ipnodes IPv6 version of hosts file (Solaris 8+).
/etc/inet/netmasks Set your network number & netmask, if it changed.
/etc/inet/networks Set your network name, if it changed.
/etc/net/ticlts/hosts For the streams-level loopback interface.
/etc/net/ticots/hosts For the streams-level loopback interface.
/etc/net/ticotsord/hosts For the streams-level loopback interface.
Services for the network
svcadm , svcs are the commands used to start and stop the services and also finding the services are up
No comments:
Post a Comment