how can we give default gateway through command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JOHNSHELL08
    New Member
    • Nov 2008
    • 31

    #1

    how can we give default gateway through command

    sir please tell me how can we give default gateway through command
    thanks.......
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Try ipconfig:
    Code:
    ipconfig /all
    Greetings,
    Nepomuk

    Comment

    • harshadd
      New Member
      • Dec 2007
      • 180

      #3
      Use NETSH INSTEAD, ? / HELP OPTION TELL ABOUT DETAILS.
      I am providing an example below:
      NETSH interface ip set address local name="Local Area Connection" source=static addr=172.18.1.2 22 mask=255.255.25 5.0 gateway=172.18. 1.1

      Comment

      • JOHNSHELL08
        New Member
        • Nov 2008
        • 31

        #4
        default gateway.

        sir i know about this command for giving ip address

        netsh interface ip set address local static 10.156.143.85 255.255.255.0
        but i don' know about the command through we give default gateway.

        so sir please tell me.

        Comment

        • Nepomuk
          Recognized Expert Specialist
          • Aug 2007
          • 3111

          #5
          Did you read my answer? (Reply #2) It tells you what you want to know.

          Greetings,
          Nepomuk

          Comment

          • JOHNSHELL08
            New Member
            • Nov 2008
            • 31

            #6
            yes i read it carefully

            Comment

            • Nepomuk
              Recognized Expert Specialist
              • Aug 2007
              • 3111

              #7
              Well, that gives you the default gateway, doesn't it?

              Greetings,
              Nepomuk

              Comment

              Working...