Help - Search - Members - Calendar
Full Version: 2 Nic's Vs Redhat 7.3
Linuxhelp > Support > Technical Support
Taeliesyn
Hey all,

Im a relative newbie to linux, but im setting up a box with RH7.3 to work as an ICS gateway for my windows machines.

The problem is both my NIC's are identified as RTL189 and with both installed, they stop responding, the link shows as active on the 4 port hub card, but no data transfer. when I uninstalled the second card, the 4 port hub worked fine and my network started running again

Any help to get the second card installed and working would be great, im hoping I dont need a different card type, but it may come down to that
alex_123_sk
How do you set up your NIC?
Taeliesyn
I've just let Redhat do the auto setup.

The first NIC that one that still in the system is set to 192.168.0.1 in the way of IP, the all the other info is whatever RH choses it to be
alex_123_sk
Assume you are using the linux box as gateway to the internet
eth0 is connected to you DSL or Cable modem or something like that and your isp
give you a dymanic address
eth1 is connected to the internal network via a hub or switch or something like that
1) The /etc/sysconfig/network file should look like this
ETWORKING=yes
FORWARD_IPV4=yes
GATEWAYDEV=eth0
2) you /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
3)you /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
IPADDR=192.168.0.1
NETMASK=255.255.255.0
BROADCAST=196.168.0.255
ONBOOT=YES
4) check you /etc/resolv.conf and note down the nameserver address, you need that to set up your window client
5) you will need iptables to do the masq, in simplest form, put the follow in a
script file and run it when booting

modprobe iptable_nat
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

now set up you windows machines to use 192.168.0.1 as default gateway and put the nameserver address in the TCP/IP setup
Taeliesyn
Thanks for the attempt at helping me, though you went right over my head Alex..

but you didnt address the problem I am having, but i found the answer elsewhere

Its because both my cards are trying to use the same driver
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.