From owner-freebsd-questions Wed Jul 4 17:39:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sunny.pacific.net.sg (sunny.pacific.net.sg [203.120.90.127]) by hub.freebsd.org (Postfix) with ESMTP id CBE5737B40C for ; Wed, 4 Jul 2001 17:39:09 -0700 (PDT) (envelope-from nchee_hoong@pacific.net.sg) Received: from pop1.pacific.net.sg (pop1.pacific.net.sg [203.120.90.85]) by sunny.pacific.net.sg with ESMTP id f64NjCr01455; Thu, 5 Jul 2001 07:45:13 +0800 (SGT) Received: from pacific.net.sg ([203.208.143.50]) by pop1.pacific.net.sg with ESMTP id IAA08317; Thu, 5 Jul 2001 08:38:59 +0800 (SGT) Message-ID: <3B43B87D.29449187@pacific.net.sg> Date: Thu, 05 Jul 2001 08:44:45 +0800 From: Kelvin Ng Chee Hoong X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: zh-TW,en MIME-Version: 1.0 To: Tony Wells Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: Ethernet alias References: <3B42DCB4.D09C9B2A@pacific.net.sg> <3B435FFE.21C22BE1@camel.kdsi.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Tony ; Thank you very much for your advise . : -) Tony Wells wrote: > Check /etc/defaults/rc.conf and you will find an example line for > setting up an alias. Copy over the information to /etc/rc.conf, and > after you have edited it to your liking reboot your machine to make the > alias live. You can also use ifconfig, but you'll probably want the > alias to come up at boot so you might as well add it to /etc/rc.conf. > Leave the netmask 0xffffff for the alias even if that isn't the same > netmask as your network. > > As far a renaming the Gateway field, it's just telling you that you are > on the same net as those machines, e.g. they are 1 hop away. To rename > that field would seem to be obfuscating what's really going on. > > Kelvin Ng Chee Hoong wrote: > > > > Hi ; > > I have read man ifconfig but not understand the definition the use of > > "alias" . Can somebody explain to me in simple definition , gives > > example on how to use ethernet alias ? > > When I type netstat -r , my routing table shows me like this ..... > > > > nternet: > > Destination Gateway Flags Refs Use Netif > > Expire > > default 192.168.100.5 UGSc 2 91955 xl0 > > localhost localhost UH 0 0 lo0 > > 192.168.100/30 link#2 UC 0 0 xl1 => > > > > 192.168.100.4/30 link#1 UC 0 0 xl0 => > > > > 192.168.1.0/24 link#3 UC 0 0 rl0 > > => > > 172.16.100.0/24 192.168.100.1 UGSc 0 668 xl1 > > > > In the Gateway column , is there a way to rename link#2 , link#1, link#3 > > to either IP address or other name ? > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message