Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing ip address, subnet mask and default gateway

Status
Not open for further replies.

shadymasoud

IS-IT--Management
Jan 23, 2003
6
PS
I have a SUN workstation (SPARCstation 5)running
SunOS 5.6 , How can I :
1-View its ip address, subnetmask, and default gateway.
2-Change its ip address, subnetmask, and default gateway.
 

#ifconfig -a
This shows ip address, netmask, broadcast
#netstat -nr
default xxx.xxx.xxx.xxx (shows default gateway)
Changing ipaddress and default gateway,
#ifconfig hme0 down
#ifconfig hme0 inet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx
#ifconfig hme0 up
Edit /etc/hosts
Changing default gateway,
#route add default xxx.xxx.xxx.xxx
Edit /etc/defaultrouter
Make changes in your `dns` server accordingly




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top