From owner-freebsd-questions Tue Dec 1 06:45:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA05412 for freebsd-questions-outgoing; Tue, 1 Dec 1998 06:45:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.panama.pointecom.net (mail.panama.pointecom.net [204.95.131.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA05402 for ; Tue, 1 Dec 1998 06:45:18 -0800 (PST) (envelope-from ajohnson@c-com.net) Received: from panama-3 ([209.127.126.23]) by mail.panama.pointecom.net (8.8.8/8.8.8) with SMTP id JAA12186; Tue, 1 Dec 1998 09:44:54 -0500 (EST) (envelope-from ajohnson@c-com.net) Reply-To: From: "Alberto Johnson" To: "Damon Hammis" Cc: Subject: RE: sysconfig Date: Tue, 1 Dec 1998 09:51:09 -0500 Message-ID: <000701be1d3a$0873fb80$177e7fd1@panama-3.charter-pty.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <004d01be1d35$8b77a9a0$944845d1@mi.verio.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Damon Hammis [mailto:dhammis@verio.net] > Sent: Tuesday, December 01, 1998 9:19 AM > To: ajohnson@c-com.net; freebsd-questions@FreeBSD.ORG > Subject: Re: sysconfig > > > >Hi, small question can you add more than one IP address to one NIC. for > >example > > > Yes, but you need to do it like this: > > ifconfig_de0="inet x.x.x.x netmask y.y.y.y" > ifconfig_de0_alias0="inet z.z.z.z netmask a.a.a.a" > ifconfig_de0_alias1="inet b.b.b.b netmask c.c.c.c" > > You can keep doing this infinately as far as I know. I've put > 254 addresses > onto one interface on some of my machines. These 254 address belonged to the same subnet (255.255.255.0) I presume, they all had the same gateway or they were subdivided into smaller subnets. (255.255.255.192 or 255.255.255.248) which means that they should have different gateways? > > >network_interfaces="de0 lo0" > >ifconfig_de0="inet 203.93.131.1 netmask 255.255.255.0" > >ifconfig_de0="inet 209.92.121.1 netmask 255.255.255.0" > >ifconfig_lo0="inet localhost" > > > >and also be able to define more than one gateways > > As far as I know you still need can only have one defaultrouter, > but you can > route certain blocks of ips through specific interfaces with the route > command. how can this be done? > > Someone correct me if I'm wrong on this. > > --Damon > > > > ># Set to the host you'd like set as your default router, or NO for none. > >defaultrouter="203.93.131.252" > >defaultrouter="209.92.121.252" > > > > > > > > > >/********************************************/ > >/* A programmer is someone who solves a */ > >/* problem you didn't know you had in a */ > >/* way you don't understand. */ > >/********************************************/ > > > > > >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