The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 12-23-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
The easiest way to see if the IP address, etc, is configured is via ifconfig.

Type
man ifconfig
to read the manual page for ifconfig, as each *nix has its own command variation.

The actual interface device name also varies wildly between unix flavours. You can run

ifconfig <device>

Linux uses eth0 for the first ethernet device
HP-UX uses lan0
And SCO (I believe) uses net0

On SCO, ifconfig -a will show you information about all configured devices

*something like*
ifconfig net0 192.168.0.1 netmask 255.255.255.0 up
should bring the interface up if it already isn't.

You'll then need
route add default 192.168.0.100

to specify the default gateway
(Linux uses "route add default gw <address>")

All this will need to be added to startup scripts to make the changes persistent after everything is tested and working.

You'll also need to think about DNS, or if your network only has a few hosts on it, just edit the /etc/hosts file and add the hosts in.

There's quite a lot to do, and there is some good documentation on www.sco.com

Cheers
ZB