Having trouble installing 2 network cards

Having trouble installing 2 network cards

Post by learningapa.. » Sun, 31 Dec 1899 09:00:00



I'm getting ready to set my Linux box as an internet gateway for a small
network of about 5 Windows95 machines.  The first step was to try to
install a second network card into the machine and set up a "private"
internal network.  But I've run into trouble - I feel like I've ALMOST
got it right, but have missed a few steps.  Thanks to anyone who can
show me where I went wrong!

First, this is a Dell 180Mhz machine running Red Hat Linux 6.0.  It has
a DSL connection with a static IP address.  It stands in isolation from
a network of about 5 Windows95 PCs.  I'd like to add it to the network
so the other PCs can get on the internet through the Linux box.

I've decided to use a 192.168.0.x network - the Linux box will be
192.168.0.1 , and the IP's for rest of the network will go
incrementally from there.

I added a second NIC to the Linux box, which seemed to be recognized
when the machine rebooted.  I used the "netcfg" program, which added a
new line to my /etc/conf.modules file for the card.
(the output from several relevant programs and files is below)

Here are the problems:

1) After installing the second network card, I was no longer able to
get on the internet from the Linux machine!
  > ping www.yahoo.com
  ping: unknown host: www.yahoo.com
  > ping 216.32.74.51
  PING 216.32.74.51 (216.32.74.51): 56 data bytes
  ping: sendto: Network is unreachable
  ping: wrote 216.32.74.51 64 chars, ret=-1

I was able to fix this problem (with a tip I read somewhere) by running
this command as root:
  > route add gateway default

Then it worked.
  > ping www.yahoo.com
  PING www.yahoo.akadns.net (216.32.74.52): 56 data bytes
  64 bytes from 216.32.74.52: icmp_seq=0 ttl=243 time=25.4 ms
  64 bytes from 216.32.74.52: icmp_seq=1 ttl=243 time=24.3 ms
  ...

But I'm not sure why I that problem occurred (unless it simply meant
that Linux no longer knew how to reach the Internet due to the presence
of multiple NICs), or how to solve this problem in a more permanent way
other than typing in that line every time I reboot!

2) I am also unable to ping any of the machines on my "internal"
network, and they cannot ping me.  They CAN, however, ping each other.
  > ping 192.168.0.2
  PING 192.168.0.2 (192.168.0.2): 56 data bytes
  --- 192.168.0.2 ping statistics ---
  10 packets transmitted, 0 packets received, 100% packet loss

The other machines are all Windows95.  They have their IP addresses
manually specified (e.g. 192.168.0.1), subnet mask 255.255.255.0, have
their Gateway set to 192.168.0.1 and their DNS also set to 192.168.0.1
.  And they can ping each other fine, but not the Linux server.

Here's some of my settings:

-------------------------------------------------------
/etc/conf.modules
     alias eth0 3c59x
     alias eth1 3c59x
(these are two similar but not identical cards)
(is there a problem since I'm NOT specifying IO/IRQ info?)

-------------------------------------------------------
OUTPUT FROM ifconfig:
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0

eth0      Link encap:Ethernet  HWaddr 00:60:97:BE:1E:B2
          inet addr:64.40.68.250  Bcast:64.40.68.255
Mask:255.255.255.252
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2482 errors:0 dropped:0 overruns:0 carrier:0
          collisions:4
          Interrupt:9 Base address:0xff00

eth1      Link encap:Ethernet  HWaddr 00:A0:24:C6:2C:05
          inet addr:192.168.0.1  Bcast:192.168.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:47 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          Interrupt:10 Base address:0xff80

-------------------------------------------------------
OUTPUT FROM netstat -r:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
64.40.68.248    *               255.255.255.252 U      1500 0          0
eth0
192.168.0.0     *               255.255.255.0   U      1500 0          0
eth1
127.0.0.0       *               255.0.0.0       U      3584 0          0
lo

default         *               0.0.0.0         U      1500 0          0
eth0
#### Note that the last line only appears after
#### I manually run "route add default eth0"

-------------------------------------------------------
/etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=grbc.vor.org
DOMAINNAME=vor.org
# GATEWAY=
GATEWAY=
GATEWAYDEV=eth0
NISDOMAIN=""
IPX="no"
IPXINTERNALNETNUM="0"
IPXINTERNALNODENUM="0"
IPXAUTOPRIMARY="on"
IPXAUTOFRAME="on"

-------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
USERCTL=no
ONBOOT="yes"
BOOTPROTO="none"
BROADCAST=64.40.68.255
NETWORK=64.40.68.248
NETMASK="255.255.255.252"
IPADDR="64.40.68.250"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

-------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth1"
USERCTL=yes
ONBOOT="yes"
BOOTPROTO="none"
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
NETMASK="255.255.255.0"
IPADDR="192.168.0.1"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

-------------------------------

Again, thanks to anyone who can help!

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Having trouble installing 2 network cards

Post by Greg » Sun, 31 Dec 1899 09:00:00


Just a thought...look at your /etc/sysconfig/networks file and make sure the
line:

GATEWAYDEV=ethX

make sure ethX is the device that is connected to the incoming network
connection (i am assuming eth0).  while you are there you might as well set
the flag:

FORWARD_IPV4=true

to allow IP masquerading, which is what I assume you will be using.  Hope I
was of some help.


Quote:> I'm getting ready to set my Linux box as an internet gateway for a small
> network of about 5 Windows95 machines.  The first step was to try to
> install a second network card into the machine and set up a "private"
> internal network.  But I've run into trouble - I feel like I've ALMOST
> got it right, but have missed a few steps.  Thanks to anyone who can
> show me where I went wrong!

> First, this is a Dell 180Mhz machine running Red Hat Linux 6.0.  It has
> a DSL connection with a static IP address.  It stands in isolation from
> a network of about 5 Windows95 PCs.  I'd like to add it to the network
> so the other PCs can get on the internet through the Linux box.

> I've decided to use a 192.168.0.x network - the Linux box will be
> 192.168.0.1 , and the IP's for rest of the network will go
> incrementally from there.

> I added a second NIC to the Linux box, which seemed to be recognized
> when the machine rebooted.  I used the "netcfg" program, which added a
> new line to my /etc/conf.modules file for the card.
> (the output from several relevant programs and files is below)

> Here are the problems:

> 1) After installing the second network card, I was no longer able to
> get on the internet from the Linux machine!
>   > ping www.yahoo.com
>   ping: unknown host: www.yahoo.com
>   > ping 216.32.74.51
>   PING 216.32.74.51 (216.32.74.51): 56 data bytes
>   ping: sendto: Network is unreachable
>   ping: wrote 216.32.74.51 64 chars, ret=-1

> I was able to fix this problem (with a tip I read somewhere) by running
> this command as root:
>   > route add gateway default

> Then it worked.
>   > ping www.yahoo.com
>   PING www.yahoo.akadns.net (216.32.74.52): 56 data bytes
>   64 bytes from 216.32.74.52: icmp_seq=0 ttl=243 time=25.4 ms
>   64 bytes from 216.32.74.52: icmp_seq=1 ttl=243 time=24.3 ms
>   ...

> But I'm not sure why I that problem occurred (unless it simply meant
> that Linux no longer knew how to reach the Internet due to the presence
> of multiple NICs), or how to solve this problem in a more permanent way
> other than typing in that line every time I reboot!

> 2) I am also unable to ping any of the machines on my "internal"
> network, and they cannot ping me.  They CAN, however, ping each other.
>   > ping 192.168.0.2
>   PING 192.168.0.2 (192.168.0.2): 56 data bytes
>   --- 192.168.0.2 ping statistics ---
>   10 packets transmitted, 0 packets received, 100% packet loss

> The other machines are all Windows95.  They have their IP addresses
> manually specified (e.g. 192.168.0.1), subnet mask 255.255.255.0, have
> their Gateway set to 192.168.0.1 and their DNS also set to 192.168.0.1
> .  And they can ping each other fine, but not the Linux server.

> Here's some of my settings:

> -------------------------------------------------------
> /etc/conf.modules
>      alias eth0 3c59x
>      alias eth1 3c59x
> (these are two similar but not identical cards)
> (is there a problem since I'm NOT specifying IO/IRQ info?)

> -------------------------------------------------------
> OUTPUT FROM ifconfig:
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
>           RX packets:160 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0

> eth0      Link encap:Ethernet  HWaddr 00:60:97:BE:1E:B2
>           inet addr:64.40.68.250  Bcast:64.40.68.255
> Mask:255.255.255.252
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2482 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:4
>           Interrupt:9 Base address:0xff00

> eth1      Link encap:Ethernet  HWaddr 00:A0:24:C6:2C:05
>           inet addr:192.168.0.1  Bcast:192.168.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:47 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0
>           Interrupt:10 Base address:0xff80

> -------------------------------------------------------
> OUTPUT FROM netstat -r:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 64.40.68.248    *               255.255.255.252 U      1500 0          0
> eth0
> 192.168.0.0     *               255.255.255.0   U      1500 0          0
> eth1
> 127.0.0.0       *               255.0.0.0       U      3584 0          0
> lo

> default         *               0.0.0.0         U      1500 0          0
> eth0
> #### Note that the last line only appears after
> #### I manually run "route add default eth0"

> -------------------------------------------------------
> /etc/sysconfig/network
> NETWORKING=yes
> FORWARD_IPV4=yes
> HOSTNAME=grbc.vor.org
> DOMAINNAME=vor.org
> # GATEWAY=
> GATEWAY=
> GATEWAYDEV=eth0
> NISDOMAIN=""
> IPX="no"
> IPXINTERNALNETNUM="0"
> IPXINTERNALNODENUM="0"
> IPXAUTOPRIMARY="on"
> IPXAUTOFRAME="on"

> -------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> USERCTL=no
> ONBOOT="yes"
> BOOTPROTO="none"
> BROADCAST=64.40.68.255
> NETWORK=64.40.68.248
> NETMASK="255.255.255.252"
> IPADDR="64.40.68.250"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"

> -------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth1"
> USERCTL=yes
> ONBOOT="yes"
> BOOTPROTO="none"
> BROADCAST=192.168.0.255
> NETWORK=192.168.0.0
> NETMASK="255.255.255.0"
> IPADDR="192.168.0.1"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"

> -------------------------------

> Again, thanks to anyone who can help!

> Sent via Deja.com http://www.deja.com/
> Before you buy.


 
 
 

Having trouble installing 2 network cards

Post by Stev » Sun, 31 Dec 1899 09:00:00


It may be to do with allow and deny, see what it says in the files
in /etc hosts.allow and hosts.deny  and maybe you need a host file
on each 95 box.

Have a dig around in the HOWTOs in /usr/doc/HOWTO they may be able
to give you some pointers, I don't think it's your IP settings so
much as the win-linux crossover obstacle.

HTH

--
Cheers

%HAV-A-NICEDAY Error not enough coffee  0 pps.

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 11:02pm  up 18 days,  1:03,  3 users,  load average: 1.43, 1.22, 1.08

 
 
 

Having trouble installing 2 network cards

Post by mlbw.. » Sun, 31 Dec 1899 09:00:00


Have you solved this problem already? If so, would you mind email me
the steps you ahve taken to solve the problem. I doubt that is the IRQ
& I/O problem, but I may be wrong

Any help will be greatly appreciated!

Melvin



> I'm getting ready to set my Linux box as an internet gateway for a
small
> network of about 5 Windows95 machines.  The first step was to try to
> install a second network card into the machine and set up a "private"
> internal network.  But I've run into trouble - I feel like I've ALMOST
> got it right, but have missed a few steps.  Thanks to anyone who can
> show me where I went wrong!

> First, this is a Dell 180Mhz machine running Red Hat Linux 6.0.  It
has
> a DSL connection with a static IP address.  It stands in isolation
from
> a network of about 5 Windows95 PCs.  I'd like to add it to the network
> so the other PCs can get on the internet through the Linux box.

> I've decided to use a 192.168.0.x network - the Linux box will be
> 192.168.0.1 , and the IP's for rest of the network will go
> incrementally from there.

> I added a second NIC to the Linux box, which seemed to be recognized
> when the machine rebooted.  I used the "netcfg" program, which added a
> new line to my /etc/conf.modules file for the card.
> (the output from several relevant programs and files is below)

> Here are the problems:

> 1) After installing the second network card, I was no longer able to
> get on the internet from the Linux machine!
>   > ping www.yahoo.com
>   ping: unknown host: www.yahoo.com
>   > ping 216.32.74.51
>   PING 216.32.74.51 (216.32.74.51): 56 data bytes
>   ping: sendto: Network is unreachable
>   ping: wrote 216.32.74.51 64 chars, ret=-1

> I was able to fix this problem (with a tip I read somewhere) by
running
> this command as root:
>   > route add gateway default

> Then it worked.
>   > ping www.yahoo.com
>   PING www.yahoo.akadns.net (216.32.74.52): 56 data bytes
>   64 bytes from 216.32.74.52: icmp_seq=0 ttl=243 time=25.4 ms
>   64 bytes from 216.32.74.52: icmp_seq=1 ttl=243 time=24.3 ms
>   ...

> But I'm not sure why I that problem occurred (unless it simply meant
> that Linux no longer knew how to reach the Internet due to the
presence
> of multiple NICs), or how to solve this problem in a more permanent
way
> other than typing in that line every time I reboot!

> 2) I am also unable to ping any of the machines on my "internal"
> network, and they cannot ping me.  They CAN, however, ping each other.
>   > ping 192.168.0.2
>   PING 192.168.0.2 (192.168.0.2): 56 data bytes
>   --- 192.168.0.2 ping statistics ---
>   10 packets transmitted, 0 packets received, 100% packet loss

> The other machines are all Windows95.  They have their IP addresses
> manually specified (e.g. 192.168.0.1), subnet mask 255.255.255.0, have
> their Gateway set to 192.168.0.1 and their DNS also set to 192.168.0.1
> .  And they can ping each other fine, but not the Linux server.

> Here's some of my settings:

> -------------------------------------------------------
> /etc/conf.modules
>      alias eth0 3c59x
>      alias eth1 3c59x
> (these are two similar but not identical cards)
> (is there a problem since I'm NOT specifying IO/IRQ info?)

> -------------------------------------------------------
> OUTPUT FROM ifconfig:
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
>           RX packets:160 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0

> eth0      Link encap:Ethernet  HWaddr 00:60:97:BE:1E:B2
>           inet addr:64.40.68.250  Bcast:64.40.68.255
> Mask:255.255.255.252
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2482 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:4
>           Interrupt:9 Base address:0xff00

> eth1      Link encap:Ethernet  HWaddr 00:A0:24:C6:2C:05
>           inet addr:192.168.0.1  Bcast:192.168.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:47 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0
>           Interrupt:10 Base address:0xff80

> -------------------------------------------------------
> OUTPUT FROM netstat -r:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window
irtt
> Iface
> 64.40.68.248    *               255.255.255.252 U      1500
0          0
> eth0
> 192.168.0.0     *               255.255.255.0   U      1500
0          0
> eth1
> 127.0.0.0       *               255.0.0.0       U      3584
0          0
> lo

> default         *               0.0.0.0         U      1500
0          0
> eth0
> #### Note that the last line only appears after
> #### I manually run "route add default eth0"

> -------------------------------------------------------
> /etc/sysconfig/network
> NETWORKING=yes
> FORWARD_IPV4=yes
> HOSTNAME=grbc.vor.org
> DOMAINNAME=vor.org
> # GATEWAY=
> GATEWAY=
> GATEWAYDEV=eth0
> NISDOMAIN=""
> IPX="no"
> IPXINTERNALNETNUM="0"
> IPXINTERNALNODENUM="0"
> IPXAUTOPRIMARY="on"
> IPXAUTOFRAME="on"

> -------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> USERCTL=no
> ONBOOT="yes"
> BOOTPROTO="none"
> BROADCAST=64.40.68.255
> NETWORK=64.40.68.248
> NETMASK="255.255.255.252"
> IPADDR="64.40.68.250"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"

> -------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth1"
> USERCTL=yes
> ONBOOT="yes"
> BOOTPROTO="none"
> BROADCAST=192.168.0.255
> NETWORK=192.168.0.0
> NETMASK="255.255.255.0"
> IPADDR="192.168.0.1"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"

> -------------------------------

> Again, thanks to anyone who can help!

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Having trouble installing 2 network cards

Post by Michael Marti » Sun, 31 Dec 1899 09:00:00


Here are some HOWTOs that may help: (forgive me if you've already been
through them):

Ethernet-HOWTO       (Duh! I'm sure you've been through this one!)
Firewall-HOWTO       (don't miss this one!)
IP-Masquerade-HOWTO  (very important!)
IPCHAINS-HOWTO       (More firewall stuff)
Home-Network-mini-HOWTO

Probably the easiest (and safest, and most secure) way to get it all
working is to download and install the "pmfirewall" package on your
server. Run this as root, and it'll ask you all kinds of questions
about your network, then it'll install the proper ipchains rules
(hopefully, if you answered all the questions correctly).

Good luck!

learningapa...@my-deja.com wrote:

> I'm getting ready to set my Linux box as an internet gateway for a small
> network of about 5 Windows95 machines.  The first step was to try to
> install a second network card into the machine and set up a "private"
> internal network.  But I've run into trouble - I feel like I've ALMOST
> got it right, but have missed a few steps.  Thanks to anyone who can
> show me where I went wrong!

> First, this is a Dell 180Mhz machine running Red Hat Linux 6.0.  It has
> a DSL connection with a static IP address.  It stands in isolation from
> a network of about 5 Windows95 PCs.  I'd like to add it to the network
> so the other PCs can get on the internet through the Linux box.

> I've decided to use a 192.168.0.x network - the Linux box will be
> 192.168.0.1 , and the IP's for rest of the network will go
> incrementally from there.

> I added a second NIC to the Linux box, which seemed to be recognized
> when the machine rebooted.  I used the "netcfg" program, which added a
> new line to my /etc/conf.modules file for the card.
> (the output from several relevant programs and files is below)

> Here are the problems:

> 1) After installing the second network card, I was no longer able to
> get on the internet from the Linux machine!
>   > ping www.yahoo.com
>   ping: unknown host: www.yahoo.com
>   > ping 216.32.74.51
>   PING 216.32.74.51 (216.32.74.51): 56 data bytes
>   ping: sendto: Network is unreachable
>   ping: wrote 216.32.74.51 64 chars, ret=-1

> I was able to fix this problem (with a tip I read somewhere) by running
> this command as root:
>   > route add gateway default

> Then it worked.
>   > ping www.yahoo.com
>   PING www.yahoo.akadns.net (216.32.74.52): 56 data bytes
>   64 bytes from 216.32.74.52: icmp_seq=0 ttl=243 time=25.4 ms
>   64 bytes from 216.32.74.52: icmp_seq=1 ttl=243 time=24.3 ms
>   ...

> But I'm not sure why I that problem occurred (unless it simply meant
> that Linux no longer knew how to reach the Internet due to the presence
> of multiple NICs), or how to solve this problem in a more permanent way
> other than typing in that line every time I reboot!

> 2) I am also unable to ping any of the machines on my "internal"
> network, and they cannot ping me.  They CAN, however, ping each other.
>   > ping 192.168.0.2
>   PING 192.168.0.2 (192.168.0.2): 56 data bytes
>   --- 192.168.0.2 ping statistics ---
>   10 packets transmitted, 0 packets received, 100% packet loss

> The other machines are all Windows95.  They have their IP addresses
> manually specified (e.g. 192.168.0.1), subnet mask 255.255.255.0, have
> their Gateway set to 192.168.0.1 and their DNS also set to 192.168.0.1
> .  And they can ping each other fine, but not the Linux server.

> Here's some of my settings:

> -------------------------------------------------------
> /etc/conf.modules
>      alias eth0 3c59x
>      alias eth1 3c59x
> (these are two similar but not identical cards)
> (is there a problem since I'm NOT specifying IO/IRQ info?)

> -------------------------------------------------------
> OUTPUT FROM ifconfig:
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
>           RX packets:160 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0

> eth0      Link encap:Ethernet  HWaddr 00:60:97:BE:1E:B2
>           inet addr:64.40.68.250  Bcast:64.40.68.255
> Mask:255.255.255.252
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2482 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:4
>           Interrupt:9 Base address:0xff00

> eth1      Link encap:Ethernet  HWaddr 00:A0:24:C6:2C:05
>           inet addr:192.168.0.1  Bcast:192.168.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:47 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0
>           Interrupt:10 Base address:0xff80

> -------------------------------------------------------
> OUTPUT FROM netstat -r:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 64.40.68.248    *               255.255.255.252 U      1500 0          0
> eth0
> 192.168.0.0     *               255.255.255.0   U      1500 0          0
> eth1
> 127.0.0.0       *               255.0.0.0       U      3584 0          0
> lo

> default         *               0.0.0.0         U      1500 0          0
> eth0
> #### Note that the last line only appears after
> #### I manually run "route add default eth0"

> -------------------------------------------------------
> /etc/sysconfig/network
> NETWORKING=yes
> FORWARD_IPV4=yes
> HOSTNAME=grbc.vor.org
> DOMAINNAME=vor.org
> # GATEWAY=
> GATEWAY=
> GATEWAYDEV=eth0
> NISDOMAIN=""
> IPX="no"
> IPXINTERNALNETNUM="0"
> IPXINTERNALNODENUM="0"
> IPXAUTOPRIMARY="on"
> IPXAUTOFRAME="on"

> -------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> USERCTL=no
> ONBOOT="yes"
> BOOTPROTO="none"
> BROADCAST=64.40.68.255
> NETWORK=64.40.68.248
> NETMASK="255.255.255.252"
> IPADDR="64.40.68.250"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"

> -------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth1"
> USERCTL=yes
> ONBOOT="yes"
> BOOTPROTO="none"
> BROADCAST=192.168.0.255
> NETWORK=192.168.0.0
> NETMASK="255.255.255.0"
> IPADDR="192.168.0.1"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"

> -------------------------------

> Again, thanks to anyone who can help!

> Sent via Deja.com http://www.deja.com/
> Before you buy.

--

--------------------------------
Michael Martin
mimar...@bmc.com
(713) 918-2631
--------------------------------

 
 
 

Having trouble installing 2 network cards

Post by Gene Montgomer » Sun, 31 Dec 1899 09:00:00


Michael Martin wrote:
> Here are some HOWTOs that may help: (forgive me if you've already been
> through them):

> Ethernet-HOWTO       (Duh! I'm sure you've been through this one!)
> Firewall-HOWTO       (don't miss this one!)
> IP-Masquerade-HOWTO  (very important!)
> IPCHAINS-HOWTO       (More firewall stuff)
> Home-Network-mini-HOWTO

> Probably the easiest (and safest, and most secure) way to get it all
> working is to download and install the "pmfirewall" package on your
> server. Run this as root, and it'll ask you all kinds of questions
> about your network, then it'll install the proper ipchains rules
> (hopefully, if you answered all the questions correctly).

> Good luck!

> learningapa...@my-deja.com wrote:

> > I'm getting ready to set my Linux box as an internet gateway for a small
> > network of about 5 Windows95 machines.  The first step was to try to
> > install a second network card into the machine and set up a "private"
> > internal network.  But I've run into trouble - I feel like I've ALMOST
> > got it right, but have missed a few steps.  Thanks to anyone who can
> > show me where I went wrong!

> > First, this is a Dell 180Mhz machine running Red Hat Linux 6.0.  It has
> > a DSL connection with a static IP address.  It stands in isolation from
> > a network of about 5 Windows95 PCs.  I'd like to add it to the network
> > so the other PCs can get on the internet through the Linux box.

> > I've decided to use a 192.168.0.x network - the Linux box will be
> > 192.168.0.1 , and the IP's for rest of the network will go
> > incrementally from there.

> > I added a second NIC to the Linux box, which seemed to be recognized
> > when the machine rebooted.  I used the "netcfg" program, which added a
> > new line to my /etc/conf.modules file for the card.
> > (the output from several relevant programs and files is below)

> > Here are the problems:

> > 1) After installing the second network card, I was no longer able to
> > get on the internet from the Linux machine!
> >   > ping www.yahoo.com
> >   ping: unknown host: www.yahoo.com
> >   > ping 216.32.74.51
> >   PING 216.32.74.51 (216.32.74.51): 56 data bytes
> >   ping: sendto: Network is unreachable
> >   ping: wrote 216.32.74.51 64 chars, ret=-1

> > I was able to fix this problem (with a tip I read somewhere) by running
> > this command as root:
> >   > route add gateway default

> > Then it worked.
> >   > ping www.yahoo.com
> >   PING www.yahoo.akadns.net (216.32.74.52): 56 data bytes
> >   64 bytes from 216.32.74.52: icmp_seq=0 ttl=243 time=25.4 ms
> >   64 bytes from 216.32.74.52: icmp_seq=1 ttl=243 time=24.3 ms
> >   ...

> > But I'm not sure why I that problem occurred (unless it simply meant
> > that Linux no longer knew how to reach the Internet due to the presence
> > of multiple NICs), or how to solve this problem in a more permanent way
> > other than typing in that line every time I reboot!

> > 2) I am also unable to ping any of the machines on my "internal"
> > network, and they cannot ping me.  They CAN, however, ping each other.
> >   > ping 192.168.0.2
> >   PING 192.168.0.2 (192.168.0.2): 56 data bytes
> >   --- 192.168.0.2 ping statistics ---
> >   10 packets transmitted, 0 packets received, 100% packet loss

> > The other machines are all Windows95.  They have their IP addresses
> > manually specified (e.g. 192.168.0.1), subnet mask 255.255.255.0, have
> > their Gateway set to 192.168.0.1 and their DNS also set to 192.168.0.1
> > .  And they can ping each other fine, but not the Linux server.

> > Here's some of my settings:

> > -------------------------------------------------------
> > /etc/conf.modules
> >      alias eth0 3c59x
> >      alias eth1 3c59x
> > (these are two similar but not identical cards)
> > (is there a problem since I'm NOT specifying IO/IRQ info?)

> > -------------------------------------------------------
> > OUTPUT FROM ifconfig:
> > lo        Link encap:Local Loopback
> >           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
> >           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
> >           RX packets:160 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0

> > eth0      Link encap:Ethernet  HWaddr 00:60:97:BE:1E:B2
> >           inet addr:64.40.68.250  Bcast:64.40.68.255
> > Mask:255.255.255.252
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:2482 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:4
> >           Interrupt:9 Base address:0xff00

> > eth1      Link encap:Ethernet  HWaddr 00:A0:24:C6:2C:05
> >           inet addr:192.168.0.1  Bcast:192.168.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:47 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0
> >           Interrupt:10 Base address:0xff80

> > -------------------------------------------------------
> > OUTPUT FROM netstat -r:
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags   MSS Window  irtt
> > Iface
> > 64.40.68.248    *               255.255.255.252 U      1500 0          0
> > eth0
> > 192.168.0.0     *               255.255.255.0   U      1500 0          0
> > eth1
> > 127.0.0.0       *               255.0.0.0       U      3584 0          0
> > lo

> > default         *               0.0.0.0         U      1500 0          0
> > eth0
> > #### Note that the last line only appears after
> > #### I manually run "route add default eth0"

> > -------------------------------------------------------
> > /etc/sysconfig/network
> > NETWORKING=yes
> > FORWARD_IPV4=yes
> > HOSTNAME=grbc.vor.org
> > DOMAINNAME=vor.org
> > # GATEWAY=
> > GATEWAY=
> > GATEWAYDEV=eth0
> > NISDOMAIN=""
> > IPX="no"
> > IPXINTERNALNETNUM="0"
> > IPXINTERNALNODENUM="0"
> > IPXAUTOPRIMARY="on"
> > IPXAUTOFRAME="on"

> > -------------------------------------------------------
> > /etc/sysconfig/network-scripts/ifcfg-eth0
> > DEVICE="eth0"
> > USERCTL=no
> > ONBOOT="yes"
> > BOOTPROTO="none"
> > BROADCAST=64.40.68.255
> > NETWORK=64.40.68.248
> > NETMASK="255.255.255.252"
> > IPADDR="64.40.68.250"
> > IPXNETNUM_802_2=""
> > IPXPRIMARY_802_2="no"
> > IPXACTIVE_802_2="no"
> > IPXNETNUM_802_3=""
> > IPXPRIMARY_802_3="no"
> > IPXACTIVE_802_3="no"
> > IPXNETNUM_ETHERII=""
> > IPXPRIMARY_ETHERII="no"
> > IPXACTIVE_ETHERII="no"
> > IPXNETNUM_SNAP=""
> > IPXPRIMARY_SNAP="no"
> > IPXACTIVE_SNAP="no"

> > -------------------------------------------------------
> > /etc/sysconfig/network-scripts/ifcfg-eth0
> > DEVICE="eth1"
> > USERCTL=yes
> > ONBOOT="yes"
> > BOOTPROTO="none"
> > BROADCAST=192.168.0.255
> > NETWORK=192.168.0.0
> > NETMASK="255.255.255.0"
> > IPADDR="192.168.0.1"
> > IPXNETNUM_802_2=""
> > IPXPRIMARY_802_2="no"
> > IPXACTIVE_802_2="no"
> > IPXNETNUM_802_3=""
> > IPXPRIMARY_802_3="no"
> > IPXACTIVE_802_3="no"
> > IPXNETNUM_ETHERII=""
> > IPXPRIMARY_ETHERII="no"
> > IPXACTIVE_ETHERII="no"
> > IPXNETNUM_SNAP=""
> > IPXPRIMARY_SNAP="no"
> > IPXACTIVE_SNAP="no"

> > -------------------------------

> > Again, thanks to anyone who can help!

> > Sent via Deja.com http://www.deja.com/
> > Before you buy.

> --

> --------------------------------
> Michael Martin
> mimar...@bmc.com
> (713) 918-2631
> --------------------------------

Let me add my two cents worth to what Michael said:

I think you might have problems with the same base address
on both your ethernet cards (not for sure).  I think that refers
to the locations in real memory - yours are identical. Here is
my ifconfig -a for my firewall:

[root@south /root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:A0:CC:32:81:5F
          inet addr:192.168.1.252  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:12 Base address:0xd800

eth1      Link encap:Ethernet  HWaddr 00:10:5A:81:EA:B4
          inet addr:4.35.124.67  Bcast:4.35.127.255  Mask:255.255.252.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:4181 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3317 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xdc80

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

Note that the Base addresses are different.  They are two
different types of boards, which may account for that, I
don't know.  I'd check that out.  There is a HOWTO which
discusses having two nics in one machine - maybe the
Ethernet-HOWTO.

From the looks of things, you are doing stuff barefoot.
I'd suggest using linuxconf.  While on the topic, I think
you will have a much more secure system if you upgrade
to RH6.2.  And then you need to get the security patches
from Red Hat.  I visited there yesterday, and the truth is,
there is a lot going on. I downloaded Netscape 4.7.3 and
am going to get the rest as soon as I can.

BTW, if you are concerned about upgrading to RH6.2, don't
be.  It is really getting slick these days.  I just get the $29
box, slap the cdrom in the drive, and take the defaults and
let 'er rip.  I have done it on 4 machines - going from RH60
in one case and RH61 in the others.  Works fine.  I think
there have been some improvements in the install and
linuxconf since ...

read more »

 
 
 

Having trouble installing 2 network cards

Post by Frank Har » Sun, 31 Dec 1899 09:00:00




Quote:>I think you might have problems with the same base address
>on both your ethernet cards (not for sure).  I think that refers
>to the locations in real memory - yours are identical. Here is
>my ifconfig -a for my firewall:

That's exactly my problem too. I have 2 NIC's in my machine. An
integrated AMD LANCE and a 3com PCI. And I can't change the IRQ's
because it's PCI. Or am I wrong here? It used to work in the past,
though. Well, it is working now too, but only with static IP adresses.
DHCP refuses to work saying theres a problem with eth1 (my PCI card).

Question: is such an integrated NIC always PCI? If it isn't, can I
change the IRQ?

Thanxs,


SuSE Linux 2.2.7 at linux-wd on a i586
5:00pm up 72 days, 4:59, 1 user, load average: 0.00, 0.00, 0.00