Thursday, February 11, 2010

Configure Broadband Internet Connection on Solaris

You have to follow some procedural steps as provided below:
  • login as root. You can use vi or other editor to modify files but be careful because you have the root previlege you can damage the system without having a notification.

  • Enter your PC's ip address in /etc/hosts. For example, after adding
    the last line my /etc/hosts look like:


    127.0.0.1       localhost 
    ::1     localhost 
    10.8.18.15      arncorp.net     loghost

  • Write the your default gateway ip address to /etc/defaultrouter file.

    # echo defaultGatewayAddress > /etc/defaultrouter 

    My /etc/defaultrouter looks like:

    10.8.18.21 

  • Write dns server information to /etc/resolv.conf

    # echo nameserver nameserverAddress1 > /etc/resolv.conf
    # echo nameserver nameserverAddress2 >> /etc/resolv.conf

  • Enter netmasks info on /etc/netmasks. For example, I have added this line to /etc/netmasks:

    10.8.0.0        255.255.255.0

  • In the file /etc/nssswitch.conf modify the enty for hosts to "file dns" from "file" so that system resolves dns internally.

  • Start your dns client if it is disabled.

    svcadm enable dns-client

2 comments:

  1. Pretty good post. I just stumbled upon your blog and wanted to say that It's really informative as well as useful for me. Regards for this posting.

    ReplyDelete
  2. Thanks. That's encouraging. :)

    ReplyDelete