Hi there, I have a newbie networking problem. I've never really done any networking before. I recently got an UltraSPARC 10 running Solaris 8, and decided it would be fun, useful, and educational to network it to my debian box.
My debian box connects to the internet sometimes via ppp, but is generally a stand-alone. I made a cross over ethernet cable (by reversing the color order of the subcables on one side) and connected my two boxes directly. I installed my ethernet card and recompiled my kernel (I'm running 2.4.2) to support it. Then in my /etc/network/interfaces file I put: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 as per the local network ip recommendations of the net howto. I originally also had a gateway ip, but this interfered with ppp (since newer versions of pppd don't override a default gateway). I don't think I need one for a network this small, do I? I'm not immediately concerned with naming, since I would like to establish a connection between my two boxes in some manner first, but I edited /etc/hosts to give my Sun a name and that seems to work (I type telnet hostname and it attempts to connect to the correct ip, at least). My ethernet card is constantly clicking on and off (that is, the small green light on the back of it switches on and off, accompanied by a small clicking sound.) I presume this is because it is probing for a network? When I do netstat -rnv I get: $ netstat -rnv Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0 and from route: $ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth0 and from ifconfig: $ ifconfig eth0 Link encap:Ethernet HWaddr 00:00:C0:15:D0:E3 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:11 Base address:0xfc80 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3904 Metric:1 RX packets:110 errors:0 dropped:0 overruns:0 frame:0 TX packets:110 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8076 (7.8 Kb) TX bytes:8076 (7.8 Kb) In my /etc/networks I have localnet 192.168.0.0 I'm not sure what else I would need to set on the debian side. I guess my question is, do you see anything more I should do or check, or can I conclude with reasonable certainty that if I'm not getting a connection it's Solaris' fault? I'd imagine some of you know about Solaris networking, so if you have the stomach for it, here is my Solaris side configuration. My SPARC does not connect to the internet; eventually I would like to route the net through my Debian box, but for the moment I'll be happy with just being able to ping one from the other. On my SPARC, /dev/hme0 is my ethernet card. When I do a netstat -rnv, sun-side, I get # netstat -rnv IRE Table: IPv4 Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd -------------------- --------------- -------------------- ------ ----- ----- --- --- ----- ------ 192.168.0.0 255.255.255.0 192.168.0.1 hme0 1500* 0 1 U 10 0 224.0.0.0 240.0.0.0 192.168.0.1 hme0 1500* 0 1 U 0 0 127.0.0.1 255.255.255.255 127.0.0.1 lo0 8232* 0 23 UH 138938 0 (sorry about the formatting, Solaris doesn't believe in the 80-char rule). When I do ifconfig -a, I get: # ifconfig -a lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255 ether 8:0:20:f0:d6:92 /dev/lo0 is the loopback device. Related network setup files: # cat /etc/hostname.hme0 mithras # cat /etc/inet/hosts 127.0.0.1 localhost loghost 192.168.0.1 mithras 192.168.0.2 purple # cat /etc/inet/netmasks 192.168.0.0 255.255.255.0 I have tried putting my IP directly into /etc/hostname.hme0, but it didn't help and rtfm'ing told me that the way I have it setup is the prefered way. At any rate, it seems to know that 192.168.0.1 is its IP. Also, I couldn't figure out where to specify the broadcast IP, but notice (in the output of ifconfig -a) that it correctly discerned it. (that would be 192.168.0.255). Do any of you know where this can be set manually? On my sun box, when I try to telnet to my debian box I get a 'network is unreachable' error. On my debian box, I get a 'No route to host'. So, from this, were any of you able to tell easily which (or both) is the culprit responsible for my non-networked-ness, and how I might be able to fix it? Sorry to spam you all with so much Solaris crap, but the people who claim to know solaris on IRC are most unhelpful (contrasted to Linux people!) and the docs (when they exist) are cryptic at best. I'm starting to get frustrated, so I hope someone on here can help me out. I only have one monitor for my two boxes, so everytime I need to do something on the other I have to take the cable out of one, stick it in the other, etc... you know, major pain. It'll be delicious when they are networked. Thanks in advance. -- Alexander Poquet | We leave the obvious generalizations to the [EMAIL PROTECTED] | reader. -- Israel Herstein Use of PGP preferable in reply | Use Linux!
pgpGE7yS2mzDO.pgp
Description: PGP signature