LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2003, 02:49 PM   #1
ajmottola
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
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).
 
Old 09-05-2003, 02:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 09-06-2003, 07:59 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
Old 09-06-2003, 01:25 PM   #4
ajmottola
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 09-06-2003, 01:56 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If the file doesn't already exist then just create it:
/etc/sysconfig/static-routes
 
Old 09-06-2003, 04:02 PM   #6
ajmottola
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 09-07-2003, 07:15 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE & IP Direct Printing technochef Linux - Software 1 07-21-2005 11:14 AM
Direct printing from DOSEMU Yalla-One Linux - Software 0 12-01-2004 03:56 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
Best way to ALOT of files in a direct to other direct? packman Linux - General 2 10-21-2002 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration