Monday, July 27, 2015

Solaris 10 static IP configuration.


ifconfig interface plumb

ifconfig -a

ifconfig e1000g0 192.168.1.101/24 up

route add default 192.168.1.1

cat /etc/resolv.conf

search                local.com
nameserver       192.168.1.1



Keep settungs after rebooting
ifconfig interface plumb

cat /etc/hosts

echo "127.0.0.1 localhost\n192.168.1.101 youhostname" > /etc/hosts

cat /etc/nodename

echo "youhostname" > /etc/nodename

cat /etc/hostname.e1000g0

echo "192.168.1.101" > /etc/hostname.e1000g0

cat /etc/netmasks

echo "192.168.1.0 255.255.255.0" >> /etc/netmasks

ls /etc/defaultrouter

echo "192.168.1.1" > /etc/defaultrouter

ls /etc/dhcp.e1000g0

rm /etc/dhcp.e1000g0

cat /etc/resolv.conf

cp /etc/nsswitch.dns /etc/nsswitch.conf

No comments:

Post a Comment