Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fun configuring Sun 5.8

Status
Not open for further replies.

Job317

Programmer
Aug 15, 2007
37
US
Hi forum,

I am the lucky new owner of a SunFire V100 with Sun 5.8 installed. The machine has two ethernet interface connections. I am connected via a serial cable and a terminal window and am trying to configure the network so I can add the machine to our subnet.

Here's what I've done:

Code:
bash-2.03# ifconfig dmfe0 192.168.1.28 netmask 255.255.255.0 up

bash-2.03# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
dmfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.28 netmask ffffff00 broadcast 192.168.1.255
        ether 00:11:22:33:44:55

bash-2.03# route add -net 192.168.1.0 -netmask 255.255.255.0 192.168.1.1 1

Pings are still not going through to IP addresses on the subnet.

What I'm unclear on (if I have not made some obvious mistake thus far), is:

1. how to determine which of the two ethernet connections I need to use (I have switched both)

2. what the routing table looks like. perhaps there's another route in the routing table confusing the entry I made

3. whether a firewall is configured that may be preventing the machine from communicating

4. does my hyper terminal connection interfere at all (it's on a serial cable, how can it?).

Ideas? suggestions?

Thanks.
 
Providing you have a cable hooked into one of the two network ports.

just modify the following and add the necessary info:
/etc/defaultrouter
/etc/netmasks
/etc/resolv.conf
/etc/hosts
/etc/host.<interface>

I believe this should be all you need to do to get a system up on a subnet. You did not say if you were running nis or something else.

usually use the eth0, what ever the interface is, however, it really does not matter,

I believe using the route add command, this will not keep after a reboot


with hyperterminal, you are directly connected so it does not interfere,
 
Thanks Drr111,

Since you opened the door on NIS... ;)

This happens to be the next step that I need to enable. There's a ton of stuff on by default that I need to go through and turn off as well; I just need to now verify whether any are the daemon controlling NIS before I do so.

Here's how nmap sees this box:

Code:
PORT      STATE SERVICE
7/tcp     open  echo
9/tcp     open  discard
13/tcp    open  daytime
19/tcp    open  chargen
21/tcp    open  ftp
23/tcp    open  telnet
25/tcp    open  smtp
37/tcp    open  time
79/tcp    open  finger
111/tcp   open  rpcbind
512/tcp   open  exec
513/tcp   open  login
514/tcp   open  shell
515/tcp   open  printer
540/tcp   open  uucp
587/tcp   open  submission
898/tcp   open  sun-manageconsole
2201/tcp  open  ats
3000/tcp  open  ppp
3001/tcp  open  nessusd
4045/tcp  open  lockd
5100/tcp  open  admd
5101/tcp  open  admdog
5102/tcp  open  admeng
6112/tcp  open  dtspc
7100/tcp  open  font-service
22273/tcp open  wnn6
32771/tcp open  sometimes-rpc5
32772/tcp open  sometimes-rpc7
32773/tcp open  sometimes-rpc9
32774/tcp open  sometimes-rpc11
32775/tcp open  sometimes-rpc13
32779/tcp open  sometimes-rpc21
32780/tcp open  sometimes-rpc23

Since I'm more of a Linux guy, I've got a bit of a learning curve on the Sun stuff.
 


It does look like you have NFS (client) running, if you are running NFS, then you will need RPC and lockd. I think you need RPC for NIS, but not 100% sure, I have not used NIS for a couple of years, if you don't use it, you lose it (knowledge).

These ports can be closed: (Please make sure you verify they are not in use, don't just go by my word, I am not able to give but a general response on how my servers are.)


21/tcp open ftp (unsecure)
23/tcp open telnet (unsecure)
25/tcp open smtp (if you are needing to receive mail)
515/tcp open printer
587/tcp open submission (another mail port)
898/tcp open sun-manageconsole (Sunmc, if you use it?)
3000/tcp open ppp



these ports, I am not totally sure what they doe, I can guess, but research these to see if you need them.
7/tcp open echo
9/tcp open discard
13/tcp open daytime
19/tcp open chargen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top