Results 1 to 6 of 6

Thread: Static IP with Link-Local Only

  1. #1
    Join Date
    Apr 2006
    Beans
    Hidden!

    Static IP with Link-Local Only

    Is it possible to set a static IP with Link-Local Only network method? I have a Win7 machine and a Ubuntu machine connected to the net via Wifi and each other via ethernet with a switch so I can add more machines later. On the Win7 machine i simply set the wifi's metric to be lower than the ethernets - easy. On Ubuntu the only way I could accomplish this was to use Link-Local Only method but that doesn't provide a static IP (IP settings are greyed out). Anyone know how to do this?

  2. #2
    Join Date
    Apr 2007
    Location
    California
    Beans
    110
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Static IP with Link-Local Only

    I think that Link-Local Only just allows you to connect to one other computer, but I could be wrong. I, myself, seek an explanation of how to connect two Ubuntus with a crossover cable.
    Linux 2.6.31-20-generic; 9.10 WARNING: Do NOT take this user seriously!
    MSI GD65; i5 750; 4 GB DDR3; GeForce 9500 GT
    : Volume control buttons crash Gnome

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Static IP with Link-Local Only

    Quote Originally Posted by ScarySquirrel View Post
    I, myself, seek an explanation of how to connect two Ubuntus with a crossover cable.
    Have you started a thread (or searched the forum)? I'd be happy to pitch in - but not here...

    @Flynsarmy:
    I'm not familiar with details, but link-local seems to use avahi as a pseudo-DHCP network (zero-conf?), so static address may be contrary to design... (Or, I could be completely WRONG!) Older releases seemed to be easier to mix Network Manager (which only wanted to manage one interface at a time) with /etc/network/interfaces. Though I haven't given up on NM, removing it completely is frequently recommended.
    Last edited by Iowan; April 2nd, 2010 at 03:30 AM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Apr 2007
    Location
    California
    Beans
    110
    Distro
    Kubuntu 9.10 Karmic Koala

    Thumbs down Re: Static IP with Link-Local Only

    Quote Originally Posted by Iowan View Post
    Have you started a thread (or searched the forum)? I'd be happy to pitch in - but not here...
    Nah. I only start help request threads on these forums out of idle curiousity, really, and I actually want to find out how to do this.

    I've begun to realize that I'm advanced enough that, for the problems I can't fix myself, the community usually responds as follows:


    OR responds late enough that it would be simpler to have just spent the time researching or reinstalling. Still, sometimes something good, or amusing, will come up.
    Linux 2.6.31-20-generic; 9.10 WARNING: Do NOT take this user seriously!
    MSI GD65; i5 750; 4 GB DDR3; GeForce 9500 GT
    : Volume control buttons crash Gnome

  5. #5
    Join Date
    Jan 2006
    Location
    U.S.A.
    Beans
    971
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Static IP with Link-Local Only

    Quote Originally Posted by ScarySquirrel View Post
    OR responds late enough that it would be simpler to have just spent the time researching
    You're supposed to do that before you ask. A good place to start is to search the forums to see if your question has already been answered.
    Favorite man page quote: "The backreference \n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regular expression." [excerpt from grep(1)]

  6. #6
    Join Date
    Jan 2006
    Location
    U.S.A.
    Beans
    971
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Static IP with Link-Local Only

    Quote Originally Posted by njparton View Post
    my interfaces file doesn't contain a eth0 or wlan0 entry so I think it's redundant now???
    We need an Ubuntu user's input here. My take on what I read above is that, at least as of 8.04, the interfaces file was purged (and I assume, is no longer automatically populated), but if you wanted to manually set a metric you could create an entry in the file. I assume that's why it's still there. Not every linux system has an "interfaces" file.

    Also, I'd check what the metrics say now when you have both wired and wireless interfaces up and running (are they the same, or does the wireless interface have a higher metric?).

    Setting routing metrics in Ubuntu must be documented somewhere. I'd look around. It's got to be easy to do, because it's a common task.

    If all else fails, you could always set it with a one-line script that runs an ifconfig command at the end of your boot-up process. You could probably also configure something in the wireless software (for example, with WPA Supplicant, you can set up what's called "action scripts" that run on connect or disconnect events).
    Last edited by BoneKracker; June 1st, 2010 at 04:21 PM.
    Favorite man page quote: "The backreference \n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regular expression." [excerpt from grep(1)]

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
  •