[Fedora] Setting IP Aliases via SSH

Discussion in 'Linux & BSD' started by Geffy, Mar 15, 2005.

  1. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    OK, heres the thing I have to setup a Fedora server to have another 4 ip addresses. I have managed to change it from one ip range to another by modifying /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0

    now how do I add ip address aliases. I have googled about and havent found anything shockingly helpful

    am I correct in thinking that it should be something along the line of
    /etc/sysconfig/network-scripts/ifcfg-eth0:0
    /etc/sysconfig/network-scripts/ifcfg-eth0:1

    and so on

    or maybe
    /etc/sysconfig/network-scripts/ifcfg-eth0-range0
    and then define the range within that??

    have I got this right?
     
  2. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    went with the range format, seems to have worked out right
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    THose scripts just get executed on bootup, so it does not matter what you call em.

    Call em damnwhydidiinstallfedoraandnotBSD :p J/K
     
  4. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    it matter what I call them, they are text files of a specific format :p
    the rest of what is in there could be named whatever though, but those files had to be named specifically

    I just wish linux didnt put stuff in stupid places
    /etc/rc.conf makes so much more sense
     
  5. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    just pop the ifconfig commands in /etc/rc.d/rc.local

    I forget what they are off the top of my head.
     
  6. chrisbyrd

    chrisbyrd OSNN Junior Addict

    Messages:
    27
    in geffy's defence, i was poking him with a large pointy stick to do this... it was obviously not his prefered choice of OS :D

    geffy - i think you're converting me to the BSD following :)
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Good good. The more members the merrier. Now pleas be aware, the BSD group does not allow such things as:

    1337, or hax0r in the group :p (Sorry, stereo type, which mostly seems true).
     
  8. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    pointed stick with some sentient pot noodle at the end of it, that was the scary part :p


    muhahaha, the BSD following increases :D
     
  9. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    geffy, you are doing some good work. I award you the following award for getting switchers :p
     
  10. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    Did someone say switchers? :p

    [​IMG]
     
    X-Istence likes this.
  11. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    Smart people switchers :D

    BSD really is nice for sysadmins. Lets you be lazy and look busy while being lazy :D
     
    X-Istence likes this.
  12. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    rep++ ? :p
     
    X-Istence likes this.
  13. chrisbyrd

    chrisbyrd OSNN Junior Addict

    Messages:
    27
    whatabout me? rep++? :D:D
     
    Geffy likes this.
  14. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    once you switch to FreeBSD get back here :p
     
    Geffy likes this.