LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   solaris ip addresing problem (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-ip-addresing-problem-661127/)

soumalya 08-07-2008 06:24 AM

solaris ip addresing problem
 
Sir

i am using solaris sparc 10. my ip is 192.168.101.100 255.255.254.0

1)but when i try ping from 192.168.10 series its int pinging but when 192.168.101. series its fine

2)i cant change my ip also when i change graphically after rebooting it remain same

pls help me to solve these two proble?


thanks in advance

jlliagre 08-07-2008 07:59 AM

1: either a broadcast address mismatch or a missing route

2: have a look at the /etc/hostname.<your-interface-name-here> and /etc/hosts files.

estabroo 08-07-2008 09:38 AM

I'd bet the netmask is wrong on one side or the other. 255.255.254.0 on the 101 side means it 192.168.100 and 192.168.101 are on the same wire, so its going to route 192.168.10.x to its default route. I'm guessing that the 192.168.10.x side has a mask of 255.255.0.0 so it thinks that 192.168.101.x is on the same wire as it is so the packets never reach their destination.

Rowley 08-07-2008 10:27 AM

Two things you must do first:

1/ route get 192.168.10.0
c/ netstat -rn

I'll bet goooooooogle has some great hits if you type in "change IP solaris"

eggixyz 08-07-2008 10:27 PM

Hey there,

If you've set everything up to point back to /etc/hosts and /etc/netmasks, you should only have to change your IP there and, if you want to avoid using ifconfig and route, just reboot. /etc/hostname.* /etc/inet/ip*, etc should all contain the name and /etc/nsswitch.conf should instruct the "host" lookup to check "files" either before or after any other methods you have listed.

Could be I'm misunderstanding your issue as well. I would recommend changing it by using the CLI, rather than the GUI and check to see if you need to add a static route. The problem might be really obvious from the command line.

This link is for changing the hostname, but just make sure your IP is in /etc/hosts and that all the other files refer to the host by name, so you don't have to update multiple files to change your IP

http://linuxshellaccount.blogspot.co...s-machine.html

Best wishes,

Mike


All times are GMT -5. The time now is 09:23 PM.