Re: virtual host ip aliases
mike_at_lanline.com
Date: 09/13/05
- Previous message: Lyndon Nerenberg: "Re: virtual host ip aliases"
- In reply to: Jeff at NorrisTechs: "Re: virtual host ip aliases"
- Next in thread: unixtools_at_hotmail.com: "Re: virtual host ip aliases"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Sep 2005 19:53:34 -0400 (EDT) To: Jeff at NorrisTechs <jeff@norristechs.net>
yeah. thanks guys. i'm basically coming from a bsd/os background, so i
was hoping there was something equivalent to /etc/virtualip, but that
start_if.<dev> is close enough. so i basically wrote some thing like that
and appended the output to that file, but i can actually have the script in
the file itself? is that right?
thanks
-mike
On Mon, 12 Sep 2005, Jeff at NorrisTechs wrote:
>
> 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"
- Previous message: Lyndon Nerenberg: "Re: virtual host ip aliases"
- In reply to: Jeff at NorrisTechs: "Re: virtual host ip aliases"
- Next in thread: unixtools_at_hotmail.com: "Re: virtual host ip aliases"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Commonly Trojaned Linux services
... >> the script was to have a very fast, ... > Dave Wreski ...
There is no administration of reports unless there is a problem. ... w33n3r: Yeah.
... (comp.os.linux.security) - Re: Doctor Who
... script had to shoehorn the "breath" idea. ... Oh yeah, they looked cool.
... Frightening to think anybody thought they could be frightening. ... The Zombies
always seemed like such a tiny group of badly performing extras, despite the infinite appearance of their
prison. ... (uk.media.tv.misc) - Re: Start Desktop Manager
... >> for kde, cde, gdm and xdm but it either does not exist (yeah, I ...
> i used to use this script, ... > set the correct DISPLAY and... ...
Thanks a lot, Helmut ... (comp.unix.solaris) - Re: [SLE] Hacking Question
... > Yeah, it's either a virus or a script that's been passed around.
... or at least set decent passwords for those accounts? ... (SuSE) - Re: Need help extracting green urls from google results pages
... > I changed some of the green URLs into pink ... > The other effect is
what the script originally does (I added the pink ... > (in the script, which
I should fix). ... Yeah, that would be helpful. ... (alt.internet.search-engines)