Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 1998 10:02:35 -0500
From:      "Damon Hammis" <dhammis@verio.net>
To:        <ajohnson@c-com.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: sysconfig
Message-ID:  <014901be1d3b$a1485260$944845d1@mi.verio.net>

next in thread | raw e-mail | index | archive | help
>> 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?

I've done it different ways on different machines.  I've done 254 single ips
from a Class C on one interface as well as various other chunks of ip blocks
from different Class C's.

>> >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?
>

route add x.x.x.x (dest) y.y.y.y (mask) z.z.z.z (gateway)

>>
>> Someone correct me if I'm wrong on this.

--Damon



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?014901be1d3b$a1485260$944845d1>