Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

how to configure static route on RHEL 3 AS

 
   Soft32 Home -> Linux -> Red Hat RSS
Next:  [PATCH] aio.c: move EXPORT* macros to line after ..  
Author Message
The Derfer

External


Since: Nov 26, 2008
Posts: 7



(Msg. 1) Posted: Tue Aug 18, 2009 12:14 pm
Post subject: how to configure static route on RHEL 3 AS
Archived from groups: comp>os>linux>setup, others (more info?)

I have a (very) large amount of data to move through a Gigabit
connection
shortly. I want to use a newly-configured gigabit PCI-X card in a
Dell
server to accomplish this. The other interfaces are 100 Mbps.

If I want to add a route (static route) to force outgoing packets
that
are destined for a particular host to use that interface (eth3 on this
host)
then how do I do that? System is RedHat Enterprise Linux 3AS.
I suspect this involved the "add route default" command or whatever
the syntax is -- I did it for Solaris years ago but don't remember
exactly how.


$ Linux host1.localdomain 2.4.21-57.ELhugemem #1 SMP Fri Jun 13
00:09:04 EDT 2008 i686 i686 i386 GNU/Linux


$ ifconfig eth3
eth3 Link encap:Ethernet HWaddr 00:0A:5E:7A:E7:33
inet addr:10.156.30.176 Bcast:10.156.30.255 Mask:
255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:619971 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44019924 (41.9 Mb) TX bytes:256 (256.0 b)
Interrupt:24


Thanks in advance.
Back to top
Login to vote
Luuk

External


Since: Nov 12, 2008
Posts: 8



(Msg. 2) Posted: Tue Aug 18, 2009 3:20 pm
Post subject: Re: how to configure static route on RHEL 3 AS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The Derfer schreef:
> I have a (very) large amount of data to move through a Gigabit
> connection
> shortly. I want to use a newly-configured gigabit PCI-X card in a
> Dell
> server to accomplish this. The other interfaces are 100 Mbps.
>
> If I want to add a route (static route) to force outgoing packets
> that
> are destined for a particular host to use that interface (eth3 on this
> host)
> then how do I do that? System is RedHat Enterprise Linux 3AS.
> I suspect this involved the "add route default" command or whatever
> the syntax is -- I did it for Solaris years ago but don't remember
> exactly how.
>
>
> $ Linux host1.localdomain 2.4.21-57.ELhugemem #1 SMP Fri Jun 13
> 00:09:04 EDT 2008 i686 i686 i386 GNU/Linux
>
>
> $ ifconfig eth3
> eth3 Link encap:Ethernet HWaddr 00:0A:5E:7A:E7:33
> inet addr:10.156.30.176 Bcast:10.156.30.255 Mask:
> 255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:619971 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:44019924 (41.9 Mb) TX bytes:256 (256.0 b)
> Interrupt:24
>
>
> Thanks in advance.
>

man route

there are some examples in there too..... Wink

--
Luuk
Back to top
Login to vote
Allen Kistler

External


Since: Jul 12, 2004
Posts: 94



(Msg. 3) Posted: Tue Aug 18, 2009 4:19 pm
Post subject: Re: how to configure static route on RHEL 3 AS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The Derfer wrote:
> I have a (very) large amount of data to move through a Gigabit
> connection
> shortly. I want to use a newly-configured gigabit PCI-X card in a
> Dell
> server to accomplish this. The other interfaces are 100 Mbps.
>
> If I want to add a route (static route) to force outgoing packets
> that
> are destined for a particular host to use that interface (eth3 on this
> host)
> then how do I do that? System is RedHat Enterprise Linux 3AS.
> I suspect this involved the "add route default" command or whatever
> the syntax is -- I did it for Solaris years ago but don't remember
> exactly how.
>
> [snip]
>
> $ ifconfig eth3
>
> [snip]

You'll probably want to make the route permanent across reboots and
interface bounces. RH changed their convention for route config files,
but I believe the following convention applies to RHEL3. (It's been a
while.)

Create the file /etc/sysconfig/network-scripts/route-eth3
The contents should be
ADDRESS0=<whatever-host-address>
NETMASK0=255.255.255.255
GATEWAY0=<gateway-if-remote-or-eth3-addr-if-local>

If you want other routes, then the next set would use 1 instead of 0,
etc., for as many as you need. You must start at 0. You must not skip
any numbers. You can specify whole networks, but you asked about just
one host, so the example mask is all 1s.

Then "ifdown eth3 ; ifup eth3" will handle running "route" (or "ip
route," I forget when that changed, too) for you, plus the config is
applied automatically on reboot.
Back to top
Login to vote
Sidney Lambe

External


Since: Mar 02, 2009
Posts: 33



(Msg. 4) Posted: Tue Aug 18, 2009 5:20 pm
Post subject: Re: how to configure static route on RHEL 3 AS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The Derfer <derf109 DeleteThis @gmail.com> wrote:
> I have a (very) large amount of data to move through a Gigabit
> connection
> shortly. I want to use a newly-configured gigabit PCI-X card in a
> Dell
> server to accomplish this. The other interfaces are 100 Mbps.
>
> If I want to add a route (static route) to force outgoing packets
> that
> are destined for a particular host to use that interface (eth3 on this
> host)
> then how do I do that? System is RedHat Enterprise Linux 3AS.
> I suspect this involved the "add route default" command or whatever
> the syntax is -- I did it for Solaris years ago but don't remember
> exactly how.
>
>
> $ Linux host1.localdomain 2.4.21-57.ELhugemem #1 SMP Fri Jun 13
> 00:09:04 EDT 2008 i686 i686 i386 GNU/Linux
>
>
> $ ifconfig eth3
> eth3 Link encap:Ethernet HWaddr 00:0A:5E:7A:E7:33
> inet addr:10.156.30.176 Bcast:10.156.30.255 Mask:
> 255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:619971 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:44019924 (41.9 Mb) TX bytes:256 (256.0 b)
> Interrupt:24
>
>
> Thanks in advance.
>

Not sure exactly. This is what I do for lo:

/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

Hope this helps,

Sid
Back to top
Login to vote
A_A_K

External


Since: Aug 20, 2009
Posts: 1



(Msg. 5) Posted: Thu Aug 20, 2009 10:10 am
Post subject: Re: how to configure static route on RHEL 3 AS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

go to root mode
route add -net <network ip>/<subnet mask> gw <gateway ip address>

to verify the route give command "route"
Back to top
Login to vote
MELBIN MATHEW

External


Since: Aug 26, 2009
Posts: 1



(Msg. 6) Posted: Wed Aug 26, 2009 8:08 pm
Post subject: Re: how to configure static route on RHEL 3 AS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

To make a static route using one of the interface (in our case gigabit
interface), first we need to delete the present route and add the new
route.Commands are follows,

# route -n (this will show the present routing gateway)
# route del default (this will delete the present route)
# route add default gw ipaddressofthegigabit

# route -n (Shows the route is configured to gigabit)

Now all the traffic will route through the gigabit card.

Cheers!
Melbin Mathew
www.talk2melbin.com

On Aug 19, 12:14 am, The Derfer <derf....TakeThisOut@gmail.com> wrote:
> I have a (very) large amount of data to move through a Gigabit
> connection
> shortly.  I want to use a newly-configured gigabit PCI-X card in a
> Dell
> server to accomplish this.  The other interfaces are 100 Mbps.
>
> If I want to add a route (static route) to force outgoing packets
> that
> are destined for a particular host to use that interface (eth3 on this
> host)
> then how do I do that?  System is RedHat Enterprise Linux 3AS.
> I suspect this involved the "add route default" command or whatever
> the syntax is -- I did it for Solaris years ago but don't remember
> exactly how.
>
> $ Linux host1.localdomain 2.4.21-57.ELhugemem #1 SMP Fri Jun 13
> 00:09:04 EDT 2008 i686 i686 i386 GNU/Linux
>
> $ ifconfig eth3
> eth3      Link encap:Ethernet  HWaddr 00:0A:5E:7A:E7:33
>           inet addr:10.156.30.176  Bcast:10.156.30.255  Mask:
> 255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:619971 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:44019924 (41.9 Mb)  TX bytes:256 (256.0 b)
>           Interrupt:24
>
> Thanks in advance.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Dovecot question - Hi, I setting up a new mail server with postfix for smtp and dovecot for pop3 on a CentOS 4 machine. Both postfix..

Download Linux eBooks for Red Hat Certifications -- Free - [b:eef70ab027]For RHCE, RHCT, RHCA, RHCSS Aspirants [/b:eef70ab027]..

how can I configure a simple default IPv6 route - Hi, how can i configure a simple default ipv6 route or the gateway on Fedora core 3 or 4? I've been search a lot on....

[gentoo-user] Apache2 fails configure for static-modules - Anyone have any ideas here? Is emerging apache without static-modules first, and then trying to use the static-modules...

[gentoo-user] Configure eth0 when plugged and de-configure.. - Hello. I'd like to setup my notebook so, that when I plugin a cable to eth0, eth0 should be configured and ath0 (WLAN)...

Problems building RHEL 3.0 AS out of the SRPMS on a RHEL 2.. - Hi all I want to build my own Red Hat Enterprise Linux 3.0 AS from the SRPMS. What I have done so far is: - downloade...
       Soft32 Home -> Linux -> Red Hat All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]