DNS and Static IP Address Question on Solaris v10 X86

Ive recently installed Solaris v10 X86 and have two questions. The system is a Dell E521 with 4GB RAM and 1GB SysKonnect NIC, and internet is provided via a cable modem, thats plugged into a Netgear router, and the Solaris 10 box is plugged into the Netgear router via a CAT5 ethernet cable.

1. I can connect to my router login page using the following URL:

http://192.168.1.1/start.htm and I can also connect to various web pages such as yahoo, if I first "ping yahoo.com" (on another machine thats internet enabled) and then plug the web sites ip address into the Solaris/Mozilla browser. So it appears that I havent been successful at pointing the Solaris x86 at a DNS server to resolve the DNS name.

2. I've purchased a commercially available software package and it requires a static ip address for this Solaris x86 server. If the ip address changes, itll stop working by design and require that I reacquire the license file. When connecting through this Netgear router, how do I lock this Solaris v10 x86 server into a specific ip address? (the ip address floats presently when cycling my PCs on/off) presently, and assume the Solaris box will too, usually through an ip range of 192.168.1.<1 through 5>

# ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1

inet 127.0.0.1 netmask ff000000

skge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

ether 0:0:5a:9b:1f:10

# netstat -rn

Routing Table: IPv4

DestinationGatewayFlags RefUseInterface

-- -- -- --

192.168.1.0 192.168.1.3 U 11 skge0

224.0.0.0127.0.0.1U 10 lo0

default 192.168.1.1 UG10

127.0.0.1127.0.0.1UH8163 lo0

Some of the present Netgear router settings:

Internet IP Address

Get Dynamically From ISP (yes)

Use Static IP Address (no)

IP Address75.185. CROSSED-OUT3

IP Subnet Mask255.255.248.0

Gateway IP Address75.185.CROSSED-OUT4

Domain Name Server (DNS) Address

Get Automatically From ISP (yes)

Use These DNS Servers (blank)

Primary DNS ... (blank)

Secondary DNS ... (blank)

Netgear Router Status Page:

Account Name WGT624v3

Hardware Version V3H1

Firmware Version V2.0.16_1.0.1NA

Internet Port

MAC Address 00:40:ca:a8:CROSSED-OUT2

IP Address 75.185.CROSSED-OUT3

DHCP DHCPClient

IP Subnet Mask 255.255.248.0

Domain Name Server 65.24.7.3

65.24.7.6

LAN Port

MAC Address 00:18:4D:85:CROSSED-OUT1

IP Address 192.168.1.1

DHCP ON

IP Subnet Mask 255.255.255.0

Excerpt from doing a prtconf -D command:

pci10de,26f, instance #0 (driver name: pci_pci)

pci1028,8010, instance #0 (driver name: hci1394)

pci1148,5021, instance #0 (driver name: skge)

pci1028,1ed

pci1022,1100

The NIC is a SysKonnect 9821 1GB Ethernet card. The drivers in Solaris 10 were apparently very old and didn't install drivers or configure/plumb when I installed Solaris 10, so I downloaded the

latest drivers (hard to find!), followed the instructions and got the NIC drivers installed and then plumbed.

My router's ip address appears to be 192.168.1.1 and in one of the articles I've read, there is a recommendation to create a file (touch) within /etc named defaultrouter and enter the router's ip address. I did this, and the file now contains:

192.168.1.1

I also read where another file called resolv.conf needed to be pointed to a DNS server, which in this case, according to my Netgear router, and according to ipconfig/all on another WinBox on the same network, also shows the same 192.168.1.1 address for the DNS, so I created that file too (wasn't there) and it contains:

nameserver 192.168.1.1

There is a host name file called hostname.skge0 and it contains one line:

INTHOST

There is a hosts file, and it contains:

127.0.0.1localhostloghost homex86

192.168.1.3INTHOST

There is a netmasks file, and other than the commented out lines, it appears to contain one relevant line:

192.168.1.0255.255.255.0

There is a nsswitch.conf file and other than the commented out lines, it contains:

passwd:files

group:files

hosts:files

ipnodes:files

networks:files

protocols: files

rpc:files

ethers:files

netmasks:files

bootparams: files

publickey: files

netgroup:files

automount: files

aliases:files

services:files

printers:user files

auth_attr: files

prof_attr: files

project:files

tnrhtp:files

tnrhdb:files

There is an nsswitch.dns file:

passwd:files

group:files

ipnodes:files dns

networks:files

protocols: files

rpc:files

ethers:files

netmasks:files

bootparams: files

publickey: files

netgroup:files

automount: files

aliases:files

services:files

printers:user files

auth_attr: files

prof_attr: files

project:files

tnrhtp:files

tnrhdb:files

Finally, I've also seen some advice using the folling command (and I tried it):

"route add default 192.168.1.1" as an alternative method of setting up route table

The only other command I've tried is:

"ifconfig skge0 192.168.1.1 netmask 255.255.255.0 up" but I suspect that was redundant as the plumb command I used to get the NIC functioning earlier probably already provided what was needed.

Finally, on this small network, I ran an ipconfig/all on a Windows based PC, to see what network settings were reported through the wireless connection, and this is an excerpt of that information:

C:\Documents and Settings\mark_burke>ipconfig/all

Windows IP Configuration

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected

Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Controller

Physical Address. . . . . . . . . : (withheld)

Ethernet adapter {xxxxxxxx}:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Nortel IPSECSHM Adapter - Packet Scheduler Min

iport

Physical Address. . . . . . . . . : (withheld)

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 0.0.0.0

Subnet Mask . . . . . . . . . . . : 0.0.0.0

Default Gateway . . . . . . . . . :

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Dell Wireless 1370 WLAN Mini-PCI Card

Physical Address. . . . . . . . . : (withheld)

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 192.168.1.2

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.1.1

DHCP Server . . . . . . . . . . . : 192.168.1.1

DNS Servers . . . . . . . . . . . : 192.168.1.1

[7216 byte] By [mburkeoha] at [2007-11-27 10:57:58]
# 1

> Ive recently installed Solaris v10 X86 and have two

> questions. The system is a Dell E521 with 4GB RAM

> and 1GB SysKonnect NIC, and internet is provided via

> a cable modem, thats plugged into a Netgear router,

> and the Solaris 10 box is plugged into the Netgear

> router via a CAT5 ethernet cable.

>

> 1. I can connect to my router login page using the

> following URL:

> http://192.168.1.1/start.htm and I can also connect

> to various web pages such as yahoo, if I first "ping

> yahoo.com" (on another machine thats internet

> enabled) and then plug the web sites ip address into

> the Solaris/Mozilla browser. So it appears that I

> havent been successful at pointing the Solaris x86

> at a DNS server to resolve the DNS name.

You can either copy nsswitch.dns to nsswitch.conf, or you can modify nsswitch.conf so that 'dns' is used for hostname lookups.

> 2. I've purchased a commercially available software

> package and it requires a static ip address for this

> Solaris x86 server. If the ip address changes, itll

> stop working by design and require that I reacquire

> the license file. When connecting through this

> Netgear router, how do I lock this Solaris v10 x86

> server into a specific ip address? (the ip address

> floats presently when cycling my PCs on/off)

> presently, and assume the Solaris box will too,

> usually through an ip range of 192.168.1.<1 through

> 5>

One method is setting the router so that the server's MAC address is tied to a specific IP.

Otherwise you can edit /etc/hostname.<interface> and place a static address there, forgoing DHCP services from the router. You may want the address to appear outside the router's DHCP range.

--

Darren

Darren_Dunhama at 2007-7-29 12:12:35 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...