Re: [osol-help] How to use a fixed IP address?

2009-02-08 Thread Han IL
Really..?
It's very interesting. :)

The route command is actually a command to manipulate the routing tables.
Of course, you can see the routing tables with the route command on linux 
system. (but not OpenSolaris.)

If you want to see and check the routing tables, use the netstat command.
# netstat -rn
-- 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org


Re: [osol-help] How to use a fixed IP address?

2009-02-08 Thread Uwe Dippel
netstat -r -n will do. It does everywhere, by the way; be it on Linux, Solaris, 
BSD. Even Windows. When Microsoft copied it, they forgot that on Windows 
options are usually indicated by '/'. So netstat is completely cross-platform, 
AFAIK.

Uwe
-- 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org


Re: [osol-help] How to use a fixed IP address?

2009-02-08 Thread Robert Bauer
Thanks very much. It worked.
One last question:
How can I display my current route table?

Is there a linux like command like "route -n". I tried "route -p show" but it 
did not worked out: I got not my current route table.
-- 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org


Re: [osol-help] How to use a fixed IP address?

2009-02-08 Thread Han IL
If you configure 192.168.0.101 as the host IP address,
and the gateway is 192.168.0.1,

# cat /etc/hosts
...
192.168.0.101 hostname

# cat /etc/defaultrouter
192.168.0.1

for DNS
# cat /etc/resolv.conf
domain localdomain
nameserver 000.000.000.000

# cat /etc/nwam/llp
pcn0 static 192.168.0.101/24

# ifconfig pcn0 plumb 192.168.0.101 up

My network interface card name is "pcn0".
Yours can be differnt.
you have to check the name.
# ifconfig -a
-- 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org


[osol-help] How to use a fixed IP address?

2009-02-08 Thread Robert Bauer
I would like to disable the DHCP client and use a fixed IP address.
How should I proceed?
-- 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org