In order to enable Networking in Sun Solaris 10, first we have to assign IP address.
bash
cat /etc/hostname.e1000g0
<if DHCP enabled NIC card, there is no IP address>
create DefaultDomain file
cat /etc/inet/networks
172.16.0.0/255.255.0.0
<Only update if subnetting used>
cat /etc/hosts
172.16.0.2 pc1
netstat -D : DHCP config for all nics
ifconfig -a : config for all nics
ifconfig e1000g0 dhcp status
<shows dhcp status>
cd /etc
ls -ltr hostname.e1000g0
ps -ef |grep -i agent
/sbin/dhcpagent
netstat -rn
cat hostname.e1000g0
echo "192.168.1.1" > hostname.e1000g0 && echo $?
cat hostname.e1000g0
echo "linux.com" > /etc/defaultdomian
gedit /etc/inet/networks
192.168.1.0 255.255.255.0
gedit /etc/hosts
192.168.1.2 pc1
gedit /etc/resolv.conf
nameserver 8.8.8.8
<default router is given by DHCP, so no file>
ls -ltr /etc/defaultrouter
gedit /etc/defaultrouter
192.168.1.1
reboot
restart to make changes
<If there is no Internet Connectivity, edit the following>
gedit /etc/nsswitch.conf
hosts : files dns
No comments:
Post a Comment