Monday, December 21, 2009

How to Configure Dial Up Internet Connection on Solaris 10

Googling for the solution with many types of workarounds in different references brings confusion. It's why I"m describing actually how I configured it.

Follow the steps given below correctly.
  • If you have selected non-networked during installation of Solaris 10 then you have to activate your network interface using the following command:

    # ifconfig interfaceName plumb up ipAddress netmask subnetMask

    In my PC the default network interface is rtls0. You can get your interfacename using following command and then looking up a while.
    # ifconfig -a

    ipAddress means ip Address of your Machine in LAN (you can get it
    from Windows if you have or contact your ISP).

    Subnet Mask is the subnet mask of your PC something like this
  • Create a file /etc/ppp/peer/isp with following contents:

    connect "/usr/lib/inet/pppoec interfaceName" 
    user           # my account name at my ISP 
    remotename # name of the ISP; for pap-secrets 
    noauth                  # do not authenticate the ISP's identity (client) 
    noipdefault             # assume no IP address; get it from ISP 
    defaultroute            # install default route; ISP is Internet gateway 
    updetach                # log errors and CONNECT string to invoker 
    noccp                   # ISP doesn't support free compression 
  • Append to /etc/ppp/pap-sectrects and /etc/ppp/chap-sectrects

    ispProvidedUserName     ispName password

    Be careful no space as separator should be used. You must place tab instead. For example,    abcdef
  • Create /etc/ppp/pppoe.if with content
    You have to set your interface name. interfaceName in my case is rtls0.
  • Create /etc/resolv.conf with content
    nameserver primaryDNSServer 
    nameserver secondoryDNSServer
    You can get them from Windows(peeping into your dialup connection
    detais) or asking your ISP. For example, mine is:
  • Apply following commands
    # sppptun plumb pppoed interfaceName
    # sppptun plumb pppoe interfaceName # pppd call isp

    Or you can use debug to check for errors.
    # pppd debug call isp

1 comment: