LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-15-2001, 04:00 PM   #1
jroger
LQ Newbie
 
Registered: Jul 2001
Location: Portland, OR
Distribution: Redhat 7.1
Posts: 3

Rep: Reputation: 0
Question Trouble re: routing table & cable modem sharing


I am a newbie using RH7.1 on a 486/100, 36MB RAM, no X running, minimal install, and two Intel NICs using eepro module. Ultimately, I want this box to firewall and Masq IPs to two boxes(Win98 and an RH7.1) from the cable modem.
Question #1: When I reboot, the routing table changes and I don't know how to change it permanently.
Question #2: The hardware in 'ifconfig' lists 'eth0' and 'eth1' as the same hardware. Is this bad? 'ifconfig' is:

eth0 Link encap:Ethernet HWaddr 00:AA:00:BF:2A:8E
inet addr:24.176.43.164 Bcast:24.176.43.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0x210

eth1 Link encap:Ethernet HWaddr 00:AA:00:BF:2A:8E
inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0x210

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

The routing table is:
'route -n'

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
24.176.43.164 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
24.176.43.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 24.176.43.1 0.0.0.0 UG 0 0 0 eth0

I apologize for the formatting and lack of linux knowledge. I manually added the routes into the routing table. I don't want to use X on this little thing, if possible. Just getting this box to use the cable modem would suffice for now.
All the info online that I have found refers to older distros, outdated commands. Redhat's site was zero help. This seems to be the place to ask. Any help would be appreciated.
 
Old 07-15-2001, 04:32 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Strange. The first problem I can see is that either both your NICs have the same hardware address (MAC) or that one card is using both addresses.

Try this to see if they are sharing an interrupt
Code:
cat /proc/pci
If you're using MASQ transpartent proxy via ipchains/iptables, your routing setup may cause you some trouble. ipchains will handle the forwarding according to the rules you use and at best your routing will try to bypass these (bad IMHO)

Last edited by mcleodnine; 07-15-2001 at 04:38 PM.
 
Old 07-15-2001, 04:42 PM   #3
jroger
LQ Newbie
 
Registered: Jul 2001
Location: Portland, OR
Distribution: Redhat 7.1
Posts: 3

Original Poster
Rep: Reputation: 0
I agree. I thought it was strange too. The cards are ISA. 'cat proc/interrupts' lists that IRQ 10 is eth0 and IRQ 11 is eth1, but 'cat /proc/ioports' lists only eth0 at 0210-021f and no listing for eth1. Shoud I list 'lilo.conf' and 'modules.conf'?
 
Old 07-15-2001, 05:31 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Yep - pls show the guts from modules.conf and rc.config. You can also try and load the modules manually
Code:
 modprobe modulename alias eth0
modprobe modulename alias eth1
You can also try and reverse the order. You may also want to see if you can configure the cards themselves with either the dos utils for the cards or... (i forget the linux pkg for configuring ethernet cards!)
 
Old 07-15-2001, 06:20 PM   #5
jroger
LQ Newbie
 
Registered: Jul 2001
Location: Portland, OR
Distribution: Redhat 7.1
Posts: 3

Original Poster
Rep: Reputation: 0
'cat modules.conf' gives:

alias eth0 eepro
alias eth1 eepro
options eepro io=0x210,0x300 irq=10,11
alias parport_lowlevel parport_pc


'cat lilo.conf' gives:

boot=/dev/hda1
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux

image=/boot/vmlinux-2.4.2-2
label=linux
append = "ether=11,0x210,eth0 ether=10,0x300,eth1"
read-only
root=/dev/hda5

I ran softset2 from a dosdisk which gives:

etherexpress pro/10 addr 00 AA 00 BF 2A 8E i/o=210h-21Fh irq=11
etherexpress pro/10 addr 00 AA 00 59 1D AA i/o=300h-30Fh irq=10

'lsmod' gives:

Module Size Used by
eepro 13744 2 (autoclean)
ipchains 36128 0 (unused)

I couldn't find 'rc.config' in the linux filesystem and I think that I looked pretty hard, but I didn't know exactly where to look and 'man rc.config' gave nothing.
I am getting the feeling that I am passing the wrong arguments to the OS. I tried the 'modprobe eepro alias eth0' and 'modprobe eepro alias eth1', with and without the ifconfig showing eth0 and eth1 listed using 'ifconfig eth0 down' with both and viceversa. Again, I really appreciate your help.:-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
internet conection sharing with cable modem anorman Linux - Networking 1 07-22-2004 12:49 AM
Routing, IP Masquerading and Cable Modem ad3 Linux - Networking 7 02-25-2004 08:48 AM
Sharing Cable Modem ShawnC Linux - Newbie 1 11-13-2003 01:41 PM
howto setup Cable modem&router&red hat on machine with ethernet integrated on mobo&XP takanana Linux - Networking 14 10-23-2003 08:20 AM
Toshiba Cable Modem-Internet Sharing greenarrow Linux - Hardware 4 06-26-2003 08:53 PM

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

All times are GMT -5. The time now is 07:23 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