nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Default Route

This is a discussion on Default Route within the Linux software forums, part of the Linux Getting Started category; Dear All. I am using RHEL 4 . My problem is that I have two network cards on my linux ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 04-26-2006, 10:52 PM
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default Default Route

Dear All.

I am using RHEL 4 . My problem is that I have two network cards on my linux box, one card is configured for class a network and second card is configured for cllass b network.If I acees my linux server through remote location on WAN, I am not able to access unless I define manually default route on Linux Box. If I access class A net from Calss B it becomes very slow on local LAN
And one more thing, how to make it these route as permanent, I have read the previous post but it does not work here.

Any other solution .....................??????

Regards.
Puppen
__________________
someone somewhere is made for you.
LOVE is Journey not a destination.
ALL I want is EVERYTHING.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-26-2006, 11:30 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Can you set default route using command line route command?
Example:
Code:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 191.161.2.254 dev eth1
Otherwise give us your network and netmask and gw name and will tell you what command you need to type...
Reply With Quote
  #3 (permalink)  
Old 04-27-2006, 12:33 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

I have RED HAT Linux version 3 (RHEL) and file /etc/sysconfig/network-scripts/route-eth0 use to configure static routes:
less /etc/sysconfig/network-scripts/route-eth0
Code:
GATEWAY0=10.10.1.1 
NETMASK0=255.0.0.0 
ADDRESS0=10.0.0.1 

GATEWAY1=10.20.1.1 
NETMASK1=255.255.0.0 
ADDRESS1=192.168.1.0
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Ubuntu Set Default Runlevel /etc/inittab lacloai Linux software 6 11-18-2008 06:42 AM
Default webpage anichhatre Getting started tutorials 3 07-13-2008 02:05 PM
How to stop default mail Server on Centos surmandal Linux software 2 08-07-2007 01:09 PM
Default Broadband ADSL Router password for BSNL Dataone sandeep23 Computer Networking and Internet/broadband 13 05-18-2007 04:21 PM
Debian 4 apt-get default source list raj Linux software 1 05-01-2007 10:13 PM


All times are GMT +5.5. The time now is 06:03 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36