-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jay,

>
> is it posible to have 2 default gateway? like my eth0 gateway is
> set to 192.168.1.1 and my eth1 gateway is set to 192.168.2.1.
You can not have 2 default gateway, otherwise, the word "default" will
then be defeated ;-).
However, you can explicitly define static routes like so:

route add -net 192.168.1.2 netmask 255.255.255.255 gw 192.168.1.1
or
route add -net 192.168.1.2 netmask 255.255.255.255 dev eth1

man route for more information.


hth,
Kenneth
>
> here's my recent configuration; btw im using gentoo linux and ip
> aliasing.
>
> iface_eth0="192.168.0.2 netmask 255.255.255.0 broadcast
> 192.168.0.255" gateway="eth0/192.168.0.1"
>
> alias_eth0=( "192.168.0.2" ) broadcast_eth0=( "192.168.0.255" )
> netmask_eth0=( "255.255.255.0" )
>
>
> iface_eth1="192.168.1.2 netmask 255.255.255.0 broadcast
> 192.168.1.255" gateway="eth1/192.168.1.1"
>
> alias_eth1=( "192.168.1.2" ) broadcast_eth1=( "192.168.1.255" )
> netmask_eth1=( "255.255.255.0" )
>
>
> any suggestions?
>
> how do u do it on other linux distro?
>
>
>
> thanks, --jay--
>
> _________________________________________________ Philippine Linux
> Users' Group (PLUG) Mailing List [email protected] (#PLUG @
> irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEMjVz9MTaiXoaMBgRAsVNAJ9QCyEodTx5vP4J5tnGKo9H+F99GwCeOc+U
EyjF1ntVj9iDVJAyHApZj5s=
=icO3
-----END PGP SIGNATURE-----

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to