Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 16:19:10 +0200
From:      =?ISO-8859-1?Q?Sten_Daniel_S=F8rsdal?= <lists@wm-access.no>
To:        OxY <oxy@field.hu>
Cc:        freebsd-net@freebsd.org
Subject:   Re: changing default route
Message-ID:  <4469DF5E.20301@wm-access.no>
In-Reply-To: <000c01c67873$dc8a9680$0201a8c0@oxy>
References:  <000c01c67873$dc8a9680$0201a8c0@oxy>

next in thread | previous in thread | raw e-mail | index | archive | help
OxY wrote:
> hi!
>=20
> i have a little irregular problem with default route..
> here are the details:
>=20
> have two interfaces with the same ip, em0 connected to another server w=
ith crosslink,=20
> em1 is the public, can be reached from the internet connected to a swit=
ch.
>=20
> em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=3Db<RXCSUM,TXCSUM,VLAN_MTU>
>         inet 195.38.96.13 netmask 0xffffffc0 broadcast 195.38.96.127
>         ether 00:13:d4:46:ae:91
>         media: Ethernet autoselect (1000baseTX <full-duplex>)
>         status: active
> em1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=3Db<RXCSUM,TXCSUM,VLAN_MTU>
>         inet 195.38.96.13 netmask 0xffffffc0 broadcast 195.38.96.127
>         ether 00:0e:0c:a2:ac:42
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
>=20
> in rc.conf i have:
> defaultrouter=3D"195.38.96.65"
> ifconfig_em0=3D"inet 195.38.96.89 netmask 255.255.255.192"
> ifconfig_em1=3D"inet 195.38.96.89 netmask 255.255.255.192"
>=20
> with these the OS puts the default route to em0, however i want to comm=
unicate with the world on em1 and
> use em0 to connect to the other server on lan..
>=20
> default            gateway. UGS         0  8065787    em0   <----need e=
m1 here
>=20
> i can't change ip, it must be the same on both interfaces..
> how can i change the interface for defaultroute?
>=20
> thank you for help!

One side has to have a netmask of 255.255.255.255
-or-
use bridging

Are you sure the way you do it will work at all?
--=20
Sten Daniel S=F8rsdal




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4469DF5E.20301>