static IP Debian 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • philly
    Top Poster
    • Nov 2008
    • 119

    #16
    Thanks dzoner,
    I will put the following in etc/network/interfaces, I will change my IP and gateway that is currently working. Is this correct.

    auto eth0
    iface eth0 inet static
    address 192.168.1.155
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 192.168.1.254

    Comment

    • fail2ban
      Top Poster
      • Sep 2008
      • 101

      #17
      Originally posted by philly
      Thanks dzoner,
      I will put the following in etc/network/interfaces, I will change my IP and gateway that is currently working. Is this correct.

      auto eth0
      iface eth0 inet static
      address 192.168.1.155
      netmask 255.255.255.0
      gateway 192.168.1.1
      dns-nameservers 192.168.1.254
      Yes, that's ok.

      in /etc/resolv.conf you have dns servers in case that that's not working with the last line.

      Comment

      • philly
        Top Poster
        • Nov 2008
        • 119

        #18
        Originally posted by dzoner
        Yes, that's ok.

        in /etc/resolv.conf you have dns servers in case that that's not working with the last line.
        Thanks,
        All ok now. Just wanted to get to the bottom of this one. I did get around the problem by setting the two other PC's in the house to static and disabling the DHCP in the router. As this Linux PC is for me to mess around with I was not worried if I crashed it a some stage as it cost me zero, however the only way to learn is to get stuck in.
        Thanks to all other members who gave me a dig-out.
        keep up the good work.

        Comment

        Working...