Date: Tue, 16 May 2006 18:02:09 +0300 From: Iasen Kostov <tbyte@otel.net> To: OxY <oxy@field.hu> Cc: freebsd-net@freebsd.org Subject: Re: changing default route Message-ID: <1147791729.26749.12.camel@DraGoN.OTEL.net> In-Reply-To: <000c01c67873$dc8a9680$0201a8c0@oxy> References: <000c01c67873$dc8a9680$0201a8c0@oxy>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2006-05-16 at 01:04 +0200, OxY wrote: > hi! > > i have a little irregular problem with default route.. > here are the details: > > have two interfaces with the same ip, em0 connected to another server with crosslink, > em1 is the public, can be reached from the internet connected to a switch. > > em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > options=b<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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > options=b<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 > > in rc.conf i have: > defaultrouter="195.38.96.65" > ifconfig_em0="inet 195.38.96.89 netmask 255.255.255.192" > ifconfig_em1="inet 195.38.96.89 netmask 255.255.255.192" > > with these the OS puts the default route to em0, however i want to communicate with the world on em1 and > use em0 to connect to the other server on lan.. > > default gateway. UGS 0 8065787 em0 <----need em1 here > > i can't change ip, it must be the same on both interfaces.. > how can i change the interface for defaultroute? > > thank you for help! > > remove defaultrouter and add this: static_routes="default" route_default="default 195.38.96.65 -ifp em1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1147791729.26749.12.camel>