LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to change IP in Solaris? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-change-ip-in-solaris-485717/)

gavin watson 02-03-2008 10:34 AM

hi, sorry to bump this post, but im having terrible problems trying to get onto the internet on my first install of solaris and am requesting kind help from someone more specialised than me!

this is what i have:

- a new clean install of Solaris 10
- a router for the internet on IP '172.26.0.1' (which works fine, as i have other machines running windows connected fine)
- for arguements sake, this new solaris machine will use IP '172.26.0.44' and the name of the machine is 'unix'
- i have made the following changes:

/etc/hosts
172.26.0.44 localhost loghost unix

/etc/netmasks
172.26.0.0 255.255.255.0

/etc/nsswitch.conf
(contains) host: files dns

/etc/nsswitch.dns
(contains) host: files dns
ipnodes: files dns


created /etc/hostname.lo0
172.26.0.44 unix

created /etc/defaultrouter
172.26.0.1

created /etc/resolv.conf
nameserver 80.58.0.33
nameserver 80.58.32.97


/etc/inet/hosts
172.26.0.44 unix

/etc/inet/ipnodes
172.26.0.44 unix

and it does still not work...

in addition, as suggested elsewhere, i have doen the following:

# svcadm /network/dns/client:default
# svcadm /network/dns/server:default

but it still doesnt work...

at this stage, i think im making a small mistake, but not sure where... any help would be greatly appreciated.

thank you in advance

edit :

i can ping my own machine (172.26.0.44) but not the router (172.26.0.1) or anything obviously past the router

jlliagre 02-04-2008 10:05 PM

Quote:

Originally Posted by gavin watson (Post 3044637)
/etc/hosts
172.26.0.44 localhost loghost unix

Ouch, here is the mistake. You do not want to change localhost IP address which is by definition 127.0.0.1.
Quote:

created /etc/hostname.lo0
172.26.0.44 unix
Same issue here. The loopback interface isn't meant to be configured that way. Remove this file.

What is your NIC ? This is what you need to configure instead of the loopback which cannot propagate network packets to the outside by design, being a software only driver.

gavin watson 02-05-2008 01:59 AM

hi, thanks for that, i've just realised that my network card isnt supported, which is where the problem has been all along, hence me trying to configure the localhost settings by mistake thinking they were the NIC.

I'll try again on another system (or with another network card) and hopefully it'll be a lot more straight forward. thanks again for your reply.

jlliagre 02-05-2008 02:48 AM

What is your NIC model ? Perhaps is there a third party driver available.

gavin watson 02-05-2008 04:20 AM

Havent got details to hand, its VIA RhineII, there seems to be one available which i've tried my best to install and configure, but it's proving difficult as there is an updated version so the instructions are not exactly the same, even thoguh I have followed them through as best I can, I'll give more information later (when I'm at home) and maybe you could help me through it.

Thanks again


All times are GMT -5. The time now is 03:52 AM.