Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, In windows when setting up a network connection you enter the IP, subnet mask, etc.. I learned how to do all that in linux, but I was puzzled how ...
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29

    setting gateway for interface

    Hello,
    In windows when setting up a network connection you enter the IP, subnet mask, etc.. I learned how to do all that in linux, but I was puzzled how to set the gateway and DNS IP.
    For instance, the DHCP router on my network is 192.168.1.2, but the gateway to the internet is actually 192.168.1.1
    When I connect to my network linux automatically takes 192.168.1.2 as the gateway, but it's wrong. Is there a way to set 192.168.1.1 as the gateway?
    What would be the command?

    Thanks in advance guys!!

  2. #2
    Linux Engineer rong's Avatar
    Join Date
    Feb 2005
    Location
    California
    Posts
    803
    Check out man ip.

    Example: ip route add default via 192.168.1.1
    registered Linux user #388382

    Have you checked here first?

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29
    thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...