Sponsored Content
Operating Systems Solaris connecting to internet from solaris 10 Post 302122749 by praxis22 on Thursday 21st of June 2007 08:10:56 AM
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 :)
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
netmasks(4)							   File Formats 						       netmasks(4)

NAME
netmasks - network mask database SYNOPSIS
/etc/inet/netmasks /etc/netmasks DESCRIPTION
The netmasks file contains network masks used to implement IP subnetting. It supports both standard subnetting as specified in RFC-950 and variable length subnetting as specified in RFC-1519. When using standard subnetting there should be a single line for each network that is subnetted in this file with the network number, any number of SPACE or TAB characters, and the network mask to use on that network. Network numbers and masks may be specified in the conventional IP `.' (dot) notation (like IP host addresses, but with zeroes for the host part). For example, 128.32.0.0 255.255.255.0 can be used to specify that the Class B network 128.32.0.0 should have eight bits of subnet field and eight bits of host field, in addition to the standard sixteen bits in the network field. When using variable length subnetting, the format is identical. However, there should be a line for each subnet with the first field being the subnet and the second field being the netmask that applies to that subnet. The users of the database, such as ifconfig(1M), perform a lookup to find the longest possible matching mask. It is possible to combine the RFC-950 and RFC-1519 form of subnet masks in the net- masks file. For example, 128.32.0.0 255.255.255.0 128.32.27.0 255.255.255.240 128.32.27.16 255.255.255.240 128.32.27.32 255.255.255.240 128.32.27.48 255.255.255.240 128.32.27.64 255.255.255.240 128.32.27.80 255.255.255.240 128.32.27.96 255.255.255.240 128.32.27.112 255.255.255.240 128.32.27.128 255.255.255.240 128.32.27.144 255.255.255.240 128.32.27.160 255.255.255.240 128.32.27.176 255.255.255.240 128.32.27.192 255.255.255.240 128.32.27.208 255.255.255.240 128.32.27.224 255.255.255.240 128.32.27.240 255.255.255.240 128.32.64.0 255.255.255.192 can be used to specify different netmasks in different parts of the 128.32.0.0 Class B network number. Addresses 128.32.27.0 through 128.32.27.255 have a subnet mask with 28 bits in the combined network and subnet fields (often referred to as the subnet field) and 4 bits in the host field. Furthermore, addresses 128.32.64.0 through 128.32.64.63 have a 26 bits in the subnet field. Finally, all other addresses in the range 128.32.0.0 through 128.32.255.255 have a 24 bit subnet field. Invalid entries are ignored. SEE ALSO
ifconfig(1M), inet(7P) Postel, Jon, and Mogul, Jeff, Internet Standard Subnetting Procedure, RFC 950, Network Information Center, SRI International, Menlo Park, Calif., August 1985. V. Fuller, T. Li, J. Yu, K. Varadhan, Classless Inter-Domain Routing (CIDR): an Address Assignment and Aggregation Strategy, RFC 1519, Network Information Center, SRI International, Menlo Park, Calif., September 1993. T. Pummill, B. Manning, Variable Length Subnet Table For IPv4, RFC 1878, Network Information Center, SRI International, Menlo Park, Calif., December 1995. NOTES
/etc/inet/netmasks is the official SVr4 name of the netmasks file. The symbolic link /etc/netmasks exists for BSD compatibility. SunOS 5.11 7 Jan 1997 netmasks(4)
All times are GMT -4. The time now is 07:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy