*BSD News Article 65700


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!imci3!imci4!newsfeed.internetmci.com!News.LiveNet.Net!ns1
From: jsloan@livnet.com (Jim Sloan)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to do ifconfig alias
Date: Fri, 12 Apr 96 00:25:51 GMT
Organization: LiveNet, Inc.
Lines: 44
Message-ID: <4kk87e$pko@PaperBoy.LiveNet.Net>
References: <316D1F69.9D9@shoreland.com>
NNTP-Posting-Host: green.colours.livenet.net
X-Newsreader: News Xpress 2.0 Beta #0

In article <316D1F69.9D9@shoreland.com>, Thanva Khouvongsavanh <thanva@shoreland.com> wrote:
>Hola,
>
>I am having trouble doing ifconfig alias.
>
>I setup the ethernet card in sysconfig
>
>    ifconfig eth0 204.29.202.10 netmask 255.255.255.0
>
>then in rc.local I do a 
>
>    ifconfig eth0 204.29.202.10 alias 204.29.202.11
>
>Sometime this works, but sometime it doesent.
>
>why?
>
>Thanks
>
>Thanva

the format of the command is 

ifconfig eth0 204.29.202.11 alias

you only need the alias you are adding, it already has 204.29.292.10 in the 
table.

don't forget to 
route add -host 204.29.292.11 127.0.0.1

and you also might want to 
arp -s eth0 MAC_address proxy


------------------------------------------------------------------------
 Jim Sloan                        jsloan@livenet.net
 Vice President
 LiveNet, Inc.                         
 413 Davis St. Suite 106          Full Service Internet Provider
 Virginia Beach VA 23462          Dialup and dedicated connections
 Ph: 804-499-9328                 Virtual Web, Email, and FTP hosting
 http://www.livenet.net           info@livenet.net webmaster@livenet.net
------------------------------------------------------------------------