How to change ip address
Hi Guyz,
Let say there are my ip address currently on my solaris 10 sunfire v440.
192.168.200.10 ip
255.255.255.0subnet
192.168.200.1 gateway
202.56.84.2 primary dns
202.56.84.3 alternate dns
and the ip i'm gonna change is
192.200.200.1 ip add
255.255.255.0 subnet
192.200.200.1 gateway
200.50.30.2 primary dns
200.20.30.3secondary dns
How and where can i change my ip addres in solaris 10? Thank you for helping me guys
# 1
Search the board for more instructions but here are the basic files
/etc/hosts
/etc/defaultrouter
/etc/resolv.conf
You will need to bring the device up with the new settings as well.
I seem to remember another hidden file within a folder in the etc folder but for the life of me I cannot remember.
# 2
Assuming you are not getting your IP address from DHCP and are not changing the hostname from what is in /etc/hostname.nic, where nic represents your chosen network interface, just make sure the entry in /etc/hosts for your hostname has the new IP address and the ip address in /etc/defaultrouter has the new gateway address, which I notice is the same as your new IP address.... As the previous poster pointed out, you may want to update /etc/inet/ipnodes and /etc/inet/netmasks with information about the new address and subnet respectively, but Solaris will assume a 255.255.255.0 netmask if you don't.
Switching the network cables and rebooting should do the trick as far as addressing goes, but I have some doubts as to how well your routing will work without more information.
Message was edited by:
meljr
meljra at 2007-7-12 15:41:48 >
