peer-to-peer connection on solaris and windows

hi everyone.

As a solaris/unix beginner, I am trying a peer-to-peer connection with my Sun and Windows.

Here is my setup:
-Windows XP
-Sun System (Netra T1) which is connected to the console of the WinXP machine.
-Windows XP has wireless connection which enables me to access internet
and a LAN card where I connected my SUN system thru crossover connection.

-I had tried to set a static ip address on my sun system using
/usr/sbin/ifconfig eri0 192.168.2.160 netmask 255.255.255.0 broadcast 192.168.2.1
--from what i understand, the broadcast is the default gateway of my wireless connection in windows xp.. please correct me if im wrong.

--i tried to ping the two systems, but i am not able to communicate.
--also, i tried to use sys-unconfig to reconfigure the network but it just hang-up after the last process wherein, it only shows an error:

svc.startd [7]: svc:/network/nis/client:default: Method "/lib/svc/method/yp" failed with exit status 96

any insights? or maybe i am not configuring my solaris system properly.
thanks a lot..

Hi,

you're wrong, the broadcast is the address for the net not for
the gateway.
Setup yur server with
ifconfig eri0 192.168.2.160 netmask 255.255.255.0 broadcast 192.168.2.255 up

Put your hostname in /etc/hostname.eri0
put hostname and ip-address in /etc/inet/hosts
<your hostname> 192.168.2.160
put netmask in /etc/inet/netmasks
192.168.2.0 255.255.255.0

Then your settings will apply at reboot.

cu
lowbyte

broadcast != defaultrouter (Broadcasting (computing) - Wikipedia, the free encyclopedia)

to add a default route just edit /etc/defaultrouter and restart your network or enter the "route add default yourip" command.
in your "ifconfig" command the string "up" is missing. so the interface won't work! please go to the docs.sun.com website and download the ip admin guide. in shorts:

# ifconfig eri0 plumb
# ifconfig eri0 192.168.2.160 up
# ifconfig -a

the last command will show your configuration... check your default route with "netstat -rn".

hth,
DN2

thanks lowbyte and dukenuke2 for your insights..

unfortunately, i am not able to try such configurations as when i tried to use the command: sys_unconfig before i even post the first time, it rebooted the system and reconfigure the network.. i tried to follow the steps but it will only give me the error message that i posted above.. i even tried to choose different options from the steps.. but same message appears..

First: Select the network interface
eri0
eri1 (tried to choose both of them already..)
Second: System part of a subnet
yes
no (tried yes and no already)
then the steps goes on..netmask..IPv6..default route..

but everytime i finish, it gave me the error message about svc.startd.. then it will just stay there.. tried to wait for a couple of minutes and nothing happens at all.. so i need to turn off the sun system thru the power button and turn it back on either Lom command or the switch.

and i ve been trying to restart the system for a couple of hours now.. and it will immediately go to configure the network and it will just loop the process and steps..

is my solaris os already corrupted? its just so strange that i just use the command sys_unconfig and i cannot do anything at all anymore..

thanks again guys.

---------- Post updated at 05:36 AM ---------- Previous update was at 05:31 AM ----------

By the way, this is the exact message after trying to configure the network:

Jul 1 03:05:03 svc.startd [7]: svc:/network/nis/client:default: Method "/lib/svc/method/yp" failed with exit status 96

Jul 1 03:05:03 svc.startd [7]: network/nis/client:default misconfigured:transitioned to maintenance (see 'svcs -xv' for details)

after showing these messages.. nothing happens ..
thanks

---------- Post updated at 10:50 PM ---------- Previous update was at 05:36 AM ----------

update:
i now manage to work back with the original configuration.
the error message is not showing anymore.
now i just need to get back to the process of connecting my solaris to windows, i already set the static ip address for sun solaris but still not able to communicate with the windows pc that will share the internet connection.:frowning: