connecting to internet from solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris connecting to internet from solaris 10
# 8  
Old 03-21-2007
Quote:
Originally Posted by Ebbi
Do you want the location of the binary or how to use it? Smilie

Check this out:
http://www.rite-group.com/rich/solaris_dhcp.html
http://docs.sun.com/app/docs/doc/806-5529
Ebbi thanks a lot for the links. I am getting too much excited about it, and it appears that I am only few clicks away from the internet :-)

I think I understand my problem: my router doesn't supply a usable hostname, so it gets set to “unknown". To get around that, there are 2 methods, as described in the link you gave me http://www.rite-group.com/rich/solaris_dhcp.html.:

· DHCP has limited control
· DHCP has full control

Number 1:

If I wanted to try method 1 (as I'm not sure if my ISP has a habit of changing DNS name server IP addresses or not, but he/she could be), then there are few things I am not sure about:

1. I just copy the script and paste on my shell?.
2. Is DEFAULT_ADDR in the script my IP address?. How can I find my own IP address on a laptop not yet connected to Internet?. I remember I was told that IP add while installing Solaris but unfortunately did not write it down.
3. How do I know if I should be using leo0 or hme0 as my INTERFACE?.

Number Two:

Now let us suppose I wanted to try method 2 as well. This seems much easier i think: I just create two files with the TOUCH command?:

a)

> /etc/hostname.le0

b)

> /etc/dhcp.le0

As for the Host unknown, the page says “"Starting with Solaris 10, the preceding paragraph can be ignored. Instead, just make sure that the hostname you want to use is in /etc/nodename”.

I am on Solaris 10, so seems that I do nothing here.

Thank you very much for your time,

Alikun
# 9  
Old 03-21-2007
1. I just copy the script and paste on my shell?.

I meant this script here:

http://www.rite-group.com/rich/dhcp_client
# 10  
Old 06-21-2007
Dear All,

I was read this thread, and I can't to connect to Internet.
I'm not using DHCP for my Solaris OS but I was configurate my DHCP server and can read my Solaris IP, but I still can't connect to internet.
I'm able ping my pc (Solaris system) from other PC in my network and my DHCP server, I'm using ADSL modem for internet connection and using NAT by router (DHCP Server).Using Mozilla browser and in proxy configurating I'm using system proxy and direct to intenet, I was using manual proxy setting that direct connect to internet.
Any configuarting that not yet setting for connect to internet?Smilie

Thank's very much,

Regards,


heru
# 11  
Old 06-21-2007
1. Can you browse by IP address at all?

2. What is the output when you do "nslookup www.unix.com"?

3. what does your /etc/resolv.conf say?

4. Does your machine have a default route? What happens if you say "route get 82.195.131.187"
# 12  
Old 06-21-2007
Thank's Porter,

Quote:
1. Can you browse by IP address at all?
yes that's good idea, I never thinking about that before ..Smilie
I try it and I can browse by IP address, but just in front page, when I click one link to other page, can't open.

Quote:
2. What is the output when you do "nslookup www.unix.com"?
Code:
# nslookup www.unix.com
;; connection timed out; no servers could be reached

Quote:
3. what does your /etc/resolv.conf say?
I don't have this file, this default file? so need create this?

Quote:
4. Does your machine have a default route? What happens if you say "route get 82.195.131.187"
yes I have,
# route get 85.195.131.187
route to: 85.195.131.187
destination: default
mask: default
gateway: 192.168.1.81
interface: rtls0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire
0 0 0 0 0 0 1500 0

Now I can connect to internet but just using IP address , how to using name address?

Regards,

heru
# 13  
Old 06-21-2007
my /etc/resolv.conf basically says....

Code:
nameserver 10.1.1.1

which is the internal IP of my ADSL router, my router has built in DNS proxy
# 14  
Old 06-21-2007
Computer Do it manually :)

You could mess about with DHCP or simply take an address from the DHCP range, (from your router) and set that manually:

/etc/hosts:
127.0.0.1 localhost
<ip address> <hostname> loghost

Put the same in /etc/inet/ipnodes too

/etc/resolve.conf
nameserver <routers IP address>

/hostname.<NIC type>
<hostname>

Where NIC type is hme0 use hostname.hme0, etc.

/etc/nodename:
<hostname>

/etc/defaultrouter:
<router's IP address>

/etc/netmasks:
<your IP range's netmask>

The netmasks files has info to help you in this regard.

Then reboot. Or:

ifconfig <NIC type> plumb
e.g: ifconfig hme0 plumb


ifconfig <NIC type> <IP address> up
ifconfig <NIC type> broadcast <broadcast address>

When your netmask is 255.255.255.0 your boradcast will be the first three octets of your IP address .255 so if your IP is 192.168.0.100 and your netmask is 155.255.255.0 then your broadcast will be 192.168.0.255

Finally setup a default route:

route add default <router's IP address>

so if your router's IP is 192.168.0.1 you'd do:

route add default 192.168.0.1

you can then check all is working with:

netstat -r

This will spit out about 4 lines, one of which should say "default" under "Destination" with "Gateway" being listed as your router's IP and the "flags" being UG

You should also check that /etc/nsswitch.conf

has hosts and ipnodes setup as follows:

hosts: files dns
ipnodes: files dns

This way you can add IP's on your local network, (or even google) to the local hosts table so you don't need to do a remote lookup each time. If you don't have DNS listed it wont check your DNS, even though nslookup will work.

I often find it usefull to actually add the DNS settings being used by my router to /etc/resolv.conf as it speads up the connection, but it can catch you out if the router changes DNS, etc. in which case you just have to update the entries.

Last edited by praxis22; 06-21-2007 at 10:25 AM.. Reason: forgot about /etc/inet/ipnodes :)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Connecting to the internet

Hi, I have a router, 192.168.1.1, and an internet router, 10.0.0.138. I have connected the server to the 1st router and assigned it a IP address of 192.168.1.1. I can ping both routers successfully but I have no access to internet. Any suggestions? sco5.0.7 (11 Replies)
Discussion started by: juan.navarrete
11 Replies

2. Ubuntu

Connecting internet through EVDO?

i have tried to install vlc in ubuntu. Couldn' find package error. is internet mandatory to install packages. i have tried to internet through evdo but im not able to connect. i have started a thread but no reply. here is the link Connect Script failed - Ubuntu Forums how can i... (0 Replies)
Discussion started by: laknar
0 Replies

3. Linux

Trouble connecting to internet

I am having trouble connecting to the internet. Details: OpenSuse 11.1, Cable Modem, connected to Linksys Wireless N Router, hard line from router to ethernet port on my computer. I checked network settings in YAST2, my ethernet is showing not connected. I have it set to start at boot, and... (4 Replies)
Discussion started by: stringzz
4 Replies

4. UNIX for Dummies Questions & Answers

Connecting Solaris 10 to the Internet

This seems to be a common problem. I just installed Solaris 10 and do not have an internet connection. I am not that savy with Unix/Linux, although I have been using Linux in the past, and have never had any sort of problem detecting my internet connection. I have tried some things, but did not... (9 Replies)
Discussion started by: eric cartman
9 Replies

5. UNIX for Dummies Questions & Answers

Connecting to the Internet

I have just installed Linux and everything looks great, but how do I get my browser (Mozilla) to connect to my internet service provider? I have a cable connection to Bigpond in Australia, if that means anything - the ISP will not provide support for Linux. Your help would be greatly... (2 Replies)
Discussion started by: openhead
2 Replies

6. Linux

connecting to INTERNET

Hi, I can ping www.yahoo.com (then domain name server is OK) but I can not navigate by Motzila to www.yahoo.com or any other Web Site. What can be the problem ? Mozila is configured in preference /advance to go automaticaly on WEB. We are under RED HAT AS3. What should I check ? Many thanks... (1 Reply)
Discussion started by: big123456
1 Replies

7. UNIX for Dummies Questions & Answers

Need help connecting to the internet with solaris10

I am using solaris 10 with pentium 3. I have two network cards but none of them come up when i run <ifconfig -a> in command line. The two cards I have are : Linksys LNE 100TX and Netgear FA311. Does solaris 10 support these NICs or do I have to dowload the drivers for them. If so, can anyone... (1 Reply)
Discussion started by: fidjouss
1 Replies

8. UNIX for Dummies Questions & Answers

Connecting to the Internet

Hi all, Is it possible (as I only have dial-up) to utilise my existing WinXP PC as a gateway to the internet for my 2nd PC (RH 8.0)?? .So connect with XP and have RH use a network connection (I guess) through the XP box and to the internet. If so, could I please have some links thrown my... (1 Reply)
Discussion started by: Cameron
1 Replies

9. UNIX for Dummies Questions & Answers

Connecting to the Internet

Im on XP now but when im on linux how do I connect to the internet? I don't think AOL works with it but are there any free programs that I can use with it? (8 Replies)
Discussion started by: NoPepsiForYou
8 Replies

10. IP Networking

connecting to internet

I have installed Solaris 8.0 and want to find out how can I go in and change my network setup and external IP setup. At the moment system running but I can not connect to the internet. But my lan card shows that I am on the network. I also get some advice that I should check the $Socks but how do I... (1 Reply)
Discussion started by: Cdrive
1 Replies
Login or Register to Ask a Question