Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-05-2003, 02:49 PM
|
#1
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Rep:
|
Need to direct printing to eth0
I'm running RH9 with 2 NIC's on the same network. eth0 is for LAN/Internet. eth1 is for a sniffer (receive only, Hardware Mod). Everything works fine (Internet and sniffer) with the exception of printing. I have added gatewaydev=eth0 to the network file. And that allowed me to get to the Internet. But when I try to print, the system trys to use eth1. Is there a way to direct/force all printing to use eth0? I have tried to do a search, but being somewhat new. Most of the finds did not seem to have the answer I needed. eth0 is set up DHCP and eth1 is Dynamic (because of the hardware mod).
|
|
|
09-05-2003, 02:59 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try adding a static route:
route add 192.168.1.1 dev eth0
Obviously change 192.168.1.1 to the ip of whatever you are printing to.
|
|
|
09-06-2003, 07:59 AM
|
#3
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Please just reply to threads most people get automatic notifications to messages that also include links to threads. This makes it much easier for me to find them again and also lets people with similar questions in the future see how it is done. E-mailing me won;t make me respond any quicker:
Quote:
I ried this and it work with 1 change
Try adding a static route:
route add 192.168.1.1 dev eth0
192.168.0.1
Please can you tell what file (ect. network) that I can modify so this route would be there on start up.
Thank you for your help.
|
You can use:
/etc/sysconfig/static-routes
More info here:
http://www.redhat.com/support/resour...ig-Tips-4.html
|
|
|
09-06-2003, 01:25 PM
|
#4
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Original Poster
Rep:
|
Thank you for your information and support. I just have one more little problem. I did not find the file static-route. I did a search on the drive and it came up with nothing.
|
|
|
09-06-2003, 01:56 PM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
If the file doesn't already exist then just create it:
/etc/sysconfig/static-routes
|
|
|
09-06-2003, 04:02 PM
|
#6
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Original Poster
Rep:
|
Thank You.
But after trying and checking. I found out that RH9 and maybe RH8 no longer uses static-routes.
I add the line
" route add 192.168.0.1 dev eth0"
to /ect/rc.local
Works fine and thank you for steering me in the right direction
Last edited by ajmottola; 09-06-2003 at 04:41 PM.
|
|
|
09-07-2003, 07:15 AM
|
#7
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Thanks for pointing that out - I've only ever need to use "static-routes" on a 7.2 server. I couldn't find any official docs on the subject but future readers may be interested in:
http://linux.dbw.org/notes/static-routes.txt
Last edited by david_ross; 09-07-2003 at 07:16 AM.
|
|
|
All times are GMT -5. The time now is 10:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|