Re: [Vyatta-users] Managing different subnet with different gateway

2008-01-03 Thread Nick Davey
I don't know if I'm understanding this right. You want to add a second
subnet on a second interface of the Vyatta router? In that case, yes it will
work fine, without much extra configuration (you may need to modify your
NAT/firewall rules). That's a pretty straight forward setup though. If you
are looking to add a second router to your network, with a second network
behind that router you would need to add static routes for the network
behind the second router, and a default route on the second router.
Alternatively you could use a simple routing protocol like RIP. Make sense?

On Jan 3, 2008 3:13 AM, Daren Tay [EMAIL PROTECTED] wrote:

 Hi guys,

 happy 2008 wherever you guys are!

 I have a question:
 Currently my vyatta router is handling one subnet with one gateway, using
 NAT for the servers.
 SO basically its just static routing.

 I now need to add another subnet (different project) into the picture,
 which
 has its own gateway.
 Can the vyatta router handle 2 different subnet, each with its own
 gateway?

 Do advice ;)

 Thanks!
 Daren

 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users

___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


Re: [Vyatta-users] Managing different subnet with different gateway

2008-01-03 Thread Daren Tay
Hi there,

my intention is just to use one router to handle 2 subnet.
But each subnet has their own gateway, so how do I specify the different
gateway on the router?

Thanks!
Daren
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nick Davey
  Sent: Thursday, January 03, 2008 11:25 PM
  To: Daren Tay
  Cc: vyatta-users@mailman.vyatta.com
  Subject: Re: [Vyatta-users] Managing different subnet with different
gateway


  I don't know if I'm understanding this right. You want to add a second
subnet on a second interface of the Vyatta router? In that case, yes it will
work fine, without much extra configuration (you may need to modify your
NAT/firewall rules). That's a pretty straight forward setup though. If you
are looking to add a second router to your network, with a second network
behind that router you would need to add static routes for the network
behind the second router, and a default route on the second router.
Alternatively you could use a simple routing protocol like RIP. Make sense?


  On Jan 3, 2008 3:13 AM, Daren Tay [EMAIL PROTECTED] wrote:

Hi guys,

happy 2008 wherever you guys are!

I have a question:
Currently my vyatta router is handling one subnet with one gateway,
using
NAT for the servers.
SO basically its just static routing.

I now need to add another subnet (different project) into the picture,
which
has its own gateway.
Can the vyatta router handle 2 different subnet, each with its own
gateway?

Do advice ;)

Thanks!
Daren

___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


[Vyatta-users] Managing different subnet with different gateway

2008-01-03 Thread Ken Felix (C)
Will each subnet be it's own  interface? You should easily be able to
perform this with  binding the second subnet to another interface.

 

i.e

 

 

interface Ethernet eth0

  description 1st  subnet ( existing )

   ip address aaa.bbb.ccc.ddd/24

 

interface Ethernet eth1

   description second subnet  

   ip address eee.fff.ggg.hhh/24

 

 

 

Or  you could look at 802.1q trunking and a router-on-stick approach.

 

___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


Re: [Vyatta-users] Managing different subnet with different gateway

2008-01-03 Thread Robert Bays
Daren,

If I am understanding you correctly you want to route the first local
interface out one gateway and the second local interface out the second
gateway.  You would need to use source based routing to do what you are
looking for.  That's not currently supported in the cli, but you can do
it from the linux command prompt using the ip tool.  Something like this
should work for you.

#ip route add default via 10.0.0.1 dev eth0 tab 1
#ip route add default via 10.1.0.1 dev eth1 tab 2
#ip rule add from 192.168.16.0/24 tab 1 priority 500
#ip rule add from 192.168.17.024 tab 2 priority 600

Cheers,
Robert.


Daren Tay wrote:
 Hi there,
  
 my intention is just to use one router to handle 2 subnet.
 But each subnet has their own gateway, so how do I specify the different
 gateway on the router?
  
 Thanks!
 Daren
 
 -Original Message-
 *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
 *Nick Davey
 *Sent:* Thursday, January 03, 2008 11:25 PM
 *To:* Daren Tay
 *Cc:* vyatta-users@mailman.vyatta.com
 *Subject:* Re: [Vyatta-users] Managing different subnet with
 different gateway
 
 I don't know if I'm understanding this right. You want to add a
 second subnet on a second interface of the Vyatta router? In that
 case, yes it will work fine, without much extra configuration (you
 may need to modify your NAT/firewall rules). That's a pretty
 straight forward setup though. If you are looking to add a second
 router to your network, with a second network behind that router you
 would need to add static routes for the network behind the second
 router, and a default route on the second router. Alternatively you
 could use a simple routing protocol like RIP. Make sense?
 
 On Jan 3, 2008 3:13 AM, Daren Tay [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 Hi guys,
 
 happy 2008 wherever you guys are!
 
 I have a question:
 Currently my vyatta router is handling one subnet with one
 gateway, using
 NAT for the servers.
 SO basically its just static routing.
 
 I now need to add another subnet (different project) into the
 picture, which
 has its own gateway.
 Can the vyatta router handle 2 different subnet, each with its
 own gateway?
 
 Do advice ;)
 
 Thanks!
 Daren
 
 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 mailto:Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users
 
 
 
 
 
 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users
___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


Re: [Vyatta-users] Managing different subnet with different gateway

2008-01-03 Thread Daren Tay
Hi guys,

yeah I want to route them out different gateway.

what is this ip tool you are refering to? you mean the standard 'ip' command
over the linux kernel?
And if I issue these command, won't xorp override it everytime i do a commit
within it? I thought Vyatta overrides any routing/settings the kernel has..

so base on what you are advicing me,
 #ip route add default via 10.0.0.1 dev eth0 tab 1
 #ip route add default via 10.1.0.1 dev eth1 tab 2
 #ip rule add from 192.168.16.0/24 tab 1 priority 500
 #ip rule add from 192.168.17.024 tab 2 priority 600

say my subnet 1 is 192.168.16.0/24
subnet 2 is 192.168.17.0/24

by add the above, i can define the default gateway out?

And as my original question mention, will it interfere with Vyatta's
settings (static routing etc), or vice versa?

On a side note, am I able to track bandwidth usage on each of this
interface?

Thanks!
Daren

-Original Message-
From: Aubrey Wells [mailto:[EMAIL PROTECTED]
Sent: Friday, January 04, 2008 6:19 AM
To: Robert Bays
Cc: Daren Tay; vyatta-users@mailman.vyatta.com
Subject: Re: [Vyatta-users] Managing different subnet with different
gateway


hmmm I did not know you could do that with ip in linux. very
interesting. you just solved a problem for me as well, thanks. :-)

--
Aubrey Wells
Senior Engineer
Shelton | Johns Technology Group
A Vyatta Ready Partner
www.sheltonjohns.com


On Jan 3, 2008, at 1:14 PM, Robert Bays wrote:

 Daren,

 If I am understanding you correctly you want to route the first local
 interface out one gateway and the second local interface out the
 second
 gateway.  You would need to use source based routing to do what you
 are
 looking for.  That's not currently supported in the cli, but you can
 do
 it from the linux command prompt using the ip tool.  Something like
 this
 should work for you.

 #ip route add default via 10.0.0.1 dev eth0 tab 1
 #ip route add default via 10.1.0.1 dev eth1 tab 2
 #ip rule add from 192.168.16.0/24 tab 1 priority 500
 #ip rule add from 192.168.17.024 tab 2 priority 600

 Cheers,
 Robert.


 Daren Tay wrote:
 Hi there,

 my intention is just to use one router to handle 2 subnet.
 But each subnet has their own gateway, so how do I specify the
 different
 gateway on the router?

 Thanks!
 Daren

-Original Message-
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
*Nick Davey
*Sent:* Thursday, January 03, 2008 11:25 PM
*To:* Daren Tay
*Cc:* vyatta-users@mailman.vyatta.com
*Subject:* Re: [Vyatta-users] Managing different subnet with
different gateway

I don't know if I'm understanding this right. You want to add a
second subnet on a second interface of the Vyatta router? In that
case, yes it will work fine, without much extra configuration (you
may need to modify your NAT/firewall rules). That's a pretty
straight forward setup though. If you are looking to add a second
router to your network, with a second network behind that router
 you
would need to add static routes for the network behind the second
router, and a default route on the second router. Alternatively
 you
could use a simple routing protocol like RIP. Make sense?

On Jan 3, 2008 3:13 AM, Daren Tay [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

Hi guys,

happy 2008 wherever you guys are!

I have a question:
Currently my vyatta router is handling one subnet with one
gateway, using
NAT for the servers.
SO basically its just static routing.

I now need to add another subnet (different project) into the
picture, which
has its own gateway.
Can the vyatta router handle 2 different subnet, each with its
own gateway?

Do advice ;)

Thanks!
Daren

___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
mailto:Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users



 

 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users
 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users

___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


Re: [Vyatta-users] Managing different subnet with different gateway

2008-01-03 Thread Aubrey Wells
Not sure about the vyatta overriding part, I'm always unsure of what  
will get overridden myself. I do know that you will need to put your  
commands in to /etc/rc.d/rc.local so it will survive a reboot.

For the bandwidth tracking, I'm using a utility called bandwidthd and  
it works very well.

--
Aubrey Wells
Senior Engineer
Shelton | Johns Technology Group
A Vyatta Ready Partner
www.sheltonjohns.com





On Jan 3, 2008, at 10:18 PM, Daren Tay wrote:

 Hi guys,

 yeah I want to route them out different gateway.

 what is this ip tool you are refering to? you mean the standard 'ip'  
 command
 over the linux kernel?
 And if I issue these command, won't xorp override it everytime i do  
 a commit
 within it? I thought Vyatta overrides any routing/settings the  
 kernel has..

 so base on what you are advicing me,
 #ip route add default via 10.0.0.1 dev eth0 tab 1
 #ip route add default via 10.1.0.1 dev eth1 tab 2
 #ip rule add from 192.168.16.0/24 tab 1 priority 500
 #ip rule add from 192.168.17.024 tab 2 priority 600

 say my subnet 1 is 192.168.16.0/24
 subnet 2 is 192.168.17.0/24

 by add the above, i can define the default gateway out?

 And as my original question mention, will it interfere with Vyatta's
 settings (static routing etc), or vice versa?

 On a side note, am I able to track bandwidth usage on each of this
 interface?

 Thanks!
 Daren

 -Original Message-
 From: Aubrey Wells [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 04, 2008 6:19 AM
 To: Robert Bays
 Cc: Daren Tay; vyatta-users@mailman.vyatta.com
 Subject: Re: [Vyatta-users] Managing different subnet with different
 gateway


 hmmm I did not know you could do that with ip in linux. very
 interesting. you just solved a problem for me as well, thanks. :-)

 --
 Aubrey Wells
 Senior Engineer
 Shelton | Johns Technology Group
 A Vyatta Ready Partner
 www.sheltonjohns.com


 On Jan 3, 2008, at 1:14 PM, Robert Bays wrote:

 Daren,

 If I am understanding you correctly you want to route the first local
 interface out one gateway and the second local interface out the
 second
 gateway.  You would need to use source based routing to do what you
 are
 looking for.  That's not currently supported in the cli, but you can
 do
 it from the linux command prompt using the ip tool.  Something like
 this
 should work for you.

 #ip route add default via 10.0.0.1 dev eth0 tab 1
 #ip route add default via 10.1.0.1 dev eth1 tab 2
 #ip rule add from 192.168.16.0/24 tab 1 priority 500
 #ip rule add from 192.168.17.024 tab 2 priority 600

 Cheers,
 Robert.


 Daren Tay wrote:
 Hi there,

 my intention is just to use one router to handle 2 subnet.
 But each subnet has their own gateway, so how do I specify the
 different
 gateway on the router?

 Thanks!
 Daren

   -Original Message-
   *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
   *Nick Davey
   *Sent:* Thursday, January 03, 2008 11:25 PM
   *To:* Daren Tay
   *Cc:* vyatta-users@mailman.vyatta.com
   *Subject:* Re: [Vyatta-users] Managing different subnet with
   different gateway

   I don't know if I'm understanding this right. You want to add a
   second subnet on a second interface of the Vyatta router? In that
   case, yes it will work fine, without much extra configuration (you
   may need to modify your NAT/firewall rules). That's a pretty
   straight forward setup though. If you are looking to add a second
   router to your network, with a second network behind that router
 you
   would need to add static routes for the network behind the second
   router, and a default route on the second router. Alternatively
 you
   could use a simple routing protocol like RIP. Make sense?

   On Jan 3, 2008 3:13 AM, Daren Tay [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:

   Hi guys,

   happy 2008 wherever you guys are!

   I have a question:
   Currently my vyatta router is handling one subnet with one
   gateway, using
   NAT for the servers.
   SO basically its just static routing.

   I now need to add another subnet (different project) into the
   picture, which
   has its own gateway.
   Can the vyatta router handle 2 different subnet, each with its
   own gateway?

   Do advice ;)

   Thanks!
   Daren

   ___
   Vyatta-users mailing list
   Vyatta-users@mailman.vyatta.com
   mailto:Vyatta-users@mailman.vyatta.com
   http://mailman.vyatta.com/mailman/listinfo/vyatta-users



 

 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users
 ___
 Vyatta-users mailing list
 Vyatta-users@mailman.vyatta.com
 http://mailman.vyatta.com/mailman/listinfo/vyatta-users