[ale] Need help with routes

Chuck Payne terrorpup at gmail.com
Thu Aug 9 18:20:56 EDT 2012


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
        bridge_fd 0
        ### static routes ####
        post-up ip route add 10.0.0.0/24 dev vmbr0 table prob
        post-up ip route add 172.21.1.0/24 dev vmbr0 table prob
        post-up ip route add default 10.0.0.254 table prod
        post-up ip route add default via 10.0.0.254 table prod
        post-up ip rule add from 10.0.0.254 table prod
        post-up ip route add 127.0.0.0/8 dev lo table prod
        post-up ip route add default scope global nexthop via
10.0.0.254 dev vmbr0 weight 1 nexthop via 10.1.0.254 dev vmbr1 weight
1
        post-down ip route add 10.0.0.0/24 dev vmbr0 table prob
        post-down ip route add 172.21.1.0/24 dev vmbr0 table prob
        post-down ip route add default 10.0.0.254 table prod
        post-down ip route add default via 10.0.0.254 table prod
        post-down ip rule add from 10.0.0.254 table prod
        post-down ip route add 127.0.0.0/8 dev lo table prod
        post-down ip route add default scope global nexthop via
10.0.0.254 dev vmbr0 weight 1 nexthop via 10.1.0.254 dev vmbr1 weight
1



auto vmbr1
iface vmbr1 inet static
        address  10.1.0.61
        netmask  255.255.255.0
        gateway 10.1.0.254
        bridge_stp off
        bridge_fd 0
        ### static routes ####
        post-up ip route add 10.1.0.0/24 dev vmbr1 table backup
        post-up ip route add default 10.1.0.254 table backup
        post-up ip route add default via 10.1.0.254 table backup
        post-up ip rule add from 10.1.0.254 table backup
        post-up ip route add 127.0.0.0/8 dev lo table backup
        post-up ip route add 10.1.0.0/24 dev vmbr1 table backup
        post-up ip route add default 10.1.0.254 table backup
        post-up ip route add default via 10.1.0.254 table backup
        post-up ip rule add from 10.1.0.254 table backup
        post-up ip route add 127.0.0.0/8 dev lo table backup

http://pve.proxmox.com/wiki/Network_Model

So anyway, make some movement forward.

Chuck

On Thu, Aug 9, 2012 at 12:52 PM, Lightner, Jeff <JLightner at water.com> wrote:
> 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 at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Chuck Payne
> Sent: Thursday, August 09, 2012 12:39 PM
> To: mhw at wittsend.com; 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 at wittsend.com> 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 at mathists.com> 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 at gmail.com> 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
>>> >>
>>> >>
>>> >> 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
>>> >>           TX packets:11507 errors:0 dropped:0 overruns:0 carrier:0
>>> >>           collisions:0 txqueuelen:0
>>> >>           RX bytes:1946077 (1.8 MiB)  TX bytes:1433780 (1.3 MiB)
>>> >>
>>> >> vmbr1     Link encap:Ethernet  HWaddr 00:13:72:66:71:a7
>>> >>           inet addr:10.1.0.61  Bcast:10.1.0.255  Mask:255.255.255.0
>>> >>           inet6 addr: fe80::213:72ff:fe66:71a7/64 Scope:Link
>>> >>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>> >>           RX packets:5963 errors:0 dropped:0 overruns:0 frame:0
>>> >>           TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
>>> >>           collisions:0 txqueuelen:0
>>> >>           RX bytes:561867 (548.6 KiB)  TX bytes:2190 (2.1 KiB)
>>> >>
>>> >>
>>> >> I understand in Debian you need to use iproute2 to make the route
>>> >> static, correct? Here what have, but I am not sure if it goes int
>>> >> othe
>>> >>
>>> >> --
>>> >> Terror PUP a.k.a
>>> >> Chuck "PUP" Payne
>>> >>
>>> >> (678) 636-9678
>>> >> -----------------------------------------
>>> >> Discover it! Enjoy it! Share it! openSUSE Linux.
>>> >> -----------------------------------------
>>> >> openSUSE -- en.opensuse.org/User:Terrorpup openSUSE
>>> >> Ambassador/openSUSE Member Community Manager -- Southeast Linux
>>> >> Foundation (SELF) skype,twiiter,identica,friendfeed -- terrorpup
>>> >> freenode(irc) --terrorpup/lupinstein Register Linux Userid: 155363
>>> >>
>>> >> Have you tried SUSE Studio? Need to create a Live CD,  an app you
>>> >> want to package and distribute , or create your own linux distro.
>>> >> Give SUSE Studio a try. www.susestudio.com.
>>> >> See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
>>> >> www.southeastlinuxfest.org
>>> >> _______________________________________________
>>> >> Ale mailing list
>>> >> Ale at ale.org
>>> >> http://mail.ale.org/mailman/listinfo/ale
>>> >> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> >> http://mail.ale.org/mailman/listinfo
>>> > _______________________________________________
>>> > Ale mailing list
>>> > Ale at ale.org
>>> > http://mail.ale.org/mailman/listinfo/ale
>>> > See JOBS, ANNOUNCE and SCHOOLS lists at
>>> > http://mail.ale.org/mailman/listinfo
>>>
>>>
>>>
>>> --
>>> Terror PUP a.k.a
>>> Chuck "PUP" Payne
>>>
>>> (678) 636-9678
>>> -----------------------------------------
>>> Discover it! Enjoy it! Share it! openSUSE Linux.
>>> -----------------------------------------
>>> openSUSE -- en.opensuse.org/User:Terrorpup openSUSE
>>> Ambassador/openSUSE Member Community Manager -- Southeast Linux
>>> Foundation (SELF) skype,twiiter,identica,friendfeed -- terrorpup
>>> freenode(irc) --terrorpup/lupinstein
>>> Register Linux Userid: 155363
>>>
>>> Have you tried SUSE Studio? Need to create a Live CD,  an app you
>>> want to package and distribute , or create your own linux distro.
>>> Give SUSE Studio a try. www.susestudio.com.
>>> See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
>>> www.southeastlinuxfest.org
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> http://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>>
>>
>> --
>> Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
>>    /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
>>    NIC whois: MHW9          | An optimist believes we live in the best of all
>>  PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>
>
>
> --
> Terror PUP a.k.a
> Chuck "PUP" Payne
>
> (678) 636-9678
> -----------------------------------------
> Discover it! Enjoy it! Share it! openSUSE Linux.
> -----------------------------------------
> openSUSE -- en.opensuse.org/User:Terrorpup openSUSE Ambassador/openSUSE Member Community Manager -- Southeast Linux Foundation (SELF) skype,twiiter,identica,friendfeed -- terrorpup
> freenode(irc) --terrorpup/lupinstein
> Register Linux Userid: 155363
>
> Have you tried SUSE Studio? Need to create a Live CD,  an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try. www.susestudio.com.
> See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
> www.southeastlinuxfest.org
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
>
>
> Athena(r), Created for the Cause(tm)
> Making a Difference in the Fight Against Breast Cancer
>
> ---------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
> ----------------------------------
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



-- 
Terror PUP a.k.a
Chuck "PUP" Payne

(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
Community Manager -- Southeast Linux Foundation (SELF)
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.
See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
www.southeastlinuxfest.org



More information about the Ale mailing list