Date: Wed, 04 Jul 2001 13:27:10 -0500 From: Tony Wells <tony@camel.kdsi.net> To: Kelvin Ng Chee Hoong <nchee_hoong@pacific.net.sg> Cc: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: Ethernet alias Message-ID: <3B435FFE.21C22BE1@camel.kdsi.net> References: <3B42DCB4.D09C9B2A@pacific.net.sg>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B435FFE.21C22BE1>