From owner-freebsd-questions Wed Jul 4 11:28:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from camel.kdsi.net (camel.kdsi.net [206.103.113.218]) by hub.freebsd.org (Postfix) with ESMTP id 100D337B405 for ; Wed, 4 Jul 2001 11:28:32 -0700 (PDT) (envelope-from tony@camel.kdsi.net) Received: from camel.kdsi.net (leepcC-172.sub-c.lee.net [208.205.126.172]) (authenticated (0 bits)) by camel.kdsi.net (8.12.0.Beta10/8.12.0.Beta10) with ESMTP id f64IV4Kv013136; Wed, 4 Jul 2001 13:31:05 -0500 (CDT) Message-ID: <3B435FFE.21C22BE1@camel.kdsi.net> Date: Wed, 04 Jul 2001 13:27:10 -0500 From: Tony Wells X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Kelvin Ng Chee Hoong Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: Ethernet alias References: <3B42DCB4.D09C9B2A@pacific.net.sg> 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 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