Re: virtual host ip aliases

From: Jeff at NorrisTechs (jeff_at_norristechs.net)
Date: 09/13/05

  • Next message: Lyndon Nerenberg: "Re: virtual host ip aliases"
    Date: Mon, 12 Sep 2005 17:30:01 -0600
    To: mike@lanline.com
    
    

    Mike.

    If you wanted to do it in bash, here's a script you can call using
    /usr/local/etc/rc.d/999myalias.sh

    #!/usr/local/bin/bash
    # save to /usr/local/etc/rc.d/999myalias.sh
    # chmod 755
    # BLAH BLAH BLAH.... NO COMMENT
    ######################################
    #
    # change to interface name, e.g. fxp0, rl0, fxp1 , whatever
    NetName="fxp0"
    # How many aliases will we create
    Total="254"
    # change NUM=xx whre xx is the starting number
    for (( NUM=1; NUM <= $Total; NUM++ ))
    do
    # if you want to see the looping number
    # uncomment this the next line
    #echo $NUM
    # Change 192.168.1.XXX to match your network
    # change netmask to match you network
    ifconfig $NetName 192.168.1.$NUM netmask 255.255.255.0 alias
    done
    # if you dont want to see 254 IP addresses, just comment out the next line
    ifconfig | more
    #end

    Cheers.

    ------------------------------------------------------------------------

    */Jeff Norris/*
    /~ Web Hosting ~ VPN Solutions ~ Network Management ~
    Design, deploy, kick ass. /
    *N*orris*Techs* dot net
    http://www.norristechs.net
    *AOL IM or Yahoo IM: /ntshelper/*

    mike@lanline.com wrote:

    >Hi,
    >
    > I want to add like 254 ip aliases to a nic. Is there a better way
    >to do it than adding _alias# 's to the rc.conf.
    >
    >Thanks.
    >
    >-Mike
    >
    >
    >_______________________________________________
    >freebsd-isp@freebsd.org mailing list
    >http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    >To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    >
    >
    >
    >
    >
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Lyndon Nerenberg: "Re: virtual host ip aliases"

    Relevant Pages

    • Re: Rainbow Six Vegas 2 (PS3) plagued by online problems
      ... because they want to play games on it. ... blah blah blah blah. ... lower number of network issues on the Playstation Network has anything ... Only a "fawkeeng idiot" would think that Sony is doing any of this out ...
      (alt.games.video.xbox)
    • Re: troubles with outgoing tcp/ip after sp1
      ... I recently had the same trouble on our network and came within a week ... Whenever I would hack registries and lower my MTU, ... Database replications and DTS packages failing, ... responsible for what you do, blah blah blah, cover my butt, etc. ...
      (microsoft.public.windows.server.networking)
    • Re: xp sp2 broke shiva vpn client
      ... I recently had the same trouble on our network and came within a week ... Whenever I would hack registries and lower my MTU, ... SQL Database replications and DTS packages failing, ... responsible for what you do, blah blah blah, cover my butt, etc. ...
      (microsoft.public.windowsxp.work_remotely)
    • Re: OT:Paging the Wifiisti.....
      ... > One of our offices in London has 8 or so machines in, ... > network that allows them 24hours worth of access and then cuts them off ... it's a linux based wifi router that ... encryption, blah blah. ...
      (uk.rec.motorcycles)
    • Re: Can computer check email in sleep?
      ... which can interfere blah blah blah. ... >> Brett, ... >> ask your boss to allow you to tie your network people to their chairs, ... >> problem, keep pulling that trigger. ...
      (microsoft.public.windowsxp.general)