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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to connect Ultra10 to Internet via Netgear Router

Status
Not open for further replies.

scharley

Programmer
Jul 21, 2001
6
US
Hi, I have a small office network with several Win2K pcs connected to a DSL modem through a Netgear FR314 Firewall Router. I need to connect a new Sun Ultra10 to this router for Internet access and I am having trouble finding any documentation or FAQ that explains this. I'm sure it's quite simple but I'm a Unix newbie and I'm struggling to figure this out. I think I know how to configure the IP, DNS and Gateway manually if I were connecting directly to the DSL modem, but I can't seem to figure out how to set up Solaris(v8) to grab them from the router via DHCP like my Windows machines instead. Any help would be greatly appreciated. Thanks.
 
There are some problems with auto negotiation between Solaris and some DSL modems, I think it's better first force
your ISP speed on your network adapter, i.e if your ISP is running at 10 Mbps/Full duplex, edit "/etc/system" and put the following lines:

Assuming your network adapter as cnft0:

set cnft:adv_autoneg_cap=0
set cnft:adv_100T4_cap=0
set cnft:adv_100fdx_cap=0
set cnft:adv_100hdx_cap=0
set cnft:adv_10fdx_cap=1
set cnft:adv_10hdx_cap=0

reboot

then configure network adapter for DHCP...

touch /etc/dhcp.iprb0(replace the ".iprb0", with whatever the ethernet interface for your system might be, as shown by "ifconfig -a", "cp /dev/null /etc/hostname.ipbr0", you need to make sure that this file is empty, otherwise, DHCP configuration won't work, make sure that /etc/inet/hosts, only has one line in it, the one containing "127.0.0.0 localhost", any other lines will be ignored, and any additional necessary lines will be added by DHCP client at boot time. "touch /etc/notrouter", this creates a file to tell Solaris that your system will not be performing routing or packet forwarding duties (if that's the case in your situation). If it already exists, good leave it be.
"cp /dev/null /etc/defaultrouter", since the DHCP client software will automatically put the needed entries on this file, we just need to make sure that it exists as an empty file, if it already exists, rename it and create the empty file in its place. "cp /dev/null /etc/resolv.conf", again, the necessary entries will be added by DHCP client, if you already have this file, rename it and create an empty file in its place, edit /etc/nsswitch.conf and look at hosts: line, by default it reads "files", change it to read "hosts: files dns", this will enable your machine to resolve addresses using DNS.

example for my Sun box with a hme0 network adapter:

# > /etc/dhcp.hme0
# > /etc/hostname.hme0
# echo "127.0.0.0 localhost" > /etc/inet/hosts
# > /etc/notrouter
# > /etc/defaultrouter
# > /etc/resolv.conf
edit /etc/nsswitch.conf for "hosts: files dns"
# ifconfig hme0 dhcp start

Hope this helps,

Regards,
Carlos Almeida.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top