Chuck Payne | 8 Aug 2012 22:36
Picon
Gravatar

Need help with routes

Guys,

I am trying to get a proxmox ve server up and running. I am trying to
get routes working on this server, proxmox ve using debian as it's
base.

This server is our data center, we can access all server from our
office via vpn connection.  Most server that are running RHEL the
route looks like this.

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
10.1.0.0        10.1.0.254     255.255.255.0   UG     0      0        0 eth1
172.21.1.0      10.0.0.254  255.255.255.0   UG    0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
default         10.0.0.254  0.0.0.0         UG    0      0        0 eth0

10.0.0.0/24 is prod
10.1.0.0/24 is backup
172.21.1.0/24 is vpn

On the proxmox server I have two nic that are bridge  (vmbr0/eth0) (vmbr1/eth1)

vmbr0     Link encap:Ethernet  HWaddr 00:13:72:66:71:a5
          inet addr:10.0.0.61  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::213:72ff:fe66:71a5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23304 errors:0 dropped:0 overruns:0 frame:0
(Continue reading)

Erik Mathis | 9 Aug 2012 13:54

Re: Need help with routes

I'm assuming you wanted persistent routes?

http://www.debian.org/doc/manuals/debian-reference/ch05.en.html

The quick and dirty to add a route with iproute2

ip ro add 1.2,3.4/net via ${gateway}

-Erik-

On Wed, Aug 8, 2012 at 4:36 PM, Chuck Payne <terrorpup@...> wrote:
> Guys,
>
> I am trying to get a proxmox ve server up and running. I am trying to
> get routes working on this server, proxmox ve using debian as it's
> base.
>
> This server is our data center, we can access all server from our
> office via vpn connection.  Most server that are running RHEL the
> route looks like this.
>
> # route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
> 10.1.0.0        10.1.0.254     255.255.255.0   UG     0      0        0 eth1
> 172.21.1.0      10.0.0.254  255.255.255.0   UG    0      0        0 eth0
> 169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
> default         10.0.0.254  0.0.0.0         UG    0      0        0 eth0
>
(Continue reading)

Chuck Payne | 9 Aug 2012 16:37
Picon
Gravatar

Re: Need help with routes

Erik,

I can't follow. Maybe I should have asked how to you get what is in CentOS/RHEL

route-eth0

I was told that I could set that up with iproute2. I see from what you
have give em this...

Setup system's static routes based on the "/etc/network/routes" definition

How can I set that up?

Chuck

On Thu, Aug 9, 2012 at 7:54 AM, Erik Mathis <erik@...> wrote:
> I'm assuming you wanted persistent routes?
>
> http://www.debian.org/doc/manuals/debian-reference/ch05.en.html
>
> The quick and dirty to add a route with iproute2
>
> ip ro add 1.2,3.4/net via ${gateway}
>
> -Erik-
>
> On Wed, Aug 8, 2012 at 4:36 PM, Chuck Payne <terrorpup@...> wrote:
>> Guys,
>>
>> I am trying to get a proxmox ve server up and running. I am trying to
(Continue reading)

Lightner, Jeff | 9 Aug 2012 16:59
Favicon

Re: Need help with routes

I haven't done it on Debian but online searches seem to suggest you do the persistent routing setup in
/etc/network/interfaces rather than /etc/network/routes for Debian.   (In RHEL you do it in
/etc/sysconfig/network-scripts/route-<nic> as you indicated.)

A couple of the sites I saw:
http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html

http://www.tampabaycomputing.com/blog/how-to-setup-static-persistent-route-in-debian-ubuntu

-----Original Message-----
From: ale-bounces@...
[mailto:ale-bounces@...] On Behalf Of Chuck Payne
Sent: Thursday, August 09, 2012 10:37 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Need help with routes

Erik,

I can't follow. Maybe I should have asked how to you get what is in CentOS/RHEL

route-eth0

I was told that I could set that up with iproute2. I see from what you have give em this...

Setup system's static routes based on the "/etc/network/routes" definition

How can I set that up?

Chuck

(Continue reading)

Chuck Payne | 9 Aug 2012 17:28
Picon
Gravatar

Re: Need help with routes

Yea,

I found one of those, but the problem is promox ve is re-writing
/etc/networking/interface, so I was hoping that iproutes2 would help,
but it so confusing what to do.

I guess I will reach out the proxmox community to see how I add it,
might be a template.

Sidebar, I wish that the CentOS folks could get their hands Red Hat
Enterprise Virtualization. Proxmox is nice becuse I have a web
interface, it works with both OpenVZ and KVM.

Chuck

On Thu, Aug 9, 2012 at 10:59 AM, Lightner, Jeff <JLightner@...> wrote:
> I haven't done it on Debian but online searches seem to suggest you do the persistent routing setup in
/etc/network/interfaces rather than /etc/network/routes for Debian.   (In RHEL you do it in
/etc/sysconfig/network-scripts/route-<nic> as you indicated.)
>
> A couple of the sites I saw:
> http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html
>
> http://www.tampabaycomputing.com/blog/how-to-setup-static-persistent-route-in-debian-ubuntu
>
>
>
>
>
>
(Continue reading)

Michael H. Warfield | 9 Aug 2012 17:37

Re: Need help with routes

On Thu, 2012-08-09 at 10:37 -0400, Chuck Payne wrote:
> Erik,

> I can't follow. Maybe I should have asked how to you get what is in CentOS/RHEL

Assuming we are talking CentOS/RHEL/SL 6 (use to be different)...

For eth0...

/etc/sysconfig/network-scripts/route-eth0

-- 
172.21.1.0/24 via 10.0.0.254
-- 

For eth1...

/etc/sysconfig/network-scripts/route-eth1

-- 
10.1.0.0/24 via 10.1.0.254
--

-- 

Not sure what kind of vpn you are talking about but most vpn's don't
require special entries there if the system in question is an endpoint
system for the vpn tunnel itself.  The vpn subsystem will build and tear
down your routes and policies as required by the vpn has it comes and
goes.  Generally, setting up static routes here are almost guaranteed to
fail unless it's a vpn that's anchored on that gateway.  If you're doing
something like this on the system that's actually setting up the vpn
(Continue reading)

Boris Borisov | 9 Aug 2012 17:44
Picon

Re: Need help with routes

Sometimes I what to go back to slackware with its simple and
straightforward rc.local file :)

On 8/9/12, Michael H. Warfield <mhw@...> wrote:
> On Thu, 2012-08-09 at 10:37 -0400, Chuck Payne wrote:
>> Erik,
>
>> I can't follow. Maybe I should have asked how to you get what is in
>> CentOS/RHEL
>
> Assuming we are talking CentOS/RHEL/SL 6 (use to be different)...
>
> For eth0...
>
> /etc/sysconfig/network-scripts/route-eth0
>
> --
> 172.21.1.0/24 via 10.0.0.254
> --
>
> For eth1...
>
> /etc/sysconfig/network-scripts/route-eth1
>
> --
> 10.1.0.0/24 via 10.1.0.254
> --
>
> Not sure what kind of vpn you are talking about but most vpn's don't
> require special entries there if the system in question is an endpoint
(Continue reading)

Chuck Payne | 9 Aug 2012 17:51
Picon
Gravatar

Re: Need help with routes

Debian.

On Thu, Aug 9, 2012 at 11:37 AM, Michael H. Warfield <mhw@...> wrote:
> On Thu, 2012-08-09 at 10:37 -0400, Chuck Payne wrote:
>> Erik,
>
>> I can't follow. Maybe I should have asked how to you get what is in CentOS/RHEL
>
> Assuming we are talking CentOS/RHEL/SL 6 (use to be different)...
>
> For eth0...
>
> /etc/sysconfig/network-scripts/route-eth0
>
> --
> 172.21.1.0/24 via 10.0.0.254
> --
>
> For eth1...
>
> /etc/sysconfig/network-scripts/route-eth1
>
> --
> 10.1.0.0/24 via 10.1.0.254
> --
>
> Not sure what kind of vpn you are talking about but most vpn's don't
> require special entries there if the system in question is an endpoint
> system for the vpn tunnel itself.  The vpn subsystem will build and tear
> down your routes and policies as required by the vpn has it comes and
(Continue reading)

Michael H. Warfield | 9 Aug 2012 18:34

Re: Need help with routes

On Thu, 2012-08-09 at 10:37 -0400, Chuck Payne wrote:
> Erik,
> 
> I can't follow. Maybe I should have asked how to you get what is in CentOS/RHEL

I guess I missed that you were joking above and actually thought you
were now asking for CenOS/RHEL instructions and not tongue in cheek
asking for the opposite of what you wanted.

> route-eth0

> I was told that I could set that up with iproute2. I see from what you
> have give em this...
> 
> Setup system's static routes based on the "/etc/network/routes" definition
> 
> How can I set that up?
> 
> Chuck
> 
> On Thu, Aug 9, 2012 at 7:54 AM, Erik Mathis <erik@...> wrote:
> > I'm assuming you wanted persistent routes?
> >
> > http://www.debian.org/doc/manuals/debian-reference/ch05.en.html
> >
> > The quick and dirty to add a route with iproute2
> >
> > ip ro add 1.2,3.4/net via ${gateway}
> >
> > -Erik-
(Continue reading)

Chuck Payne | 9 Aug 2012 18:39
Picon
Gravatar

Re: Need help with routes

:-) if it were RHEL/CentOS it would be easy. LOL. I love the Proxmox
VE, but because the engine is Debian, it making my life a bit hard. If
I didn't need to add route for the office. I be done. Life of SA.

Thanks,

Chuck

On Thu, Aug 9, 2012 at 12:34 PM, Michael H. Warfield <mhw@...> wrote:
> On Thu, 2012-08-09 at 10:37 -0400, Chuck Payne wrote:
>> Erik,
>>
>> I can't follow. Maybe I should have asked how to you get what is in CentOS/RHEL
>
> I guess I missed that you were joking above and actually thought you
> were now asking for CenOS/RHEL instructions and not tongue in cheek
> asking for the opposite of what you wanted.
>
>> route-eth0
>
>> I was told that I could set that up with iproute2. I see from what you
>> have give em this...
>>
>> Setup system's static routes based on the "/etc/network/routes" definition
>>
>> How can I set that up?
>>
>> Chuck
>>
>> On Thu, Aug 9, 2012 at 7:54 AM, Erik Mathis <erik@...> wrote:
(Continue reading)

Lightner, Jeff | 9 Aug 2012 18:52
Favicon

Re: Need help with routes

You could always cheat and just add an init script that issues the route commands at startup after
networking.   :-)

Actually now that I've posted that more or less tongue in cheek it occurs to me that examining your existing
init scripts might tell you which file they're using to do the initial route setup on reboot already.   (e.g.
"grep route *" or "grep ip2route *")

-----Original Message-----
From: ale-bounces@...
[mailto:ale-bounces@...] On Behalf Of Chuck Payne
Sent: Thursday, August 09, 2012 12:39 PM
To: mhw@...; Atlanta Linux Enthusiasts
Subject: Re: [ale] Need help with routes

:-) if it were RHEL/CentOS it would be easy. LOL. I love the Proxmox VE, but because the engine is Debian, it
making my life a bit hard. If I didn't need to add route for the office. I be done. Life of SA.

Thanks,

Chuck

On Thu, Aug 9, 2012 at 12:34 PM, Michael H. Warfield <mhw@...> wrote:
> On Thu, 2012-08-09 at 10:37 -0400, Chuck Payne wrote:
>> Erik,
>>
>> I can't follow. Maybe I should have asked how to you get what is in
>> CentOS/RHEL
>
> I guess I missed that you were joking above and actually thought you
> were now asking for CenOS/RHEL instructions and not tongue in cheek
(Continue reading)

Chuck Payne | 10 Aug 2012 00:20
Picon
Gravatar

Re: Need help with routes

Well,

Thanks guys for information. I have made progress. I about to hit my
head on the wall.

Just incase anyone uses Promox, if you want to make changes to the
interface file by hand, you need to copy it and save as interface.new,
when the server if rebooted it will pickup that file.

Also, I am about to try it, to get the iproute2 stuff to work, you
have to do something like this...

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto vmbr0
iface vmbr0 inet static
        address  10.0.0.61
        netmask  255.255.255.0
        gateway  10.0.0.254
        bridge_ports eth0
        bridge_stp off
(Continue reading)


Gmane