Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: [SOLVED] Static IP help

  1. #1
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    252
    Distro
    Ubuntu Karmic Koala (testing)

    [SOLVED] Static IP help

    I am trying to setup a small network at home using NFS. I know that I need static IP's on all my machines.

    I have the following settings- router reports that it currently assigns 192.168.1.66 to my PC. Routers IP is 192.168.1.254 ( I think). Using System>Admin>networking I have set up a static IP using those values. However after confirming changes I cannot access the internet. What simple mistake am I making here?
    Last edited by lemmy999; October 3rd, 2008 at 12:22 PM.

  2. #2
    Join Date
    Apr 2007
    Location
    West Sussex U.K.
    Beans
    227
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Static IP help

    I've just done a quick search on the forums and can't find anything else that can help, but I did find a howto elsewhere.

    Take a look at this Static IP HOWto, I'm not sure if it will help, but it's a start.

  3. #3
    Join Date
    Mar 2008
    Location
    Earth.... Mostly
    Beans
    Hidden!
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Static IP help

    could you tupe ifconfig in terminal and post results?

    dac
    If Windows did not break, i would be out of a job...

  4. #4
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    252
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Static IP help

    This is my ifconfig ( but i have changed back to DHCP)
    eth0 Link encap:Ethernet HWaddr 00:14:2a:ec:d3:b0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:16 Base address:0xe000

    eth1 Link encap:Ethernet HWaddr 00:50:bf:80:2b:a4
    inet addr:192.168.1.66 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::250:bfff:fe80:2ba4/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:18040 errors:0 dropped:0 overruns:0 frame:0
    TX packets:15008 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:15630675 (14.9 MB) TX bytes:3175393 (3.0 MB)
    Interrupt:20 Base address:0xe900

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1684 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1684 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:74383 (72.6 KB) TX bytes:74383 (72.6 KB)
    Just checked /etc/network/interfaces
    auto lo
    iface lo inet loopback

    auto eth2
    #iface eth2 inet dhcp

    auto ath0
    #iface ath0 inet dhcp

    auto wlan0
    #iface wlan0 inet dhcp
    Where does eth2 come from?
    Last edited by lemmy999; October 2nd, 2008 at 11:00 AM.

  5. #5
    Join Date
    May 2007
    Location
    michigan
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Static IP help

    Quote Originally Posted by lemmy999 View Post
    I am trying to setup a small network at home using NFS. I know that I need static IP's on all my machines.

    I have the following settings- router reports that it currently assigns 192.168.1.66 to my PC. Routers IP is 192.168.1.254 ( I think). Using System>Admin>networking I have set up a static IP using those values. However after confirming changes I cannot access the internet. What simple mistake am I making here?
    Let's think about this a little differently. Rather than hardcoding an IP address on a workstation what about using a MAC reservation on the router? On my work network (and on my home network) all workstation static IPs are assigned by the DHCP server, not reserved on the workstation. The reason for this is that creating nonstandard configurations increases support costs

    So if you wanted your router to assign 192.168.1.66 to your PC all the time all you have to do is tell the router that that address is reserved for MAC address 00:14:2a:ec:d3:b0.

    At home I have two Linux boxes, one networked printer and the spousal unit's Windows machine all happily receiving static IP addresses from the router instead of hardcoding them on the local device. NFS shares between the Linux boxes and Windows shares through samba work just fine.

  6. #6
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Static IP help

    Quote Originally Posted by wizard10000 View Post
    Let's think about this a little differently. Rather than hardcoding an IP address on a workstation what about using a MAC reservation on the router? On my work network (and on my home network) all workstation static IPs are assigned by the DHCP server, not reserved on the workstation. The reason for this is that creating nonstandard configurations increases support costs

    So if you wanted your router to assign 192.168.1.66 to your PC all the time all you have to do is tell the router that that address is reserved for MAC address 00:14:2a:ec:d3:b0.

    At home I have two Linux boxes, one networked printer and the spousal unit's Windows machine all happily receiving static IP addresses from the router instead of hardcoding them on the local device. NFS shares between the Linux boxes and Windows shares through samba work just fine.
    Sounds good....I use address reservation based on MAC address as well, one for my desktop's wireless, another for my laptop's wireless, and another for the same laptop when it's plugged in to a wired port (saves having to remember to disable wireless on it)


    <aside>I've just noticed I've started to unconsciously capitalise the word Desktop, corrected in above rant</aside>
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  7. #7
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    252
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Static IP help

    @wizard1000

    Sounds like a good idea. I'll give that a go instead!

  8. #8
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    252
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Static IP help

    Don't I need static IP addresses to make NFS work?

  9. #9
    Join Date
    May 2007
    Location
    michigan
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: Static IP help

    Quote Originally Posted by lemmy999 View Post
    Don't I need static IP addresses to make NFS work?
    NFS doesn't care what the IP address is or how the workstation got it but if the IP address changes it'll break your connection. You can do name-based NFS but something has to keep track of hostname to IP address changes - IMO static IPs are the way to go.

  10. #10
    Join Date
    Apr 2007
    Location
    West Sussex U.K.
    Beans
    227
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Static IP help

    Quote Originally Posted by wizard10000 View Post
    what about using a MAC reservation on the router?
    That's a brilliant answer wizard10000! I will have to keep that answer, as that might be of use to me in the near future!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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